public class AbstractDelegatedPrismValueDeltaSetTriple<V extends PrismValue> extends Object implements PrismValueDeltaSetTriple<V>
Modifier and Type | Field and Description |
---|---|
protected PrismValueDeltaSetTriple<V> |
inner |
INDENT_STRING
Constructor and Description |
---|
AbstractDelegatedPrismValueDeltaSetTriple(Collection<V> zeroSet,
Collection<V> plusSet,
Collection<V> minusSet,
PrismContext prismContext) |
AbstractDelegatedPrismValueDeltaSetTriple(PrismContext prismContext) |
AbstractDelegatedPrismValueDeltaSetTriple(PrismValueDeltaSetTriple<V> inner) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor visitor) |
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 |
checkConsistence() |
void |
checkNoParent() |
void |
clearMinusSet() |
void |
clearPlusSet() |
void |
clearZeroSet() |
PrismValueDeltaSetTriple<V> |
clone() |
DeltaSetTriple<V> |
clone(Cloner<V> cloner) |
String |
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> |
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.
|
void |
foreach(Processor<V> processor)
Process each element of every set.
|
Collection<V> |
getAllValues() |
V |
getAnyValue() |
Collection<V> |
getMinusSet() |
Collection<V> |
getNonNegativeValues() |
Collection<V> |
getNonPositiveValues() |
Collection<V> |
getPlusSet() |
Class<?> |
getRealValueClass() |
Collection<V> |
getSet(PlusMinusZero whichSet) |
Class<V> |
getValueClass() |
Collection<V> |
getZeroSet() |
boolean |
hasMinusSet() |
boolean |
hasPlusSet() |
boolean |
hasZeroSet() |
boolean |
isEmpty() |
boolean |
isRaw() |
boolean |
isZeroOnly() |
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 sets
|
void |
setOriginType(OriginType sourceType)
Sets specified source type for all values in all sets
|
void |
shortDump(StringBuilder sb)
Show the content of the object intended for diagnostics.
|
void |
simpleAccept(SimpleVisitor<V> visitor) |
int |
size() |
Stream<V> |
stream() |
String |
toHumanReadableString() |
<X> void |
transform(DeltaSetTriple<X> transformTarget,
Transformer<V,X> transformer) |
Collection<V> |
union()
Returns all values, regardless of the internal sets.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
debugDump, debugDumpLazily, debugDumpLazily
shortDump, shortDumpLazily
protected PrismValueDeltaSetTriple<V extends PrismValue> inner
public AbstractDelegatedPrismValueDeltaSetTriple(PrismValueDeltaSetTriple<V> inner)
public AbstractDelegatedPrismValueDeltaSetTriple(PrismContext prismContext)
public AbstractDelegatedPrismValueDeltaSetTriple(Collection<V> zeroSet, Collection<V> plusSet, Collection<V> minusSet, PrismContext prismContext)
public <O extends PrismValue> void distributeAs(V myMember, PrismValueDeltaSetTriple<O> otherTriple, O otherMember)
PrismValueDeltaSetTriple
distributeAs
in interface PrismValueDeltaSetTriple<V extends PrismValue>
public Class<V> getValueClass()
getValueClass
in interface PrismValueDeltaSetTriple<V extends PrismValue>
public Class<?> getRealValueClass()
getRealValueClass
in interface PrismValueDeltaSetTriple<V extends PrismValue>
public boolean isRaw()
isRaw
in interface PrismValueDeltaSetTriple<V extends PrismValue>
public void applyDefinition(ItemDefinition itemDefinition) throws SchemaException
applyDefinition
in interface PrismValueDeltaSetTriple<V extends PrismValue>
SchemaException
public void setOriginType(OriginType sourceType)
PrismValueDeltaSetTriple
setOriginType
in interface PrismValueDeltaSetTriple<V extends PrismValue>
public void setOriginObject(Objectable originObject)
PrismValueDeltaSetTriple
setOriginObject
in interface PrismValueDeltaSetTriple<V extends PrismValue>
public void removeEmptyValues(boolean allowEmptyValues)
removeEmptyValues
in interface PrismValueDeltaSetTriple<V extends PrismValue>
public PrismValueDeltaSetTriple<V> clone()
clone
in interface PrismValueDeltaSetTriple<V extends PrismValue>
clone
in class Object
public void checkConsistence()
checkConsistence
in interface PrismValueDeltaSetTriple<V extends PrismValue>
public void accept(Visitor visitor)
accept
in interface PrismValueDeltaSetTriple<V extends PrismValue>
accept
in interface Visitable
public void checkNoParent()
checkNoParent
in interface PrismValueDeltaSetTriple<V extends PrismValue>
public static <T> DeltaSetTriple<T> diff(Collection<T> valuesOld, Collection<T> valuesNew, PrismContext prismContext)
DeltaSetTriple
diff
in interface DeltaSetTriple<V extends PrismValue>
@NotNull public Collection<V> getZeroSet()
getZeroSet
in interface DeltaSetTriple<V extends PrismValue>
@NotNull public Collection<V> getPlusSet()
getPlusSet
in interface DeltaSetTriple<V extends PrismValue>
@NotNull public Collection<V> getMinusSet()
getMinusSet
in interface DeltaSetTriple<V extends PrismValue>
public boolean hasPlusSet()
hasPlusSet
in interface DeltaSetTriple<V extends PrismValue>
public boolean hasZeroSet()
hasZeroSet
in interface DeltaSetTriple<V extends PrismValue>
public boolean hasMinusSet()
hasMinusSet
in interface DeltaSetTriple<V extends PrismValue>
public boolean isZeroOnly()
isZeroOnly
in interface DeltaSetTriple<V extends PrismValue>
public void addToPlusSet(V item)
addToPlusSet
in interface DeltaSetTriple<V extends PrismValue>
public void addToMinusSet(V item)
addToMinusSet
in interface DeltaSetTriple<V extends PrismValue>
public void addToZeroSet(V item)
addToZeroSet
in interface DeltaSetTriple<V extends PrismValue>
public void addAllToPlusSet(Collection<V> items)
addAllToPlusSet
in interface DeltaSetTriple<V extends PrismValue>
public void addAllToMinusSet(Collection<V> items)
addAllToMinusSet
in interface DeltaSetTriple<V extends PrismValue>
public void addAllToZeroSet(Collection<V> items)
addAllToZeroSet
in interface DeltaSetTriple<V extends PrismValue>
public Collection<V> getSet(PlusMinusZero whichSet)
getSet
in interface DeltaSetTriple<V extends PrismValue>
public void addAllToSet(PlusMinusZero destination, Collection<V> items)
addAllToSet
in interface DeltaSetTriple<V extends PrismValue>
public void addToSet(PlusMinusZero destination, V item)
addToSet
in interface DeltaSetTriple<V extends PrismValue>
public boolean presentInPlusSet(V item)
presentInPlusSet
in interface DeltaSetTriple<V extends PrismValue>
public boolean presentInMinusSet(V item)
presentInMinusSet
in interface DeltaSetTriple<V extends PrismValue>
public boolean presentInZeroSet(V item)
presentInZeroSet
in interface DeltaSetTriple<V extends PrismValue>
public void clearPlusSet()
clearPlusSet
in interface DeltaSetTriple<V extends PrismValue>
public void clearMinusSet()
clearMinusSet
in interface DeltaSetTriple<V extends PrismValue>
public void clearZeroSet()
clearZeroSet
in interface DeltaSetTriple<V extends PrismValue>
public int size()
size
in interface DeltaSetTriple<V extends PrismValue>
public Collection<V> union()
DeltaSetTriple
union
in interface DeltaSetTriple<V extends PrismValue>
public V getAnyValue()
getAnyValue
in interface DeltaSetTriple<V extends PrismValue>
public Collection<V> getAllValues()
getAllValues
in interface DeltaSetTriple<V extends PrismValue>
public Stream<V> stream()
stream
in interface DeltaSetTriple<V extends PrismValue>
@NotNull public Collection<V> getNonNegativeValues()
getNonNegativeValues
in interface DeltaSetTriple<V extends PrismValue>
@NotNull public Collection<V> getNonPositiveValues()
getNonPositiveValues
in interface DeltaSetTriple<V extends PrismValue>
public void merge(DeltaSetTriple<V> triple)
merge
in interface DeltaSetTriple<V extends PrismValue>
public DeltaSetTriple<V> clone(Cloner<V> cloner)
clone
in interface DeltaSetTriple<V extends PrismValue>
public boolean isEmpty()
isEmpty
in interface DeltaSetTriple<V extends PrismValue>
public void foreach(Processor<V> processor)
DeltaSetTriple
foreach
in interface DeltaSetTriple<V extends PrismValue>
foreach
in interface Foreachable<V extends PrismValue>
public void simpleAccept(SimpleVisitor<V> visitor)
simpleAccept
in interface DeltaSetTriple<V extends PrismValue>
simpleAccept
in interface SimpleVisitable<V extends PrismValue>
public <X> void transform(DeltaSetTriple<X> transformTarget, Transformer<V,X> transformer)
transform
in interface DeltaSetTriple<V extends PrismValue>
public void debugDumpSets(StringBuilder sb, Consumer<V> dumper, int indent)
debugDumpSets
in interface DeltaSetTriple<V extends PrismValue>
public String toHumanReadableString()
toHumanReadableString
in interface DeltaSetTriple<V extends PrismValue>
public String debugDump(int indent)
debugDump
in interface DebugDumpable
public void shortDump(StringBuilder sb)
ShortDumpable
shortDump
in interface ShortDumpable
sb
- StringBuilder to which to a compact one-line content of the object intended
for diagnostics by system administrator should be appended.Copyright © 2020 Evolveum. All rights reserved.