Class AbstractDelegatedPrismValueDeltaSetTriple<V extends PrismValue>
java.lang.Object
com.evolveum.midpoint.prism.extensions.AbstractDelegatedPrismValueDeltaSetTriple<V>
- All Implemented Interfaces:
DeltaSetTriple<V>
,PrismValueDeltaSetTriple<V>
,SimpleVisitable<V>
,Visitable
,DebugDumpable
,Foreachable<V>
,ShortDumpable
,Serializable
- Direct Known Subclasses:
SourceTriple
public class AbstractDelegatedPrismValueDeltaSetTriple<V extends PrismValue>
extends Object
implements PrismValueDeltaSetTriple<V>
- See Also:
-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Constructor Summary
ConstructorDescriptionAbstractDelegatedPrismValueDeltaSetTriple
(PrismContext prismContext) AbstractDelegatedPrismValueDeltaSetTriple
(Collection<V> zeroSet, Collection<V> plusSet, Collection<V> minusSet, PrismContext prismContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addAllToMinusSet
(Collection<V> items) void
addAllToPlusSet
(Collection<V> items) void
addAllToSet
(PlusMinusZero destination, Collection<V> items) void
addAllToZeroSet
(Collection<V> items) void
addToMinusSet
(V item) void
addToPlusSet
(V item) void
addToSet
(PlusMinusZero destination, V item) void
addToZeroSet
(V item) void
applyDefinition
(ItemDefinition itemDefinition) void
void
void
void
void
clone()
debugDump
(int indent) void
debugDumpSets
(StringBuilder sb, Consumer<V> dumper, int indent) static <T> DeltaSetTriple<T>
diff
(Collection<T> valuesOld, Collection<T> valuesNew, PrismContext prismContext) Compares two (unordered) collections and creates a triple describing the differences.<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.void
Process each element of every set.@NotNull Collection<V>
@NotNull Collection<V>
@NotNull Collection<V>
@NotNull Collection<V>
Class<?>
getSet
(PlusMinusZero whichSet) @NotNull Collection<V>
boolean
boolean
boolean
boolean
isEmpty()
boolean
isRaw()
boolean
void
merge
(DeltaSetTriple<V> triple) boolean
presentInMinusSet
(V item) boolean
presentInPlusSet
(V item) boolean
presentInZeroSet
(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 setsvoid
Show the content of the object intended for diagnostics.void
simpleAccept
(SimpleVisitor<V> visitor) int
size()
stream()
<X> void
transform
(DeltaSetTriple<X> transformTarget, Transformer<V, X> transformer) union()
Returns all values, regardless of the internal sets.Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
Methods inherited from interface com.evolveum.midpoint.prism.delta.DeltaSetTriple
clear
Methods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDumpLazily
-
Field Details
-
inner
-
-
Constructor Details
-
AbstractDelegatedPrismValueDeltaSetTriple
-
AbstractDelegatedPrismValueDeltaSetTriple
-
AbstractDelegatedPrismValueDeltaSetTriple
public AbstractDelegatedPrismValueDeltaSetTriple(Collection<V> zeroSet, Collection<V> plusSet, Collection<V> minusSet, PrismContext prismContext)
-
-
Method Details
-
distributeAs
public <O extends PrismValue> void distributeAs(V myMember, PrismValueDeltaSetTriple<O> otherTriple, O otherMember) Description copied from interface:PrismValueDeltaSetTriple
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>
-
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
Description copied from interface:PrismValueDeltaSetTriple
Sets specified source type for all values in all sets- Specified by:
setOriginType
in interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
setOriginObject
Description copied from interface:PrismValueDeltaSetTriple
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
-
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>
-
diff
public static <T> DeltaSetTriple<T> diff(Collection<T> valuesOld, Collection<T> valuesNew, PrismContext prismContext) Description copied from interface:DeltaSetTriple
Compares two (unordered) collections and creates a triple describing the differences. -
getZeroSet
- Specified by:
getZeroSet
in interfaceDeltaSetTriple<V extends PrismValue>
-
getPlusSet
- Specified by:
getPlusSet
in interfaceDeltaSetTriple<V extends PrismValue>
-
getMinusSet
- Specified by:
getMinusSet
in interfaceDeltaSetTriple<V extends PrismValue>
-
hasPlusSet
public boolean hasPlusSet()- Specified by:
hasPlusSet
in interfaceDeltaSetTriple<V extends PrismValue>
-
hasZeroSet
public boolean hasZeroSet()- Specified by:
hasZeroSet
in interfaceDeltaSetTriple<V extends PrismValue>
-
hasMinusSet
public boolean hasMinusSet()- Specified by:
hasMinusSet
in interfaceDeltaSetTriple<V extends PrismValue>
-
isZeroOnly
public boolean isZeroOnly()- Specified by:
isZeroOnly
in interfaceDeltaSetTriple<V extends PrismValue>
-
addToPlusSet
- Specified by:
addToPlusSet
in interfaceDeltaSetTriple<V extends PrismValue>
-
addToMinusSet
- Specified by:
addToMinusSet
in interfaceDeltaSetTriple<V extends PrismValue>
-
addToZeroSet
- Specified by:
addToZeroSet
in interfaceDeltaSetTriple<V extends PrismValue>
-
addAllToPlusSet
- Specified by:
addAllToPlusSet
in interfaceDeltaSetTriple<V extends PrismValue>
-
addAllToMinusSet
- Specified by:
addAllToMinusSet
in interfaceDeltaSetTriple<V extends PrismValue>
-
addAllToZeroSet
- Specified by:
addAllToZeroSet
in interfaceDeltaSetTriple<V extends PrismValue>
-
getSet
- Specified by:
getSet
in interfaceDeltaSetTriple<V extends PrismValue>
-
addAllToSet
- Specified by:
addAllToSet
in interfaceDeltaSetTriple<V extends PrismValue>
-
addToSet
- Specified by:
addToSet
in interfaceDeltaSetTriple<V extends PrismValue>
-
presentInPlusSet
- Specified by:
presentInPlusSet
in interfaceDeltaSetTriple<V extends PrismValue>
-
presentInMinusSet
- Specified by:
presentInMinusSet
in interfaceDeltaSetTriple<V extends PrismValue>
-
presentInZeroSet
- Specified by:
presentInZeroSet
in interfaceDeltaSetTriple<V extends PrismValue>
-
clearPlusSet
public void clearPlusSet()- Specified by:
clearPlusSet
in interfaceDeltaSetTriple<V extends PrismValue>
-
clearMinusSet
public void clearMinusSet()- Specified by:
clearMinusSet
in interfaceDeltaSetTriple<V extends PrismValue>
-
clearZeroSet
public void clearZeroSet()- Specified by:
clearZeroSet
in interfaceDeltaSetTriple<V extends PrismValue>
-
size
public int size()- Specified by:
size
in interfaceDeltaSetTriple<V extends PrismValue>
-
union
Description copied from interface:DeltaSetTriple
Returns all values, regardless of the internal sets.- Specified by:
union
in interfaceDeltaSetTriple<V extends PrismValue>
-
getAnyValue
- Specified by:
getAnyValue
in interfaceDeltaSetTriple<V extends PrismValue>
-
getAllValues
- Specified by:
getAllValues
in interfaceDeltaSetTriple<V extends PrismValue>
-
stream
- Specified by:
stream
in interfaceDeltaSetTriple<V extends PrismValue>
-
getNonNegativeValues
- Specified by:
getNonNegativeValues
in interfaceDeltaSetTriple<V extends PrismValue>
-
getNonPositiveValues
- Specified by:
getNonPositiveValues
in interfaceDeltaSetTriple<V extends PrismValue>
-
merge
- Specified by:
merge
in interfaceDeltaSetTriple<V extends PrismValue>
-
clone
- Specified by:
clone
in interfaceDeltaSetTriple<V extends PrismValue>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceDeltaSetTriple<V extends PrismValue>
-
foreach
Description copied from interface:DeltaSetTriple
Process each element of every set. This is different from the visitor. Visitor will go deep inside, foreach will remain on the surface.- Specified by:
foreach
in interfaceDeltaSetTriple<V extends PrismValue>
- Specified by:
foreach
in interfaceForeachable<V extends PrismValue>
-
simpleAccept
- Specified by:
simpleAccept
in interfaceDeltaSetTriple<V extends PrismValue>
- Specified by:
simpleAccept
in interfaceSimpleVisitable<V extends PrismValue>
-
transform
- Specified by:
transform
in interfaceDeltaSetTriple<V extends PrismValue>
-
debugDumpSets
- Specified by:
debugDumpSets
in interfaceDeltaSetTriple<V extends PrismValue>
-
toHumanReadableString
- Specified by:
toHumanReadableString
in interfaceDeltaSetTriple<V extends PrismValue>
-
debugDump
- Specified by:
debugDump
in interfaceDebugDumpable
-
shortDump
Description copied from interface:ShortDumpable
Show the content of the object intended for diagnostics. This method is supposed to append a compact, human-readable output in a single line. Unlike toString() method, there is no requirement to identify the actual class or type of the object. It is assumed that the class/type will be obvious from the context in which the output is used.- Specified by:
shortDump
in interfaceShortDumpable
- Parameters:
sb
- StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
-