|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.egothor.duplicity.datastructure.TextUnitID
org.egothor.duplicity.datastructure.ParagraphUnitID
public class ParagraphUnitID
Class represents a unit of text on paragraph 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 ParagraphUnitIDPool
so that only one
instance of ParagraphUnitID exists for each document.
Field Summary | |
---|---|
protected short |
paragraph
Ordinal number of the paragraph, the same as Token.paragraph field. |
Fields inherited from class org.egothor.duplicity.datastructure.TextUnitID |
---|
documentDBRevision, documentUID, GENERAL_SEP, REVISION_SEP |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object obj)
|
boolean |
equals(java.lang.Object obj)
|
static ParagraphUnitID |
getInstance(long documentUID,
int documentDBRevision,
short paragraph)
This is the recommended way to create an instance. |
short |
getParagraph()
|
int |
hashCode()
|
static ParagraphUnitID |
load(DataInputStream dis)
|
void |
store(DataOutputStream dos)
|
java.lang.String |
toNiceMeString()
Returns textual representation of the unit to be printed in duplicity checking reports. |
java.lang.String |
toNiceOtherString()
Returns textual representation of the unit to be printed in duplicity checking reports. |
java.lang.String |
toString()
|
Methods inherited from class org.egothor.duplicity.datastructure.TextUnitID |
---|
getDocumentDBRevision, getDocumentUID, getInstance, releasePools |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final short paragraph
Token.paragraph
field.
Method Detail |
---|
public static ParagraphUnitID getInstance(long documentUID, int documentDBRevision, short paragraph)
documentUID
- documentDBRevision
- paragraph
- public short getParagraph()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toNiceMeString()
toNiceMeString
in class TextUnitID
public java.lang.String toNiceOtherString()
toNiceOtherString
in class TextUnitID
public int compareTo(java.lang.Object obj)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void store(DataOutputStream dos) throws java.io.IOException
store
in class TextUnitID
java.io.IOException
public static ParagraphUnitID load(DataInputStream dis) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |