Package org.opennms.netmgt.config
Class MergeableSpecific
- java.lang.Object
-
- org.opennms.netmgt.config.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()
getSpecificbyte[]
getValue()
getValueint
hashCode()
void
setSpecific(java.lang.String specific)
setSpecificjava.lang.String
toString()
toString
-
-
-
Method Detail
-
compareTo
public int compareTo(java.lang.String specific)
Uses a comparable comparing to Specifics from the config package.- Specified by:
compareTo
in interfacejava.lang.Comparable<java.lang.String>
- Parameters:
specific
- aString
object.- Returns:
- a int.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getSpecific
public java.lang.String getSpecific()
getSpecific
- Returns:
- a
String
object.
-
setSpecific
public void setSpecific(java.lang.String specific)
setSpecific
- Parameters:
specific
- aString
object.
-
toString
public java.lang.String toString()
toString
- Overrides:
toString
in classjava.lang.Object
- Returns:
- a
String
object.
-
getValue
public byte[] getValue()
getValue
- Returns:
- the value
-
-