jfreerails.world.common
Class ImList<E extends FreerailsSerializable>

java.lang.Object
  extended by jfreerails.world.common.ImList<E>
All Implemented Interfaces:
java.io.Serializable, FreerailsSerializable

public final class ImList<E extends FreerailsSerializable>
extends java.lang.Object
implements FreerailsSerializable

An immutable List

Author:
Luke
See Also:
Serialized Form

Field Summary
private  E[] elementData
           
private static long serialVersionUID
           
 
Constructor Summary
ImList(E... items)
           
ImList(java.util.List<E> list)
           
 
Method Summary
 void checkForNulls()
           
 boolean equals(java.lang.Object o)
           
 E get(int i)
           
 int hashCode()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

elementData

private final E extends FreerailsSerializable[] elementData
Constructor Detail

ImList

public ImList(E... items)

ImList

public ImList(java.util.List<E> list)
Method Detail

equals

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

hashCode

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

checkForNulls

public void checkForNulls()
                   throws java.lang.NullPointerException
Throws:
java.lang.NullPointerException

size

public int size()

get

public E get(int i)