net.lucidviews.util
Class VariableLong

java.lang.Object
  extended byjava.lang.Number
      extended bynet.lucidviews.util.VariableNumber
          extended bynet.lucidviews.util.VariableLong
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Counter

public class VariableLong
extends VariableNumber

A number object holding a variable long integer value.

Since:
1.1
Version:
$Revision: 1.1 $
Author:
Stephen Battey
See Also:
VariableNumber, Serialized Form

Field Summary
private  long value
          The underlying value.
 
Fields inherited from class net.lucidviews.util.VariableNumber
 
Fields inherited from class java.lang.Number
 
Constructor Summary
VariableLong(long value)
          Create a variable number to hold a long value.
VariableLong(java.lang.Number value)
          Create a variable number to hold a long value.
 
Method Summary
 double doubleValue()
           
 boolean equals(java.lang.Object obj)
           
 float floatValue()
           
 int hashCode()
           
 int intValue()
           
 long longValue()
           
protected  void setValueInternal(double value)
          An internal set command.
protected  void setValueInternal(float value)
          An internal set command.
protected  void setValueInternal(int value)
          An internal set command.
protected  void setValueInternal(long value)
          An internal set command.
 java.lang.String toString()
           
 
Methods inherited from class net.lucidviews.util.VariableNumber
isSecure, secure, setValue, setValue, setValue, setValue, setValue, setValue, setValueInternal, setValueInternal, verifyNotSecure
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

private long value
The underlying value.

Constructor Detail

VariableLong

public VariableLong(long value)
Create a variable number to hold a long value.
The number object is initialised with the given value.

Parameters:
value - the initial value

VariableLong

public VariableLong(java.lang.Number value)
Create a variable number to hold a long value.
The number object is initialised with the given number.

Parameters:
value - the initial value
Throws:
java.lang.NullPointerException - if the initial value is null
Method Detail

setValueInternal

protected void setValueInternal(int value)
Description copied from class: VariableNumber
An internal set command.
This function will only be called if the number is still in a variable state.

Specified by:
setValueInternal in class VariableNumber
Parameters:
value - the new value for this number

setValueInternal

protected void setValueInternal(long value)
Description copied from class: VariableNumber
An internal set command.
This function will only be called if the number is still in a variable state.

Specified by:
setValueInternal in class VariableNumber
Parameters:
value - the new value for this number

setValueInternal

protected void setValueInternal(float value)
Description copied from class: VariableNumber
An internal set command.
This function will only be called if the number is still in a variable state.

Specified by:
setValueInternal in class VariableNumber
Parameters:
value - the new value for this number

setValueInternal

protected void setValueInternal(double value)
Description copied from class: VariableNumber
An internal set command.
This function will only be called if the number is still in a variable state.

Specified by:
setValueInternal in class VariableNumber
Parameters:
value - the new value for this number

intValue

public int intValue()

longValue

public long longValue()

floatValue

public float floatValue()

doubleValue

public double doubleValue()

toString

public java.lang.String toString()

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object obj)