Class SharedBoolean
java.lang.Object
cl.netswitch.lib.server.SharedValue
cl.netswitch.lib.server.SharedBoolean
Contains a Boolean value that is shared by all servers.
-
Constructor Summary
ConstructorsConstructorDescriptionSharedBoolean
(String name, boolean inival) Constructs a newSharedBoolean
instance. -
Method Summary
Methods inherited from class SharedValue
getName
-
Constructor Details
-
SharedBoolean
Constructs a newSharedBoolean
instance.- Parameters:
name
- the name of this SharedBoolean.inival
- the initial value of this SharedBoolean.- Throws:
NullPointerException
- ifname
isnull
.
-
-
Method Details
-
get
public boolean get()Returns the value of thisSharedBoolean
.- Returns:
- the value of this
SharedBoolean
.
-
set
public void set(boolean value) Changes the value of thisSharedBoolean
.- Parameters:
value
- the new value of thisSharedBoolean
.
-
parse
Changes the value of thisSharedBoolean
.- Specified by:
parse
in classSharedValue
- Parameters:
text
- the string representation of the new value.- Throws:
IllegalArgumentException
- iftext
is invalid.
-
toString
-