Class represents a unit of text on document duplicity checking level
(see 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.
Author:
Kate�ina Dufkov�
Field Summary
Fields inherited from class org.egothor.duplicity.datastructure.TextUnitID
public static DocumentUnitIDgetInstance(long documentUID,
int documentDBRevision)
This is the recommended way to create an instance.
Parameters:
documentUID -
documentDBRevision -
toString
public java.lang.String toString()
Overrides:
toString in class java.lang.Object
toNiceMeString
public java.lang.String toNiceMeString()
Returns textual representation of the unit to be printed in duplicity checking reports.
This is used for identifying units in the examined document and should not contain document id.
Returns textual representation of the unit to be printed in duplicity checking reports.
This is used for identifying units in the already indexed documents
and should contain document id.