public class UnitPair extends DuplicityCheckingFileElement
| Modifier and Type | Field and Description |
|---|---|
static Comparator<UnitPair> |
comp
Comparator using first and then second unit id for the class UnitPair.
|
static Comparator<UnitPair> |
compFirst
Comparator using first unit id for the class UnitPair.
|
static Comparator<UnitPair> |
compSecond
Comparator using second unit id for the class UnitPair.
|
| Constructor and Description |
|---|
UnitPair() |
UnitPair(TextUnitID first,
TextUnitID second) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyFrom(UnitPair from)
Copies the values of all fields from given instance.
|
boolean |
equals(Object obj) |
TextUnitID |
getFirstUnitID() |
TextUnitID |
getSecondUnitID() |
int |
hashCode() |
boolean |
isRelatedTo(Set<DocumentUnitID> set)
Returns true, if one of the documents from this pair
is present in the given set of documents.
|
void |
load(DataInputStream dis) |
void |
store(DataOutputStream dos) |
String |
toString() |
public static Comparator<UnitPair> compFirst
public static Comparator<UnitPair> compSecond
public static Comparator<UnitPair> comp
public UnitPair()
public UnitPair(TextUnitID first, TextUnitID second)
public TextUnitID getFirstUnitID()
public TextUnitID getSecondUnitID()
public void copyFrom(UnitPair from)
from - instance to copy values frompublic void store(DataOutputStream dos) throws IOException
store in class DuplicityCheckingFileElementIOExceptionpublic void load(DataInputStream dis) throws IOException
load in class DuplicityCheckingFileElementIOExceptionpublic boolean isRelatedTo(Set<DocumentUnitID> set)
isRelatedTo in class DuplicityCheckingFileElementset - set of document identificatorsCopyright © 2016 Egothor. All Rights Reserved.