java.lang.Object
cl.netswitch.lib.server.SharedValue
cl.netswitch.lib.server.SharedLong
Contains a Long value that is shared by all servers.
-
Method Summary
Methods inherited from class cl.netswitch.lib.server.SharedValue
getName
-
Method Details
-
get
public long get()Returns the value of thisSharedLong
.- Returns:
- the value of this
SharedLong
.
-
set
public void set(long value) Changes the value of thisSharedLong
.- Parameters:
value
- the new value of thisSharedLong
.
-
parse
Changes the value of thisSharedLong
.- Specified by:
parse
in classSharedValue
- Parameters:
text
- the string representation of the new value.- Throws:
IllegalArgumentException
- iftext
is invalid.
-
toString
Returns a string representation of thisSharedLong
.
-