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:
-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING -
Constructor Summary
ConstructorsConstructorDescriptionPrismValueDeltaSetTripleImpl(Collection<V> zeroSet, Collection<V> plusSet, Collection<V> minusSet) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidapplyDefinition(ItemDefinition itemDefinition) voidvoidclone()protected voidcopyValues(PrismValueDeltaSetTripleImpl<V> clone) protected String<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<?>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, unionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDump, debugDumpLazily, debugDumpLazilyMethods 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, unionMethods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDump, shortDumpLazily
-
Constructor Details
-
PrismValueDeltaSetTripleImpl
public PrismValueDeltaSetTripleImpl() -
PrismValueDeltaSetTripleImpl
public PrismValueDeltaSetTripleImpl(Collection<V> zeroSet, Collection<V> plusSet, Collection<V> minusSet)
-
-
Method Details
-
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
- Overrides:
presentInSetin classDeltaSetTripleImpl<V extends PrismValue>
-
getValueClass
- Specified by:
getValueClassin interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
getRealValueClass
- Specified by:
getRealValueClassin interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
isRaw
public boolean isRaw()- Specified by:
isRawin interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
applyDefinition
- Specified by:
applyDefinitionin interfacePrismValueDeltaSetTriple<V extends PrismValue>- Throws:
SchemaException
-
setOriginType
Sets specified source type for all values in all sets- Specified by:
setOriginTypein interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
setOriginObject
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
- Specified by:
clonein interfacePrismValueDeltaSetTriple<V extends PrismValue>- Overrides:
clonein classObject
-
copyValues
-
checkConsistence
public void checkConsistence()- Specified by:
checkConsistencein interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
accept
- 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
- Overrides:
debugNamein classDeltaSetTripleImpl<V extends PrismValue>
-
toHumanReadableString
- Overrides:
toHumanReadableStringin classDeltaSetTripleImpl<V extends PrismValue>
-