Class StringId
- All Implemented Interfaces:
Externalizable, Serializable, Comparable<StringId>
This class is for identity with a single String field.
- See Also:
-
Field Summary
FieldsFields inherited from class SingleFieldId
hashCode, STRING_DELIMITER, targetClassName -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class SingleFieldId
assertKeyNotNull, compare, equals, getTargetClassName, hashCode
-
Field Details
-
key
-
-
Constructor Details
-
StringId
-
StringId
public StringId()
-
-
Method Details
-
getKey
-
getKeyAsObject
Description copied from class:SingleFieldIdAccessor for the key- Specified by:
getKeyAsObjectin classSingleFieldId<String,StringId> - Returns:
- The key
-
toString
-
keyEquals
- Specified by:
keyEqualsin classSingleFieldId<String,StringId>
-
compareTo
-
writeExternal
Write this object. Write the superclass first.- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classSingleFieldId<String,StringId> - Parameters:
out- the output- Throws:
IOException
-
readExternal
Read this object. Read the superclass first.- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classSingleFieldId<String,StringId> - Parameters:
in- the input- Throws:
IOExceptionClassNotFoundException
-