jfreerails.util
Class ListXDDiffs<T>
java.lang.Object
jfreerails.util.ListXDDiffs<T>
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- List1DDiff, List2DDiff, List3DDiff
public abstract class ListXDDiffs<T>
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
|
Constructor Summary |
ListXDDiffs(java.util.SortedMap<ListKey,java.lang.Object> diffs,
java.lang.Enum listID)
|
|
Method Summary |
(package private) static int[] |
add2Array(int[] dim,
int last)
|
int |
addDimension(int... dim)
|
int |
addElement(T element,
int... dim)
|
private int[] |
checkBounds(int... i)
|
T |
get(int... i)
|
(package private) abstract java.lang.Object |
getUnderlyingList()
|
(package private) abstract 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. |
(package private) static int[] |
removeFromArray(int[] dim)
|
T |
removeLast(int... dim)
|
(package private) int |
removeLastList(int... dim)
|
void |
set(T element,
int... i)
|
private void |
setSize(int size,
int... dim)
|
int |
size(int... i)
|
(package private) abstract T |
uGet(int... i)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
diffs
private final java.util.SortedMap<ListKey,java.lang.Object> diffs
listID
private final java.lang.Enum listID
ListXDDiffs
public ListXDDiffs(java.util.SortedMap<ListKey,java.lang.Object> diffs,
java.lang.Enum listID)
add2Array
static int[] add2Array(int[] dim,
int last)
removeFromArray
static int[] removeFromArray(int[] dim)
addDimension
public int addDimension(int... dim)
addElement
public int addElement(T element,
int... dim)
get
public T get(int... i)
getUnderlyingList
abstract java.lang.Object getUnderlyingList()
getUnderlyingSize
abstract 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.
removeLast
public T removeLast(int... dim)
removeLastList
int removeLastList(int... dim)
set
public void set(T element,
int... i)
checkBounds
private int[] checkBounds(int... i)
setSize
private void setSize(int size,
int... dim)
size
public int size(int... i)
uGet
abstract T uGet(int... i)