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 Modifier and Type Field Description protected Map<K,V>
minusMap
Collection of values that were deleted.protected Map<K,V>
plusMap
Collection of values that were added.protected Map<K,V>
zeroMap
Collection of values that were not changed.-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
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)
protected Map<K,V>
createMap()
String
debugDump()
Show the content of the object intended for diagnostics by system administrator.String
debugDump(int indent)
protected String
debugName()
Map<K,V>
getMap(PlusMinusZero plusMinusZero)
Map<K,V>
getMinusMap()
Map<K,V>
getPlusMap()
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
debugDumpLazily, debugDumpLazily
-
-
-
-
Method Detail
-
getZeroMap
public Map<K,V> getZeroMap()
- Specified by:
getZeroMap
in interfaceDeltaMapTriple<K,V>
-
getPlusMap
public Map<K,V> getPlusMap()
- Specified by:
getPlusMap
in interfaceDeltaMapTriple<K,V>
-
getMinusMap
public 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>
-
debugName
protected String debugName()
-
debugDump
public String debugDump()
Description copied from interface:DebugDumpable
Show the content of the object intended for diagnostics by system administrator. The out put should be suitable to use in system logs at "debug" level. It may be multi-line, but in that case it should be well indented and quite terse. As it is intended to be used by system administrator, it should not use any developer terms such as class names, exceptions or stack traces.- Specified by:
debugDump
in interfaceDebugDumpable
- Returns:
- content of the object intended for diagnostics by system administrator.
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
-