Class ConstantSize.Unit

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    ConstantSize

    public static final class ConstantSize.Unit
    extends java.lang.Object
    implements java.io.Serializable
    An ordinal-based serializable typesafe enumeration for units as used in instances of ConstantSize.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String abbreviation()
      Returns the first character of this Unit's name.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • abbreviation

        public java.lang.String abbreviation()
        Returns the first character of this Unit's name. Used to identify it in short format strings.
        Returns:
        the first character of this Unit's name.