Class PrismValueDeltaSetTripleImpl<V extends PrismValue>
- java.lang.Object
-
- com.evolveum.midpoint.prism.impl.delta.DeltaSetTripleImpl<V>
-
- com.evolveum.midpoint.prism.impl.delta.PrismValueDeltaSetTripleImpl<V>
-
- All Implemented Interfaces:
DeltaSetTriple<V>,PrismValueDeltaSetTriple<V>,SimpleVisitable<V>,Visitable,DebugDumpable,Foreachable<V>,ShortDumpable,Serializable
public class PrismValueDeltaSetTripleImpl<V extends PrismValue> extends DeltaSetTripleImpl<V> implements PrismValueDeltaSetTriple<V>
DeltaSetTriple that is limited to hold prism values. By limiting to the PrismValue descendants we gain advantage to be cloneable and ability to compare real values.- Author:
- Radovan Semancik
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description PrismValueDeltaSetTripleImpl()PrismValueDeltaSetTripleImpl(Collection<V> zeroSet, Collection<V> plusSet, Collection<V> minusSet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor visitor)voidapplyDefinition(ItemDefinition itemDefinition)voidcheckConsistence()voidcheckNoParent()PrismValueDeltaSetTriple<V>clone()protected voidcopyValues(PrismValueDeltaSetTripleImpl<V> clone)protected StringdebugName()<O extends PrismValue>
voiddistributeAs(V myMember, PrismValueDeltaSetTriple<O> otherTriple, O otherMember)Distributes a value in this triple similar to the placement of other value in the other triple.Class<?>getRealValueClass()Class<V>getValueClass()booleanisRaw()protected booleanpresentInSet(Collection<V> set, V item)voidremoveEmptyValues(boolean allowEmptyValues)voidsetOriginObject(Objectable originObject)Sets specified origin object for all values in all setsvoidsetOriginType(OriginType sourceType)Sets specified source type for all values in all setsprotected voidtoHumanReadableString(StringBuilder sb, V item)-
Methods inherited from class com.evolveum.midpoint.prism.impl.delta.DeltaSetTripleImpl
addAllToMinusSet, addAllToPlusSet, addAllToSet, addAllToZeroSet, addToMinusSet, addToPlusSet, addToSet, addToZeroSet, clearMinusSet, clearPlusSet, clearZeroSet, clone, copyValues, debugDump, debugDumpSets, diff, foreach, getAllValues, getAnyValue, getMinusSet, getNonNegativeValues, getNonPositiveValues, getPlusSet, getSet, getZeroSet, hasMinusSet, hasPlusSet, hasZeroSet, isEmpty, isZeroOnly, merge, presentInMinusSet, presentInPlusSet, presentInZeroSet, shortDump, simpleAccept, size, stream, toHumanReadableString, toString, transform, union
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDump, debugDumpLazily, debugDumpLazily
-
Methods inherited from interface com.evolveum.midpoint.prism.delta.DeltaSetTriple
addAllToMinusSet, addAllToPlusSet, addAllToSet, addAllToZeroSet, addToMinusSet, addToPlusSet, addToSet, addToZeroSet, clear, clearMinusSet, clearPlusSet, clearZeroSet, clone, debugDumpSets, foreach, getAllValues, getAnyValue, getMinusSet, getNonNegativeValues, getNonPositiveValues, getPlusSet, getSet, getZeroSet, hasMinusSet, hasPlusSet, hasZeroSet, isEmpty, isZeroOnly, merge, presentInMinusSet, presentInPlusSet, presentInZeroSet, simpleAccept, size, stream, toHumanReadableString, transform, union
-
Methods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDump, shortDumpLazily
-
-
-
-
Constructor Detail
-
PrismValueDeltaSetTripleImpl
public PrismValueDeltaSetTripleImpl()
-
PrismValueDeltaSetTripleImpl
public PrismValueDeltaSetTripleImpl(Collection<V> zeroSet, Collection<V> plusSet, Collection<V> minusSet)
-
-
Method Detail
-
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.- Specified by:
distributeAsin interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
presentInSet
protected boolean presentInSet(Collection<V> set, V item)
- Overrides:
presentInSetin classDeltaSetTripleImpl<V extends PrismValue>
-
getValueClass
public Class<V> getValueClass()
- Specified by:
getValueClassin interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
getRealValueClass
public Class<?> getRealValueClass()
- Specified by:
getRealValueClassin interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
isRaw
public boolean isRaw()
- Specified by:
isRawin interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
applyDefinition
public void applyDefinition(ItemDefinition itemDefinition) throws SchemaException
- Specified by:
applyDefinitionin interfacePrismValueDeltaSetTriple<V extends PrismValue>- Throws:
SchemaException
-
setOriginType
public void setOriginType(OriginType sourceType)
Sets specified source type for all values in all sets- Specified by:
setOriginTypein interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
setOriginObject
public void setOriginObject(Objectable originObject)
Sets specified origin object for all values in all sets- Specified by:
setOriginObjectin interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
removeEmptyValues
public void removeEmptyValues(boolean allowEmptyValues)
- Specified by:
removeEmptyValuesin interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
clone
public PrismValueDeltaSetTriple<V> clone()
- Specified by:
clonein interfacePrismValueDeltaSetTriple<V extends PrismValue>- Overrides:
clonein classObject
-
copyValues
protected void copyValues(PrismValueDeltaSetTripleImpl<V> clone)
-
checkConsistence
public void checkConsistence()
- Specified by:
checkConsistencein interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
accept
public void accept(Visitor visitor)
- Specified by:
acceptin interfacePrismValueDeltaSetTriple<V extends PrismValue>- Specified by:
acceptin interfaceVisitable<V extends PrismValue>
-
checkNoParent
public void checkNoParent()
- Specified by:
checkNoParentin interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
debugName
protected String debugName()
- Overrides:
debugNamein classDeltaSetTripleImpl<V extends PrismValue>
-
toHumanReadableString
protected void toHumanReadableString(StringBuilder sb, V item)
- Overrides:
toHumanReadableStringin classDeltaSetTripleImpl<V extends PrismValue>
-
-