com.lizardtech.djvu
Class NumContext

java.lang.Object
  extended by java.lang.Number
      extended by com.lizardtech.djvu.NumContext
All Implemented Interfaces:
java.io.Serializable

public final class NumContext
extends java.lang.Number

Implements an editable Integer class.

Version:
$Revision: 1.3 $
Author:
$author$
See Also:
Serialized Form

Constructor Summary
NumContext()
          Creates a new NumContext object.
NumContext(int value)
          Creates a new NumContext object.
NumContext(java.lang.Number value)
          Creates a new NumContext object.
 
Method Summary
 double doubleValue()
          Query the primative value as a double.
 boolean equals(java.lang.Object value)
          Tests if this is equal.
 float floatValue()
          Query the primative value as a float.
 int hashCode()
          Returns a hash code for this Object.
 int intValue()
          Query the primative value.
 long longValue()
          Query the primative value as a long.
 void set(int value)
          Set the primative value from an int.
 void set(long value)
          Set the primative value from a long.
 void set(java.lang.Number value)
          Set the primative value from a Number.
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumContext

public NumContext()
Creates a new NumContext object.


NumContext

public NumContext(int value)
Creates a new NumContext object.

Parameters:
value - DOCUMENT ME!

NumContext

public NumContext(java.lang.Number value)
Creates a new NumContext object.

Parameters:
value - DOCUMENT ME!
Method Detail

doubleValue

public final double doubleValue()
Query the primative value as a double.

Specified by:
doubleValue in class java.lang.Number
Returns:
double value.

equals

public final boolean equals(java.lang.Object value)
Tests if this is equal.

Overrides:
equals in class java.lang.Object
Parameters:
value - DOCUMENT ME!
Returns:
DOCUMENT ME!

floatValue

public final float floatValue()
Query the primative value as a float.

Specified by:
floatValue in class java.lang.Number
Returns:
float value.

hashCode

public final int hashCode()
Returns a hash code for this Object.

Overrides:
hashCode in class java.lang.Object
Returns:
DOCUMENT ME!

intValue

public final int intValue()
Query the primative value.

Specified by:
intValue in class java.lang.Number
Returns:
integer value.

longValue

public final long longValue()
Query the primative value as a long.

Specified by:
longValue in class java.lang.Number
Returns:
long value.

set

public final void set(long value)
Set the primative value from a long.

Parameters:
value - long value.

set

public final void set(int value)
Set the primative value from an int.

Parameters:
value - int value.

set

public final void set(java.lang.Number value)
Set the primative value from a Number.

Parameters:
value - Number object.