Class MergeableSpecific

  • All Implemented Interfaces:
    java.lang.Comparable<java.lang.String>

    public final class MergeableSpecific
    extends java.lang.Object
    implements java.lang.Comparable<java.lang.String>
    This class is used as a wrapper object for the generated Specific class in the config package.
    Author:
    David Hustace
    • Constructor Summary

      Constructors 
      Constructor Description
      MergeableSpecific​(java.lang.String specific)
      Constructor for MergeableSpecific.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(java.lang.String specific)
      Uses a comparable comparing to Specifics from the config package.
      boolean equals​(java.lang.Object o)  
      java.lang.String getSpecific()
      getSpecific
      byte[] getValue()
      getValue
      int hashCode()  
      void setSpecific​(java.lang.String specific)
      setSpecific
      java.lang.String toString()
      toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MergeableSpecific

        public MergeableSpecific​(java.lang.String specific)

        Constructor for MergeableSpecific.

        Parameters:
        specific - a String object.
    • Method Detail

      • compareTo

        public int compareTo​(java.lang.String specific)
        Uses a comparable comparing to Specifics from the config package.
        Specified by:
        compareTo in interface java.lang.Comparable<java.lang.String>
        Parameters:
        specific - a String object.
        Returns:
        a int.
      • equals

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

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

        public java.lang.String getSpecific()

        getSpecific

        Returns:
        a String object.
      • setSpecific

        public void setSpecific​(java.lang.String specific)

        setSpecific

        Parameters:
        specific - a String object.
      • toString

        public java.lang.String toString()

        toString

        Overrides:
        toString in class java.lang.Object
        Returns:
        a String object.
      • getValue

        public byte[] getValue()

        getValue

        Returns:
        the value