org.ujac.util.exi
Class SequenceIndex

java.lang.Object
  extended by java.lang.Number
      extended by org.ujac.util.exi.SequenceIndex
All Implemented Interfaces:
Serializable

public class SequenceIndex
extends Number

Title: SequenceIndex
Description: A class implementing a mutable number number used for sequence indices.

Author:
lauerc
See Also:
Serialized Form

Constructor Summary
SequenceIndex()
          Constructs a SequenceIndex instance with no specific attributes.
SequenceIndex(int value)
          Constructs a SequenceIndex instance with specific attributes.
 
Method Summary
 double doubleValue()
           
 float floatValue()
           
 void increment()
          Increments the index by one.
 void increment(int value)
          Increments the index by the given value.
 int intValue()
           
 long longValue()
           
 void setValue(int value)
          Sets the new value.
 String toString()
           
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SequenceIndex

public SequenceIndex()
Constructs a SequenceIndex instance with no specific attributes. This sequence starts with index 0.


SequenceIndex

public SequenceIndex(int value)
Constructs a SequenceIndex instance with specific attributes.

Parameters:
value - The initial index.
Method Detail

setValue

public void setValue(int value)
Sets the new value.

Parameters:
value - The value to set.

increment

public void increment()
Increments the index by one.


increment

public void increment(int value)
Increments the index by the given value.

Parameters:
value - The value, by which to increment the index.

intValue

public int intValue()
Specified by:
intValue in class Number
See Also:
Number.intValue()

longValue

public long longValue()
Specified by:
longValue in class Number
See Also:
Number.longValue()

floatValue

public float floatValue()
Specified by:
floatValue in class Number
See Also:
Number.floatValue()

doubleValue

public double doubleValue()
Specified by:
doubleValue in class Number
See Also:
Number.doubleValue()

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2003-2004 UJAC.org. All Rights Reserved.