Class TraitEnum

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected TraitEnum​(java.lang.String name, int enumValue)
      Constructor to add a new named item.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getEnumValue()
      Returns the enumeration value (one of Constants.EN_*).
      java.lang.String getName()
      Returns the name of the enumeration.
      • Methods inherited from class java.lang.Object

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

      • TraitEnum

        protected TraitEnum​(java.lang.String name,
                            int enumValue)
        Constructor to add a new named item.
        Parameters:
        name - Name of the item.
        enumValue - the Constants.EN_* value
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name of the enumeration.
        Returns:
        the name of the enumeration
      • getEnumValue

        public int getEnumValue()
        Returns the enumeration value (one of Constants.EN_*).
        Returns:
        the enumeration value