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:
- 
Field SummaryFieldsFields inherited from interface com.evolveum.midpoint.util.DebugDumpableINDENT_STRING
- 
Constructor SummaryConstructorsConstructorDescriptionAbstractDelegatedPrismValueDeltaSetTriple(PrismContext prismContext) AbstractDelegatedPrismValueDeltaSetTriple(Collection<V> zeroSet, Collection<V> plusSet, Collection<V> minusSet, PrismContext prismContext) 
- 
Method SummaryModifier 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(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, 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.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.Objectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpabledebugDump, debugDumpLazily, debugDumpLazilyMethods inherited from interface com.evolveum.midpoint.prism.delta.DeltaSetTripleclearMethods inherited from interface com.evolveum.midpoint.util.ShortDumpableshortDump, shortDumpLazily
- 
Field Details- 
inner
 
- 
- 
Constructor Details- 
AbstractDelegatedPrismValueDeltaSetTriple
- 
AbstractDelegatedPrismValueDeltaSetTriple
- 
AbstractDelegatedPrismValueDeltaSetTriplepublic AbstractDelegatedPrismValueDeltaSetTriple(Collection<V> zeroSet, Collection<V> plusSet, Collection<V> minusSet, PrismContext prismContext) 
 
- 
- 
Method Details- 
distributeAspublic <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 interface- PrismValueDeltaSetTriple<V extends PrismValue>
 
- 
getValueClass- Specified by:
- getValueClassin interface- PrismValueDeltaSetTriple<V extends PrismValue>
 
- 
getRealValueClass- Specified by:
- getRealValueClassin interface- PrismValueDeltaSetTriple<V extends PrismValue>
 
- 
isRawpublic boolean isRaw()- Specified by:
- isRawin interface- PrismValueDeltaSetTriple<V extends PrismValue>
 
- 
applyDefinition- Specified by:
- applyDefinitionin interface- PrismValueDeltaSetTriple<V extends PrismValue>
- Throws:
- SchemaException
 
- 
setOriginTypeDescription copied from interface:PrismValueDeltaSetTripleSets specified source type for all values in all sets- Specified by:
- setOriginTypein interface- PrismValueDeltaSetTriple<V extends PrismValue>
 
- 
setOriginObjectDescription copied from interface:PrismValueDeltaSetTripleSets specified origin object for all values in all sets- Specified by:
- setOriginObjectin interface- PrismValueDeltaSetTriple<V extends PrismValue>
 
- 
removeEmptyValuespublic void removeEmptyValues(boolean allowEmptyValues) - Specified by:
- removeEmptyValuesin interface- PrismValueDeltaSetTriple<V extends PrismValue>
 
- 
clone- Specified by:
- clonein interface- PrismValueDeltaSetTriple<V extends PrismValue>
- Overrides:
- clonein class- Object
 
- 
checkConsistencepublic void checkConsistence()- Specified by:
- checkConsistencein interface- PrismValueDeltaSetTriple<V extends PrismValue>
 
- 
accept- Specified by:
- acceptin interface- PrismValueDeltaSetTriple<V extends PrismValue>
- Specified by:
- acceptin interface- Visitable<V extends PrismValue>
 
- 
checkNoParentpublic void checkNoParent()- Specified by:
- checkNoParentin interface- PrismValueDeltaSetTriple<V extends PrismValue>
 
- 
diffpublic static <T> DeltaSetTriple<T> diff(Collection<T> valuesOld, Collection<T> valuesNew, PrismContext prismContext) Description copied from interface:DeltaSetTripleCompares two (unordered) collections and creates a triple describing the differences.
- 
getZeroSet- Specified by:
- getZeroSetin interface- DeltaSetTriple<V extends PrismValue>
 
- 
getPlusSet- Specified by:
- getPlusSetin interface- DeltaSetTriple<V extends PrismValue>
 
- 
getMinusSet- Specified by:
- getMinusSetin interface- DeltaSetTriple<V extends PrismValue>
 
- 
hasPlusSetpublic boolean hasPlusSet()- Specified by:
- hasPlusSetin interface- DeltaSetTriple<V extends PrismValue>
 
- 
hasZeroSetpublic boolean hasZeroSet()- Specified by:
- hasZeroSetin interface- DeltaSetTriple<V extends PrismValue>
 
- 
hasMinusSetpublic boolean hasMinusSet()- Specified by:
- hasMinusSetin interface- DeltaSetTriple<V extends PrismValue>
 
- 
isZeroOnlypublic boolean isZeroOnly()- Specified by:
- isZeroOnlyin interface- DeltaSetTriple<V extends PrismValue>
 
- 
addToPlusSet- Specified by:
- addToPlusSetin interface- DeltaSetTriple<V extends PrismValue>
 
- 
addToMinusSet- Specified by:
- addToMinusSetin interface- DeltaSetTriple<V extends PrismValue>
 
- 
addToZeroSet- Specified by:
- addToZeroSetin interface- DeltaSetTriple<V extends PrismValue>
 
- 
addAllToPlusSet- Specified by:
- addAllToPlusSetin interface- DeltaSetTriple<V extends PrismValue>
 
- 
addAllToMinusSet- Specified by:
- addAllToMinusSetin interface- DeltaSetTriple<V extends PrismValue>
 
- 
addAllToZeroSet- Specified by:
- addAllToZeroSetin interface- DeltaSetTriple<V extends PrismValue>
 
- 
getSet- Specified by:
- getSetin interface- DeltaSetTriple<V extends PrismValue>
 
- 
addAllToSet- Specified by:
- addAllToSetin interface- DeltaSetTriple<V extends PrismValue>
 
- 
addToSet- Specified by:
- addToSetin interface- DeltaSetTriple<V extends PrismValue>
 
- 
presentInPlusSet- Specified by:
- presentInPlusSetin interface- DeltaSetTriple<V extends PrismValue>
 
- 
presentInMinusSet- Specified by:
- presentInMinusSetin interface- DeltaSetTriple<V extends PrismValue>
 
- 
presentInZeroSet- Specified by:
- presentInZeroSetin interface- DeltaSetTriple<V extends PrismValue>
 
- 
clearPlusSetpublic void clearPlusSet()- Specified by:
- clearPlusSetin interface- DeltaSetTriple<V extends PrismValue>
 
- 
clearMinusSetpublic void clearMinusSet()- Specified by:
- clearMinusSetin interface- DeltaSetTriple<V extends PrismValue>
 
- 
clearZeroSetpublic void clearZeroSet()- Specified by:
- clearZeroSetin interface- DeltaSetTriple<V extends PrismValue>
 
- 
sizepublic int size()- Specified by:
- sizein interface- DeltaSetTriple<V extends PrismValue>
 
- 
unionDescription copied from interface:DeltaSetTripleReturns all values, regardless of the internal sets.- Specified by:
- unionin interface- DeltaSetTriple<V extends PrismValue>
 
- 
getAnyValue- Specified by:
- getAnyValuein interface- DeltaSetTriple<V extends PrismValue>
 
- 
getAllValues- Specified by:
- getAllValuesin interface- DeltaSetTriple<V extends PrismValue>
 
- 
stream- Specified by:
- streamin interface- DeltaSetTriple<V extends PrismValue>
 
- 
getNonNegativeValues- Specified by:
- getNonNegativeValuesin interface- DeltaSetTriple<V extends PrismValue>
 
- 
getNonPositiveValues- Specified by:
- getNonPositiveValuesin interface- DeltaSetTriple<V extends PrismValue>
 
- 
merge- Specified by:
- mergein interface- DeltaSetTriple<V extends PrismValue>
 
- 
clone- Specified by:
- clonein interface- DeltaSetTriple<V extends PrismValue>
 
- 
isEmptypublic boolean isEmpty()- Specified by:
- isEmptyin interface- DeltaSetTriple<V extends PrismValue>
 
- 
foreachDescription 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 interface- DeltaSetTriple<V extends PrismValue>
- Specified by:
- foreachin interface- Foreachable<V extends PrismValue>
 
- 
simpleAccept- Specified by:
- simpleAcceptin interface- DeltaSetTriple<V extends PrismValue>
- Specified by:
- simpleAcceptin interface- SimpleVisitable<V extends PrismValue>
 
- 
transform- Specified by:
- transformin interface- DeltaSetTriple<V extends PrismValue>
 
- 
debugDumpSets- Specified by:
- debugDumpSetsin interface- DeltaSetTriple<V extends PrismValue>
 
- 
toHumanReadableString- Specified by:
- toHumanReadableStringin interface- DeltaSetTriple<V extends PrismValue>
 
- 
debugDump- Specified by:
- debugDumpin interface- DebugDumpable
 
- 
shortDumpDescription 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 interface- ShortDumpable
- Parameters:
- sb- StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
 
 
-