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