Package org.jibx.schema.codegen
Class StringKeyed
java.lang.Object
org.jibx.schema.codegen.StringKeyed
- All Implemented Interfaces:
Comparable
- Direct Known Subclasses:
StringObjectPair
,StringPair
Base class for a data representation using a string value as a key. This just holds the key and implements the
Comparable
interface.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
m_key
Key string.
-
-
Constructor Details
-
StringKeyed
Constructor.- Parameters:
key
-
-
-
Method Details
-
getKey
Get the key string.- Returns:
- key
-
compareTo
Compare to another instance.- Specified by:
compareTo
in interfaceComparable
- Parameters:
o
- other instance- Returns:
- difference
-