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
public class AbstractDelegatedPrismValueDeltaSetTriple<V extends PrismValue>
extends Object
implements PrismValueDeltaSetTriple<V>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.delta.DeltaSetTriple
DeltaSetTriple.SetAwareProcessor<T> -
Field Summary
FieldsFields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING -
Constructor Summary
ConstructorsConstructorDescriptionAbstractDelegatedPrismValueDeltaSetTriple(Collection<V> zeroSet, Collection<V> plusSet, Collection<V> minusSet) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddAllToMinusSet(Collection<V> items) voidaddAllToPlusSet(Collection<V> items) voidaddAllToSet(PlusMinusZero destination, Collection<V> items) voidaddAllToZeroSet(Collection<V> items) voidaddToMinusSet(V item) voidaddToPlusSet(V item) voidaddToSet(PlusMinusZero destination, V item) voidaddToZeroSet(V item) voidapplyDefinition(@NotNull ItemDefinition<?> itemDefinition) voidvoidvoidvoidvoidclone()debugDump(int indent) voiddebugDumpSets(StringBuilder sb, Consumer<V> dumper, int indent) static <T> DeltaSetTriple<T>diff(Collection<T> valuesOld, Collection<T> valuesNew) 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.voidforeach(DeltaSetTriple.SetAwareProcessor<V> processor) voidProcess each element of every set.@NotNull Collection<V>@NotNull Collection<V>@NotNull Collection<V>@NotNull Collection<V>Class<?>getSet(PlusMinusZero whichSet) @NotNull Collection<V>booleanbooleanbooleanbooleanisEmpty()booleanisRaw()booleanvoidmerge(DeltaSetTriple<V> triple) booleanpresentInMinusSet(V item) booleanpresentInPlusSet(V item) booleanpresentInZeroSet(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 setsvoidShow the content of the object intended for diagnostics.voidsimpleAccept(SimpleVisitor<V> visitor) intsize()stream()<X> voidtransform(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, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazilyMethods inherited from interface com.evolveum.midpoint.prism.delta.DeltaSetTriple
clearMethods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDumpLazily
-
Field Details
-
inner
-
-
Constructor Details
-
AbstractDelegatedPrismValueDeltaSetTriple
-
AbstractDelegatedPrismValueDeltaSetTriple
public AbstractDelegatedPrismValueDeltaSetTriple() -
AbstractDelegatedPrismValueDeltaSetTriple
public AbstractDelegatedPrismValueDeltaSetTriple(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) Description copied from interface:PrismValueDeltaSetTripleDistributes 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>
-
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
public void applyDefinition(@NotNull @NotNull ItemDefinition<?> itemDefinition) throws SchemaException - Specified by:
applyDefinitionin interfacePrismValueDeltaSetTriple<V extends PrismValue>- Throws:
SchemaException
-
setOriginType
Description copied from interface:PrismValueDeltaSetTripleSets specified source type for all values in all sets- Specified by:
setOriginTypein interfacePrismValueDeltaSetTriple<V extends PrismValue>
-
setOriginObject
Description copied from interface:PrismValueDeltaSetTripleSets 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
-
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>
-
diff
Description copied from interface:DeltaSetTripleCompares two (unordered) collections and creates a triple describing the differences. -
getZeroSet
- Specified by:
getZeroSetin interfaceDeltaSetTriple<V extends PrismValue>
-
getPlusSet
- Specified by:
getPlusSetin interfaceDeltaSetTriple<V extends PrismValue>
-
getMinusSet
- Specified by:
getMinusSetin interfaceDeltaSetTriple<V extends PrismValue>
-
hasPlusSet
public boolean hasPlusSet()- Specified by:
hasPlusSetin interfaceDeltaSetTriple<V extends PrismValue>
-
hasZeroSet
public boolean hasZeroSet()- Specified by:
hasZeroSetin interfaceDeltaSetTriple<V extends PrismValue>
-
hasMinusSet
public boolean hasMinusSet()- Specified by:
hasMinusSetin interfaceDeltaSetTriple<V extends PrismValue>
-
isZeroOnly
public boolean isZeroOnly()- Specified by:
isZeroOnlyin interfaceDeltaSetTriple<V extends PrismValue>
-
addToPlusSet
- Specified by:
addToPlusSetin interfaceDeltaSetTriple<V extends PrismValue>
-
addToMinusSet
- Specified by:
addToMinusSetin interfaceDeltaSetTriple<V extends PrismValue>
-
addToZeroSet
- Specified by:
addToZeroSetin interfaceDeltaSetTriple<V extends PrismValue>
-
addAllToPlusSet
- Specified by:
addAllToPlusSetin interfaceDeltaSetTriple<V extends PrismValue>
-
addAllToMinusSet
- Specified by:
addAllToMinusSetin interfaceDeltaSetTriple<V extends PrismValue>
-
addAllToZeroSet
- Specified by:
addAllToZeroSetin interfaceDeltaSetTriple<V extends PrismValue>
-
getSet
- Specified by:
getSetin interfaceDeltaSetTriple<V extends PrismValue>
-
addAllToSet
- Specified by:
addAllToSetin interfaceDeltaSetTriple<V extends PrismValue>
-
addToSet
- Specified by:
addToSetin interfaceDeltaSetTriple<V extends PrismValue>
-
presentInPlusSet
- Specified by:
presentInPlusSetin interfaceDeltaSetTriple<V extends PrismValue>
-
presentInMinusSet
- Specified by:
presentInMinusSetin interfaceDeltaSetTriple<V extends PrismValue>
-
presentInZeroSet
- Specified by:
presentInZeroSetin interfaceDeltaSetTriple<V extends PrismValue>
-
clearPlusSet
public void clearPlusSet()- Specified by:
clearPlusSetin interfaceDeltaSetTriple<V extends PrismValue>
-
clearMinusSet
public void clearMinusSet()- Specified by:
clearMinusSetin interfaceDeltaSetTriple<V extends PrismValue>
-
clearZeroSet
public void clearZeroSet()- Specified by:
clearZeroSetin interfaceDeltaSetTriple<V extends PrismValue>
-
size
public int size()- Specified by:
sizein interfaceDeltaSetTriple<V extends PrismValue>
-
union
Description copied from interface:DeltaSetTripleReturns all values, regardless of the internal sets.- Specified by:
unionin interfaceDeltaSetTriple<V extends PrismValue>
-
getAnyValue
- Specified by:
getAnyValuein interfaceDeltaSetTriple<V extends PrismValue>
-
getAllValues
- Specified by:
getAllValuesin interfaceDeltaSetTriple<V extends PrismValue>
-
stream
- Specified by:
streamin interfaceDeltaSetTriple<V extends PrismValue>
-
getNonNegativeValues
- Specified by:
getNonNegativeValuesin interfaceDeltaSetTriple<V extends PrismValue>
-
getNonPositiveValues
- Specified by:
getNonPositiveValuesin interfaceDeltaSetTriple<V extends PrismValue>
-
merge
- Specified by:
mergein interfaceDeltaSetTriple<V extends PrismValue>
-
clone
- Specified by:
clonein interfaceDeltaSetTriple<V extends PrismValue>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceDeltaSetTriple<V extends PrismValue>
-
foreach
Description copied from interface:DeltaSetTripleProcess each element of every set. This is different from the visitor. Visitor will go deep inside, foreach will remain on the surface.- Specified by:
foreachin interfaceDeltaSetTriple<V extends PrismValue>- Specified by:
foreachin interfaceForeachable<V extends PrismValue>
-
foreach
- Specified by:
foreachin interfaceDeltaSetTriple<V extends PrismValue>
-
simpleAccept
- Specified by:
simpleAcceptin interfaceDeltaSetTriple<V extends PrismValue>- Specified by:
simpleAcceptin interfaceSimpleVisitable<V extends PrismValue>
-
transform
- Specified by:
transformin interfaceDeltaSetTriple<V extends PrismValue>
-
debugDumpSets
- Specified by:
debugDumpSetsin interfaceDeltaSetTriple<V extends PrismValue>
-
toHumanReadableString
- Specified by:
toHumanReadableStringin interfaceDeltaSetTriple<V extends PrismValue>
-
debugDump
- Specified by:
debugDumpin interfaceDebugDumpable
-
shortDump
Description copied from interface:ShortDumpableShow 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:
shortDumpin interfaceShortDumpable- Parameters:
sb- StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
-