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 newSharedStringinstance. -
Method Summary
Methods inherited from class SharedValue
getName
-
Constructor Details
-
SharedString
Constructs a newSharedStringinstance.- Parameters:
name- the name of this SharedString.inival- the initial value of this SharedString.- Throws:
NullPointerException- ifnameisnull.
-
-
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:
parsein classSharedValue- Parameters:
text- the string representation of the new value.- Throws:
IllegalArgumentException- iftextis invalid.
-
toString
-