|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.egothor.duplicity.file.DuplicityCheckingFileElement org.egothor.duplicity.datastructure.UnitPair
public class UnitPair
Represents single pair of two unit identifications.
Field Summary | |
---|---|
static java.util.Comparator<UnitPair> |
comp
Comparator using first and then second unit id for the class UnitPair. |
static java.util.Comparator<UnitPair> |
compFirst
Comparator using first unit id for the class UnitPair. |
static java.util.Comparator<UnitPair> |
compSecond
Comparator using second unit id for the class UnitPair. |
Constructor Summary | |
---|---|
UnitPair()
|
|
UnitPair(TextUnitID first,
TextUnitID second)
|
Method Summary | |
---|---|
void |
copyFrom(UnitPair from)
Copies the values of all fields from given instance. |
boolean |
equals(java.lang.Object obj)
|
TextUnitID |
getFirstUnitID()
|
TextUnitID |
getSecondUnitID()
|
int |
hashCode()
|
boolean |
isRelatedTo(java.util.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)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.util.Comparator<UnitPair> compFirst
public static java.util.Comparator<UnitPair> compSecond
public static java.util.Comparator<UnitPair> comp
Constructor Detail |
---|
public UnitPair()
public UnitPair(TextUnitID first, TextUnitID second)
Method Detail |
---|
public TextUnitID getFirstUnitID()
public TextUnitID getSecondUnitID()
public void copyFrom(UnitPair from)
from
- instance to copy values frompublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void store(DataOutputStream dos) throws java.io.IOException
store
in class DuplicityCheckingFileElement
java.io.IOException
public void load(DataInputStream dis) throws java.io.IOException
load
in class DuplicityCheckingFileElement
java.io.IOException
public boolean isRelatedTo(java.util.Set<DocumentUnitID> set)
isRelatedTo
in class DuplicityCheckingFileElement
set
- set of document identificators
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |