Class AddingAUnitExample


  • public final class AddingAUnitExample
    extends Object
    Example for adding a unit.
    • Field Detail

      • FURLONG

        public static final LengthUnit FURLONG
        a new LengthUnit.
      • FORTNIGHT

        public static final DurationUnit FORTNIGHT
        a new DurationUnit.
      • FURLONGS_PER_FORTNIGHT

        public static final SpeedUnit FURLONGS_PER_FORTNIGHT
        a new SpeedUnit based on the new LengthUnit and the new DurationUnit.
    • Method Detail

      • main

        public static void main​(String[] args)
        Parameters:
        args - String[]; can be blank