Class DeltaTriple<T>
- java.lang.Object
-
- com.evolveum.midpoint.prism.delta.DeltaTriple<T>
-
- All Implemented Interfaces:
DebugDumpable
,Foreachable<T>
public class DeltaTriple<T> extends Object implements DebugDumpable, Foreachable<T>
Utility class for keeping things in three: plus, zero and minus.- Author:
- semancik
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description DeltaTriple()
DeltaTriple(Supplier<T> initializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
debugDump(int indent)
String
debugDumpNoTitle(StringBuilder sb, int indent)
boolean
equals(Object obj)
void
foreach(Processor<T> processor)
Will call processor for every element in the instance.T
get(PlusMinusZero mode)
T
getMinus()
T
getPlus()
T
getZero()
int
hashCode()
void
setMinus(T minus)
void
setPlus(T plus)
void
setZero(T zero)
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
-
-
-
Method Detail
-
getPlus
public T getPlus()
-
setPlus
public void setPlus(T plus)
-
getZero
public T getZero()
-
setZero
public void setZero(T zero)
-
getMinus
public T getMinus()
-
setMinus
public void setMinus(T minus)
-
get
public T get(PlusMinusZero mode)
-
foreach
public void foreach(Processor<T> processor)
Description copied from interface:Foreachable
Will call processor for every element in the instance. This is NOT recursive. E.g. in case of collection of collections the processor will NOT be called for elements of the inner collections. If you need recursion please have a look at Visitor.- Specified by:
foreach
in interfaceForeachable<T>
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
debugDumpNoTitle
public String debugDumpNoTitle(StringBuilder sb, int indent)
-
-