Package com.helger.commons.mutable
Class MutableBoolean
java.lang.Object
com.helger.commons.mutable.MutableBoolean
- All Implemented Interfaces:
IComparable<MutableBoolean>,ICloneable<MutableBoolean>,IMutableObject<MutableBoolean>,IGenericImplTrait<MutableBoolean>,Comparable<MutableBoolean>
Object wrapper around a boolean so that it can be passed a final object but
is mutable.
- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionMutableBoolean(boolean bValue) MutableBoolean(MutableBoolean aValue) MutableBoolean(Boolean aValue) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintcompareTo(MutableBoolean rhs) booleangetClone()<T> T<T> TinthashCode()protected voidThis method is invoked after a value changed.set(boolean bValue) set(MutableBoolean aValue) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.commons.compare.IComparable
isEQ, isGE, isGT, isLE, isLT, isNEMethods inherited from interface com.helger.commons.traits.IGenericImplTrait
thisAsT
-
Constructor Details
-
MutableBoolean
public MutableBoolean(boolean bValue) -
MutableBoolean
-
MutableBoolean
-
-
Method Details
-
onAfterChange
This method is invoked after a value changed. -
booleanValue
public boolean booleanValue() -
getAsBoolean
-
set
-
set
-
set
-
getIf
-
getIf
-
compareTo
- Specified by:
compareToin interfaceComparable<MutableBoolean>
-
getClone
- Specified by:
getClonein interfaceICloneable<MutableBoolean>- Returns:
- A 100% deep-copy of the implementing class.
-
equals
-
hashCode
public int hashCode() -
toString
-