public class DocumentUnitID extends TextUnitID
Constants.CHECK_DUPLICITY_LEVEL).
This class is *IMMUTABLE*, which means that each time a method that is supposed
to change something is called, another instance is returned. The objects of this
type are pooled using DocumentUnitIDPool so that only one
instance of DocumentUnitID exists for each document.GENERAL_SEP, REVISION_SEP| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object obj) |
boolean |
equals(Object obj) |
static DocumentUnitID |
getInstance(long documentUID,
int documentDBRevision)
This is the recommended way to create an instance.
|
int |
hashCode() |
static DocumentUnitID |
load(DataInputStream dis) |
void |
store(DataOutputStream dos) |
String |
toNiceMeString()
Returns textual representation of the unit to be printed in duplicity checking reports.
|
String |
toNiceOtherString()
Returns textual representation of the unit to be printed in duplicity checking reports.
|
String |
toString() |
getDocumentDBRevision, getDocumentUID, getInstance, releasePoolspublic static DocumentUnitID getInstance(long documentUID, int documentDBRevision)
documentUID - documentDBRevision - public String toNiceMeString()
toNiceMeString in class TextUnitIDpublic String toNiceOtherString()
toNiceOtherString in class TextUnitIDpublic int compareTo(Object obj)
obj - public boolean equals(Object obj)
public void store(DataOutputStream dos) throws IOException
store in class TextUnitIDdos - IOExceptionpublic static DocumentUnitID load(DataInputStream dis) throws IOException
dis - IOExceptionCopyright © 2016 Egothor. All Rights Reserved.