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