Class MamaMdDataType


  • public final class MamaMdDataType
    extends java.lang.Object
    • Method Detail

      • toString

        public java.lang.String toString()
        Returns the stringified name for the enumerated type.
        Overrides:
        toString in class java.lang.Object
        Returns:
        Name for the type.
      • getValue

        public int getValue()
        Returns the integer value for the type. This value can be used in switch statements against the public XXX_VALUE static members of the class.
        Returns:
        The integer type.
      • equals

        public boolean equals​(MamaMdDataType appDataType)
        Compare the two types for equality. Returns true if the integer value of both types is equal. Otherwise returns false.
        Parameters:
        appDataType - The object to check equality against.
        Returns:
        Whether the two objects are equal.
      • valueToString

        public static java.lang.String valueToString​(int value)
        Utility method for mapping type integer values to corresponding string values. Returns "UNKNOWN" is the int type value is not recognised.
        Parameters:
        value - The int value for a MamaMdDataType.
        Returns:
        The string name value of the specified MamaMdDataType integer value.
      • enumObjectForValue

        public static MamaMdDataType enumObjectForValue​(int value)
        Return an instance of a MamaMdDataType corresponding to the specified integer value. Returns null if the integer value is not recognised.
        Parameters:
        value - Int value for a MamaMdDataType.
        Returns:
        Instance of a MamaMdDataType if a mapping exists.