public class ParagraphUnitID 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 ParagraphUnitIDPool
so that only one
instance of ParagraphUnitID exists for each document.GENERAL_SEP, REVISION_SEP
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object obj) |
boolean |
equals(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) |
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, releasePools
public static ParagraphUnitID getInstance(long documentUID, int documentDBRevision, short paragraph)
documentUID
- documentDBRevision
- paragraph
- public short getParagraph()
public String toNiceMeString()
toNiceMeString
in class TextUnitID
public String toNiceOtherString()
toNiceOtherString
in class TextUnitID
public int compareTo(Object obj)
obj
- public boolean equals(Object obj)
public void store(DataOutputStream dos) throws IOException
store
in class TextUnitID
dos
- IOException
public static ParagraphUnitID load(DataInputStream dis) throws IOException
dis
- IOException
Copyright © 2016 Egothor. All Rights Reserved.