com.evolveum.midpoint.prism.delta
Class PrismValueDeltaSetTriple<V extends PrismValue>
java.lang.Object
com.evolveum.midpoint.prism.delta.DeltaSetTriple<V>
com.evolveum.midpoint.prism.delta.PrismValueDeltaSetTriple<V>
- All Implemented Interfaces:
- SimpleVisitable<V>, Visitable, DebugDumpable, Dumpable, Serializable
- Direct Known Subclasses:
- SourceTriple
public class PrismValueDeltaSetTriple<V extends PrismValue>
- extends DeltaSetTriple<V>
- implements Dumpable, DebugDumpable, Visitable
DeltaSetTriple that is limited to hold prism values. By limiting to the PrismValue descendants we gain advantage to be
clonnable and ability to compare real values.
- Author:
- Radovan Semancik
- See Also:
- Serialized Form
Methods inherited from class com.evolveum.midpoint.prism.delta.DeltaSetTriple |
accept, addAllToMinusSet, addAllToPlusSet, addAllToZeroSet, addToMinusSet, addToPlusSet, addToZeroSet, clearMinusSet, clearPlusSet, clearZeroSet, clone, copyValues, createSet, debugDump, debugDump, diff, diff, dump, getAllValues, getMinusSet, getNonNegativeValues, getNonPositiveValues, getPlusSet, getZeroSet, hasMinusSet, hasPlusSet, hasZeroSet, isEmpty, merge, presentInMinusSet, presentInPlusSet, presentInZeroSet, size, toString, union |
Methods inherited from interface com.evolveum.midpoint.util.Dumpable |
dump |
PrismValueDeltaSetTriple
public PrismValueDeltaSetTriple()
PrismValueDeltaSetTriple
public PrismValueDeltaSetTriple(Collection<V> zeroSet,
Collection<V> plusSet,
Collection<V> minusSet)
diffPrismValueDeltaSetTriple
public static <V extends PrismValue> PrismValueDeltaSetTriple<V> diffPrismValueDeltaSetTriple(Collection<V> valuesOld,
Collection<V> valuesNew)
- Compares two (unordered) collections and creates a triple describing the differences.
distributeAs
public <O extends PrismValue> void distributeAs(V myMember,
PrismValueDeltaSetTriple<O> otherTriple,
O otherMember)
- Distributes a value in this triple similar to the placement of other value in the other triple.
E.g. if the value "otherMember" is in the zero set in "otherTriple" then "myMember" will be placed
in zero set in this triple.
getValueClass
public Class<V> getValueClass()
getRealValueClass
public Class<?> getRealValueClass()
isRaw
public boolean isRaw()
applyDefinition
public void applyDefinition(ItemDefinition itemDefinition)
throws SchemaException
- Throws:
SchemaException
setOriginType
public void setOriginType(OriginType sourceType)
- Sets specified source type for all values in all sets
setOriginObject
public void setOriginObject(Objectable originObject)
- Sets specified origin object for all values in all sets
clone
public PrismValueDeltaSetTriple<V> clone()
- Overrides:
clone
in class Object
copyValues
protected void copyValues(PrismValueDeltaSetTriple<V> clone)
accept
public void accept(Visitor visitor)
- Specified by:
accept
in interface Visitable
debugName
protected String debugName()
- Overrides:
debugName
in class DeltaSetTriple<V extends PrismValue>
Copyright © 2013 evolveum. All Rights Reserved.