jfreerails.util
Class List1DDiff<T>

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

public class List1DDiff<T>
extends ListXDDiffs<T>
implements List1D<T>

See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
private  List1D<T> underlyingList
           
 
Constructor Summary
List1DDiff(java.util.SortedMap<ListKey,java.lang.Object> diffs, List1D<T> list, java.lang.Enum listID)
           
 
Method Summary
 int add(T element)
           
 boolean equals(java.lang.Object obj)
           
 T get(int i)
           
(package private)  java.lang.Object getUnderlyingList()
           
(package private)  int getUnderlyingSize(int... dim)
          Returns the size of the underlying list at the specified dimension or -1 if the underlying list does not have the specified dimension.
 int hashCode()
           
 T removeLast()
           
 void set(int i, T element)
           
 int size()
           
(package private)  T uGet(int... i)
           
 
Methods inherited from class jfreerails.util.ListXDDiffs
add2Array, addDimension, addElement, get, removeFromArray, removeLast, removeLastList, set, 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

underlyingList

private final List1D<T> underlyingList
Constructor Detail

List1DDiff

public List1DDiff(java.util.SortedMap<ListKey,java.lang.Object> diffs,
                  List1D<T> list,
                  java.lang.Enum listID)
Method Detail

get

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

getUnderlyingList

java.lang.Object getUnderlyingList()
Specified by:
getUnderlyingList in class ListXDDiffs<T>

size

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

uGet

T uGet(int... i)
Specified by:
uGet in class ListXDDiffs<T>

add

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

removeLast

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

set

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

getUnderlyingSize

int getUnderlyingSize(int... dim)
Description copied from class: ListXDDiffs
Returns the size of the underlying list at the specified dimension or -1 if the underlying list does not have the specified dimension.

Specified by:
getUnderlyingSize in class ListXDDiffs<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