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 newSharedLong
instance.- Parameters:
name
- the name of this SharedLong.inival
- the initial value of this SharedLong.- Throws:
NullPointerException
- ifname
isnull
.
-
-
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
-