Class SharedLong
java.lang.Object
cl.netswitch.lib.server.SharedValue
cl.netswitch.lib.server.SharedLong
Contains a Long value that is shared by all servers.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class SharedValue
getName
-
Constructor Details
-
SharedLong
Constructs a newSharedLonginstance.- Parameters:
name- the name of this SharedLong.inival- the initial value of this SharedLong.- Throws:
NullPointerException- ifnameisnull.
-
-
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:
parsein classSharedValue- Parameters:
text- the string representation of the new value.- Throws:
IllegalArgumentException- iftextis invalid.
-
toString
-