|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evolveum.midpoint.schema.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.
Constructor Summary | |
---|---|
DeltaSetTriple()
|
|
DeltaSetTriple(java.util.Collection<PropertyValue<T>> zeroSet,
java.util.Collection<PropertyValue<T>> plusSet,
java.util.Collection<PropertyValue<T>> minusSet)
|
Method Summary | ||
---|---|---|
static
|
diff(java.util.Collection<PropertyValue<T>> valuesOld,
java.util.Collection<PropertyValue<T>> valuesNew)
Compares two (unordered) collections and creates a triple describing the differences. |
|
|
distributeAs(PropertyValue<T> myMember,
DeltaSetTriple<O> otherTriple,
PropertyValue<O> otherMember)
Distributes a value in this triple similar to the placement of other value in the other triple. |
|
java.lang.String |
dump()
Show the content of the object intended for diagnostics by developer. |
|
java.util.Collection<PropertyValue<T>> |
getMinusSet()
|
|
java.util.Collection<PropertyValue<T>> |
getNonNegativeValues()
|
|
java.util.Collection<PropertyValue<T>> |
getPlusSet()
|
|
java.util.Collection<PropertyValue<T>> |
getZeroSet()
|
|
void |
merge(DeltaSetTriple<T> triple)
|
|
java.lang.String |
toString()
|
|
java.util.Collection<PropertyValue<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 |
Constructor Detail |
---|
public DeltaSetTriple()
public DeltaSetTriple(java.util.Collection<PropertyValue<T>> zeroSet, java.util.Collection<PropertyValue<T>> plusSet, java.util.Collection<PropertyValue<T>> minusSet)
Method Detail |
---|
public static <T> DeltaSetTriple<T> diff(java.util.Collection<PropertyValue<T>> valuesOld, java.util.Collection<PropertyValue<T>> valuesNew)
public java.util.Collection<PropertyValue<T>> getZeroSet()
public java.util.Collection<PropertyValue<T>> getPlusSet()
public java.util.Collection<PropertyValue<T>> getMinusSet()
public java.util.Collection<PropertyValue<T>> union()
public java.util.Collection<PropertyValue<T>> getNonNegativeValues()
public <O> void distributeAs(PropertyValue<T> myMember, DeltaSetTriple<O> otherTriple, PropertyValue<O> otherMember)
public void merge(DeltaSetTriple<T> triple)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String dump()
Dumpable
dump
in interface Dumpable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |