Package org.agrona.collections
Class MutableBoolean
java.lang.Object
org.agrona.collections.MutableBoolean
Mutable boolean valid that is useful for capturing a value when using lambdas or collections.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.MutableBoolean
(boolean value) Construct with a default value. -
Method Summary
-
Field Details
-
value
public boolean valueFor convenient access.
-
-
Constructor Details
-
MutableBoolean
public MutableBoolean()Default constructor. -
MutableBoolean
public MutableBoolean(boolean value) Construct with a default value.- Parameters:
value
- to be set initially.
-
-
Method Details
-
get
public boolean get()Get the current value.- Returns:
- the current value.
-
set
public void set(boolean value) Set the current value.- Parameters:
value
- to be set.
-
equals
-
hashCode
public int hashCode() -
toString
-