net.infonode.util

Class IntList

public class IntList extends Object

A single linked list of positive int's.

Version: $Revision: 1.3 $

Author: $Author: jesper $

Field Summary
static IntListEMPTY_LIST
The empty list.
Constructor Summary
IntList(int value, IntList next)
Constructor.
Method Summary
static IntListdecode(ObjectInputStream in)
booleanequals(Object object)
booleanequals(IntList list)
IntListgetNext()
intgetValue()
inthashCode()
booleanisEmpty()
StringtoString()
voidwrite(ObjectOutputStream out)

Field Detail

EMPTY_LIST

public static final IntList EMPTY_LIST
The empty list.

Constructor Detail

IntList

public IntList(int value, IntList next)
Constructor.

Parameters: value the int value next the next list element

Method Detail

decode

public static IntList decode(ObjectInputStream in)

equals

public boolean equals(Object object)

equals

public boolean equals(IntList list)

getNext

public IntList getNext()

getValue

public int getValue()

Returns:

hashCode

public int hashCode()

isEmpty

public boolean isEmpty()

toString

public String toString()

write

public void write(ObjectOutputStream out)