jfreerails.util
Class List1DImpl<T>

java.lang.Object
  extended by jfreerails.util.List1DImpl<T>
All Implemented Interfaces:
java.io.Serializable, List1D<T>

public class List1DImpl<T>
extends java.lang.Object
implements List1D<T>

See Also:
Serialized Form

Field Summary
private  java.util.ArrayList<T> elementData
           
private static long serialVersionUID
           
 
Constructor Summary
List1DImpl()
           
List1DImpl(int initialSize)
           
 
Method Summary
 int add(T element)
           
 boolean equals(java.lang.Object obj)
           
 T get(int i)
           
 int hashCode()
           
 T removeLast()
           
 void set(int i, T element)
           
 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 java.util.ArrayList<T> elementData
Constructor Detail

List1DImpl

public List1DImpl()

List1DImpl

public List1DImpl(int initialSize)
Method Detail

size

public int size()
Specified by:
size in interface List1D<T>

equals

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

hashCode

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

get

public T get(int i)
Specified by:
get in interface List1D<T>

removeLast

public T removeLast()
Specified by:
removeLast in interface List1D<T>

add

public int add(T element)
Specified by:
add in interface List1D<T>

set

public void set(int i,
                T element)
Specified by:
set in interface List1D<T>