jfreerails.util
Class List3DDiff<T>

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

public class List3DDiff<T>
extends ListXDDiffs<T>
implements List3D<T>

See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
private  List3D<T> underlyingList
           
 
Constructor Summary
List3DDiff(java.util.SortedMap<ListKey,java.lang.Object> diffs, List3D<T> list, java.lang.Enum listID)
           
 
Method Summary
 int addD1()
           
 int addD2(int d1)
           
 int addD3(int d1, int d2, T element)
           
 boolean equals(java.lang.Object obj)
           
 T get(int d1, int d2, int d3)
           
(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()
           
 void removeLastD1()
           
 void removeLastD2(int d1)
           
 T removeLastD3(int d1, int d2)
           
 void set(int d1, int d2, int d3, T element)
           
 int sizeD1()
           
 int sizeD2(int d1)
           
 int sizeD3(int d1, int d2)
           
(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 List3D<T> underlyingList
Constructor Detail

List3DDiff

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

addD1

public int addD1()
Specified by:
addD1 in interface List3D<T>

addD2

public int addD2(int d1)
Specified by:
addD2 in interface List3D<T>

addD3

public int addD3(int d1,
                 int d2,
                 T element)
Specified by:
addD3 in interface List3D<T>

get

public T get(int d1,
             int d2,
             int d3)
Specified by:
get in interface List3D<T>

getUnderlyingList

java.lang.Object getUnderlyingList()
Specified by:
getUnderlyingList in class ListXDDiffs<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>

removeLastD1

public void removeLastD1()
Specified by:
removeLastD1 in interface List3D<T>

removeLastD2

public void removeLastD2(int d1)
Specified by:
removeLastD2 in interface List3D<T>

removeLastD3

public T removeLastD3(int d1,
                      int d2)
Specified by:
removeLastD3 in interface List3D<T>

set

public void set(int d1,
                int d2,
                int d3,
                T element)
Specified by:
set in interface List3D<T>

sizeD1

public int sizeD1()
Specified by:
sizeD1 in interface List3D<T>

sizeD2

public int sizeD2(int d1)
Specified by:
sizeD2 in interface List3D<T>

sizeD3

public int sizeD3(int d1,
                  int d2)
Specified by:
sizeD3 in interface List3D<T>

uGet

T uGet(int... i)
Specified by:
uGet 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