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
ConstructorDescriptionPrismValueDeltaSetTripleImpl
(Collection<V> zeroSet, Collection<V> plusSet, Collection<V> minusSet) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
applyDefinition
(ItemDefinition itemDefinition) void
void
clone()
protected void
copyValues
(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<?>
boolean
isRaw()
protected boolean
presentInSet
(Collection<V> set, V item) void
removeEmptyValues
(boolean allowEmptyValues) void
setOriginObject
(Objectable originObject) Sets specified origin object for all values in all setsvoid
setOriginType
(OriginType sourceType) Sets specified source type for all values in all setsprotected void
toHumanReadableString
(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 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:
distributeAs
in interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
presentInSet
- Overrides:
presentInSet
in classDeltaSetTripleImpl<V extends PrismValue>
-
getValueClass
- Specified by:
getValueClass
in interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
getRealValueClass
- Specified by:
getRealValueClass
in interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
isRaw
public boolean isRaw()- Specified by:
isRaw
in interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
applyDefinition
- Specified by:
applyDefinition
in interfacePrismValueDeltaSetTriple<V extends PrismValue>
- Throws:
SchemaException
-
setOriginType
Sets specified source type for all values in all sets- Specified by:
setOriginType
in interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
setOriginObject
Sets specified origin object for all values in all sets- Specified by:
setOriginObject
in interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
removeEmptyValues
public void removeEmptyValues(boolean allowEmptyValues) - Specified by:
removeEmptyValues
in interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
clone
- Specified by:
clone
in interfacePrismValueDeltaSetTriple<V extends PrismValue>
- Overrides:
clone
in classObject
-
copyValues
-
checkConsistence
public void checkConsistence()- Specified by:
checkConsistence
in interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
accept
- Specified by:
accept
in interfacePrismValueDeltaSetTriple<V extends PrismValue>
- Specified by:
accept
in interfaceVisitable<V extends PrismValue>
-
checkNoParent
public void checkNoParent()- Specified by:
checkNoParent
in interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
debugName
- Overrides:
debugName
in classDeltaSetTripleImpl<V extends PrismValue>
-
toHumanReadableString
- Overrides:
toHumanReadableString
in classDeltaSetTripleImpl<V extends PrismValue>
-