Class Components.RangeWithUnit<R extends java.lang.Number>

  • Type Parameters:
    R - Type of range
    All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    Components

    public static class Components.RangeWithUnit<R extends java.lang.Number>
    extends Components.Range<R>
    implements java.io.Serializable
    Variant of the Range class, where a unit is required. Defining this in a separate class makes it easier to define where units are and are not required.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String unit
      Unit for the range.
    • Constructor Summary

      Constructors 
      Constructor Description
      RangeWithUnit()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • unit

        public java.lang.String unit
        Unit for the range. Ex, "years" if the range represents an amount of time.
    • Constructor Detail

      • RangeWithUnit

        public RangeWithUnit()