Class CharId
- All Implemented Interfaces:
Externalizable, Serializable, Comparable<CharId>
This class is for identity with a single character 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
private char key
-
-
Constructor Details
-
CharId
-
CharId
-
CharId
-
CharId
public CharId()
-
-
Method Details
-
getKey
public char getKey() -
getKeyAsObject
Description copied from class:SingleFieldIdAccessor for the key- Specified by:
getKeyAsObjectin classSingleFieldId<Character, CharId>- Returns:
- The key
-
toString
-
keyEquals
- Specified by:
keyEqualsin classSingleFieldId<Character, CharId>
-
compareTo
-
writeExternal
Write this object. Write the superclass first.- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classSingleFieldId<Character, CharId>- Parameters:
out- the output- Throws:
IOException
-
readExternal
Read this object. Read the superclass first.- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classSingleFieldId<Character, CharId>- Parameters:
in- the input- Throws:
IOExceptionClassNotFoundException
-