net.infonode.util
Class IntList

java.lang.Object
  extended by net.infonode.util.IntList

public class IntList
extends java.lang.Object

A single linked list of positive int's.

Version:
$Revision: 1.3 $
Author:
$Author: jesper $

Field Summary
static IntList EMPTY_LIST
          The empty list.
private  IntList next
           
private  int value
           
 
Constructor Summary
IntList(int value, IntList next)
          Constructor.
 
Method Summary
static IntList decode(java.io.ObjectInputStream in)
           
 boolean equals(IntList list)
           
 boolean equals(java.lang.Object object)
           
 IntList getNext()
           
 int getValue()
           
 int hashCode()
           
 boolean isEmpty()
           
 java.lang.String toString()
           
 void write(java.io.ObjectOutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_LIST

public static final IntList EMPTY_LIST
The empty list.


value

private int value

next

private IntList next
Constructor Detail

IntList

public IntList(int value,
               IntList next)
Constructor.

Parameters:
value - the int value
next - the next list element
Method Detail

getValue

public int getValue()
Returns:

getNext

public IntList getNext()

isEmpty

public boolean isEmpty()

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(IntList list)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

write

public void write(java.io.ObjectOutputStream out)
           throws java.io.IOException
Throws:
java.io.IOException

decode

public static IntList decode(java.io.ObjectInputStream in)
                      throws java.io.IOException
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object