io.sarl.sre.janus.internal
Class MutableBoolean
All Superinterfaces:
java.io.Serializable, java.lang.Cloneable
@org.eclipse.xtext.xbase.lib.XbaseGenerated
class MutableBoolean
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A boolean object that is mutable.

This class is not thread-safe. For a thread-safe mutable boolean, see AtomicBoolean.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Since:
0.11
Constructor Summary
Constructor and description
new([boolean])
Construct the mutable boolean.
new(Boolean)
Construct the mutable boolean.
new(AtomicBoolean)
Construct the mutable boolean.
Action Summary
Modifier and type Action and description
boolean booleanValue
Convert to a boolean value.
boolean get
Replies the boolean value.
void set(boolean)
Change the boolean value.
void set(Boolean)
Change the boolean value.
void set(AtomicBoolean)
Change the boolean value.
java.util.concurrent.atomic.AtomicBoolean toAtomicBoolean
Convert to a Boolean value.
java.lang.Boolean toBoolean
Convert to a Boolean value.
java.lang.String toString
Constructor Details
new([boolean])
new([boolean])
Construct the mutable boolean.
Parameters:
value - the value.
new(Boolean)
new(Boolean)
Construct the mutable boolean.
Parameters:
value - the value.
new(AtomicBoolean)
new(AtomicBoolean)
Construct the mutable boolean.
Parameters:
value - the value.
Action Details
booleanValue
def booleanValue : boolean
Convert to a boolean value.
Returns:
the boolean value.
get
def get : boolean
Replies the boolean value.
Returns:
the value.
set(boolean)
def set(boolean)
Change the boolean value.
Parameters:
value - the value.
set(Boolean)
def set(Boolean)
Change the boolean value.
Parameters:
value - the value.
set(AtomicBoolean)
def set(AtomicBoolean)
Change the boolean value.
Parameters:
value - the value.
toAtomicBoolean
def toAtomicBoolean : java.util.concurrent.atomic.AtomicBoolean
Convert to a Boolean value.
Returns:
the Boolean value.
toBoolean
def toBoolean : java.lang.Boolean
Convert to a Boolean value.
Returns:
the Boolean value.
toString
def toString : java.lang.String