|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evolveum.midpoint.prism.delta.DeltaSetTriple<T>
public class DeltaSetTriple<T>
The triple of values (added, unchanged, deleted) that represents difference between two collections of values.
The DeltaSetTriple is used as a result of a "diff" operation or it is constructed to determine a ObjectDelta or PropertyDelta. It is a very useful structure in numerous situations when dealing with relative changes. DeltaSetTriple (similarly to other parts of this system) deal only with unordered values.
Field Summary | |
---|---|
protected java.util.Collection<T> |
minusSet
Collection of values that were deleted. |
protected java.util.Collection<T> |
plusSet
Collection of values that were added. |
protected java.util.Collection<T> |
zeroSet
Collection of values that were not changed. |
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable |
---|
INDENT_STRING |
Constructor Summary | |
---|---|
DeltaSetTriple()
|
|
DeltaSetTriple(java.util.Collection<T> zeroSet,
java.util.Collection<T> plusSet,
java.util.Collection<T> minusSet)
|
Method Summary | ||
---|---|---|
void |
addAllToMinusSet(java.util.Collection<T> items)
|
|
void |
addAllToPlusSet(java.util.Collection<T> items)
|
|
void |
addAllToZeroSet(java.util.Collection<T> items)
|
|
void |
addToMinusSet(T item)
|
|
void |
addToPlusSet(T item)
|
|
void |
addToZeroSet(T item)
|
|
void |
clearMinusSet()
|
|
void |
clearPlusSet()
|
|
void |
clearZeroSet()
|
|
DeltaSetTriple<T> |
clone(Cloner<T> cloner)
|
|
protected void |
copyValues(DeltaSetTriple<T> clone,
Cloner<T> cloner)
|
|
protected java.util.Collection<T> |
createSet()
|
|
java.lang.String |
debugDump()
Show the content of the object intended for diagnostics by system administrator. |
|
java.lang.String |
debugDump(int indent)
|
|
protected java.lang.String |
debugName()
|
|
static
|
diff(java.util.Collection<T> valuesOld,
java.util.Collection<T> valuesNew)
Compares two (unordered) collections and creates a triple describing the differences. |
|
protected static
|
diff(java.util.Collection<T> valuesOld,
java.util.Collection<T> valuesNew,
DeltaSetTriple<T> triple)
|
|
java.lang.String |
dump()
Show the content of the object intended for diagnostics by developer. |
|
java.util.Collection<T> |
getMinusSet()
|
|
java.util.Collection<T> |
getNonNegativeValues()
|
|
java.util.Collection<T> |
getNonPositiveValues()
|
|
java.util.Collection<T> |
getPlusSet()
|
|
java.util.Collection<T> |
getZeroSet()
|
|
boolean |
hasMinusSet()
|
|
boolean |
hasPlusSet()
|
|
boolean |
hasZeroSet()
|
|
boolean |
isEmpty()
|
|
void |
merge(DeltaSetTriple<T> triple)
|
|
boolean |
presentInMinusSet(T item)
|
|
boolean |
presentInPlusSet(T item)
|
|
boolean |
presentInZeroSet(T item)
|
|
java.lang.String |
toString()
|
|
java.util.Collection<T> |
union()
Returns all values, regardless of the internal sets. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.Collection<T> zeroSet
protected java.util.Collection<T> plusSet
protected java.util.Collection<T> minusSet
Constructor Detail |
---|
public DeltaSetTriple()
public DeltaSetTriple(java.util.Collection<T> zeroSet, java.util.Collection<T> plusSet, java.util.Collection<T> minusSet)
Method Detail |
---|
public static <T> DeltaSetTriple<T> diff(java.util.Collection<T> valuesOld, java.util.Collection<T> valuesNew)
protected static <T> void diff(java.util.Collection<T> valuesOld, java.util.Collection<T> valuesNew, DeltaSetTriple<T> triple)
protected java.util.Collection<T> createSet()
public java.util.Collection<T> getZeroSet()
public java.util.Collection<T> getPlusSet()
public java.util.Collection<T> getMinusSet()
public boolean hasPlusSet()
public boolean hasZeroSet()
public boolean hasMinusSet()
public void addToPlusSet(T item)
public void addToMinusSet(T item)
public void addToZeroSet(T item)
public void addAllToPlusSet(java.util.Collection<T> items)
public void addAllToMinusSet(java.util.Collection<T> items)
public void addAllToZeroSet(java.util.Collection<T> items)
public boolean presentInPlusSet(T item)
public boolean presentInMinusSet(T item)
public boolean presentInZeroSet(T item)
public void clearPlusSet()
public void clearMinusSet()
public void clearZeroSet()
public java.util.Collection<T> union()
public java.util.Collection<T> getNonNegativeValues()
public java.util.Collection<T> getNonPositiveValues()
public void merge(DeltaSetTriple<T> triple)
public DeltaSetTriple<T> clone(Cloner<T> cloner)
protected void copyValues(DeltaSetTriple<T> clone, Cloner<T> cloner)
public boolean isEmpty()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String dump()
Dumpable
dump
in interface Dumpable
protected java.lang.String debugName()
public java.lang.String debugDump()
DebugDumpable
debugDump
in interface DebugDumpable
public java.lang.String debugDump(int indent)
debugDump
in interface DebugDumpable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |