Class DeltaMapTripleImpl<K,V>
- java.lang.Object
-
- com.evolveum.midpoint.prism.impl.delta.DeltaMapTripleImpl<K,V>
-
- All Implemented Interfaces:
DeltaMapTriple<K,V>
,SimpleVisitable<Map.Entry<K,V>>
,DebugDumpable
,Serializable
public class DeltaMapTripleImpl<K,V> extends Object implements DeltaMapTriple<K,V>
- Author:
- Radovan Semancik
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description DeltaMapTripleImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAllToMap(PlusMinusZero destination, Map<K,V> map)
void
addAllToMinusMap(Map<K,V> map)
void
addAllToPlusMap(Map<K,V> map)
void
addAllToZeroMap(Map<K,V> map)
void
addToMinusMap(K key, V value)
void
addToPlusMap(K key, V value)
void
addToZeroMap(K key, V value)
void
clearMinusMap()
void
clearPlusMap()
void
clearZeroMap()
DeltaMapTriple<K,V>
clone(Cloner<Map.Entry<K,V>> cloner)
protected void
copyValues(DeltaMapTripleImpl<K,V> clone, Cloner<Map.Entry<K,V>> cloner)
String
debugDump(int indent)
Map<K,V>
getMap(PlusMinusZero plusMinusZero)
@NotNull Map<K,V>
getMinusMap()
@NotNull Map<K,V>
getPlusMap()
@NotNull Map<K,V>
getZeroMap()
boolean
hasMinusMap()
boolean
hasPlusMap()
boolean
hasZeroMap()
boolean
isEmpty()
boolean
isZeroOnly()
void
merge(DeltaMapTriple<K,V> triple)
void
simpleAccept(SimpleVisitor<Map.Entry<K,V>> visitor)
int
size()
String
toString()
Collection<K>
unionKeySets()
Returns all values, regardless of the internal sets.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Methods inherited from interface com.evolveum.midpoint.prism.delta.DeltaMapTriple
clear
-
-
-
-
Method Detail
-
getZeroMap
@NotNull public @NotNull Map<K,V> getZeroMap()
- Specified by:
getZeroMap
in interfaceDeltaMapTriple<K,V>
-
getPlusMap
@NotNull public @NotNull Map<K,V> getPlusMap()
- Specified by:
getPlusMap
in interfaceDeltaMapTriple<K,V>
-
getMinusMap
@NotNull public @NotNull Map<K,V> getMinusMap()
- Specified by:
getMinusMap
in interfaceDeltaMapTriple<K,V>
-
getMap
public Map<K,V> getMap(PlusMinusZero plusMinusZero)
- Specified by:
getMap
in interfaceDeltaMapTriple<K,V>
-
hasPlusMap
public boolean hasPlusMap()
- Specified by:
hasPlusMap
in interfaceDeltaMapTriple<K,V>
-
hasZeroMap
public boolean hasZeroMap()
- Specified by:
hasZeroMap
in interfaceDeltaMapTriple<K,V>
-
hasMinusMap
public boolean hasMinusMap()
- Specified by:
hasMinusMap
in interfaceDeltaMapTriple<K,V>
-
isZeroOnly
public boolean isZeroOnly()
- Specified by:
isZeroOnly
in interfaceDeltaMapTriple<K,V>
-
addToPlusMap
public void addToPlusMap(K key, V value)
- Specified by:
addToPlusMap
in interfaceDeltaMapTriple<K,V>
-
addToMinusMap
public void addToMinusMap(K key, V value)
- Specified by:
addToMinusMap
in interfaceDeltaMapTriple<K,V>
-
addToZeroMap
public void addToZeroMap(K key, V value)
- Specified by:
addToZeroMap
in interfaceDeltaMapTriple<K,V>
-
addAllToPlusMap
public void addAllToPlusMap(Map<K,V> map)
- Specified by:
addAllToPlusMap
in interfaceDeltaMapTriple<K,V>
-
addAllToMinusMap
public void addAllToMinusMap(Map<K,V> map)
- Specified by:
addAllToMinusMap
in interfaceDeltaMapTriple<K,V>
-
addAllToZeroMap
public void addAllToZeroMap(Map<K,V> map)
- Specified by:
addAllToZeroMap
in interfaceDeltaMapTriple<K,V>
-
addAllToMap
public void addAllToMap(PlusMinusZero destination, Map<K,V> map)
- Specified by:
addAllToMap
in interfaceDeltaMapTriple<K,V>
-
clearPlusMap
public void clearPlusMap()
- Specified by:
clearPlusMap
in interfaceDeltaMapTriple<K,V>
-
clearMinusMap
public void clearMinusMap()
- Specified by:
clearMinusMap
in interfaceDeltaMapTriple<K,V>
-
clearZeroMap
public void clearZeroMap()
- Specified by:
clearZeroMap
in interfaceDeltaMapTriple<K,V>
-
size
public int size()
- Specified by:
size
in interfaceDeltaMapTriple<K,V>
-
merge
public void merge(DeltaMapTriple<K,V> triple)
- Specified by:
merge
in interfaceDeltaMapTriple<K,V>
-
unionKeySets
public Collection<K> unionKeySets()
Returns all values, regardless of the internal sets.- Specified by:
unionKeySets
in interfaceDeltaMapTriple<K,V>
-
clone
public DeltaMapTriple<K,V> clone(Cloner<Map.Entry<K,V>> cloner)
- Specified by:
clone
in interfaceDeltaMapTriple<K,V>
-
copyValues
protected void copyValues(DeltaMapTripleImpl<K,V> clone, Cloner<Map.Entry<K,V>> cloner)
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceDeltaMapTriple<K,V>
-
simpleAccept
public void simpleAccept(SimpleVisitor<Map.Entry<K,V>> visitor)
- Specified by:
simpleAccept
in interfaceSimpleVisitable<K>
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
-