Class CIMFlavor

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

    public class CIMFlavor
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Cloneable, java.lang.Comparable
    See Also:
    Serialized Form
    • Constructor Detail

      • CIMFlavor

        public CIMFlavor​(int pFlavor)
        Construct an object CIMFlavor given the flavor type. Applications are encourage to use getFlavor(int) instead of this constructor.
        Parameters:
        pFlavor -
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getFlavor

        public int getFlavor()
        Gets this object flavor type.
        Returns:
        The flavor
      • getFlavor

        public static CIMFlavor getFlavor​(int flavor)
        Gets an object of the specified CIMFlavor.
        Parameters:
        flavor - A flavor constant from this class
        Returns:
        The corresponding flavor
      • toMOF

        public java.lang.String toMOF()
        Returns the MOF representation of this object.
        Returns:
        The MOF representation
      • toString

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

        public java.lang.Object clone()
        Overrides:
        clone in class java.lang.Object
      • compareTo

        public int compareTo​(java.lang.Object o)
        Specified by:
        compareTo in interface java.lang.Comparable