public static enum TwoSidedList.Direction extends Enum<TwoSidedList.Direction>
| Enum Constant and Description |
|---|
Left2Right |
Right2Left |
| Modifier and Type | Method and Description |
|---|---|
(package private) abstract void |
checkAdd1(TwoSidedList<?> list)
Checks in
TwoSidedList.add(int, Object, Direction)
whether by adding elements
causes underrun in TwoSidedList.firstIndex()
or overrun in TwoSidedList.minFreeIndex(). |
(package private) abstract void |
checkAddAll(int size,
TwoSidedList<?> list)
Checks in
TwoSidedList.addAll(int, Collection, Direction)
whether by adding elements
causes underrun in TwoSidedList.firstIndex()
or overrun in TwoSidedList.minFreeIndex(). |
(package private) abstract void |
checkRange(int ind,
TwoSidedList<?> list)
Checks whether index
ind
is in the range of list
and throws an appropriate exception if not. |
static TwoSidedList.Direction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TwoSidedList.Direction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TwoSidedList.Direction Left2Right
public static final TwoSidedList.Direction Right2Left
public static TwoSidedList.Direction[] values()
for (TwoSidedList.Direction c : TwoSidedList.Direction.values()) System.out.println(c);
public static TwoSidedList.Direction valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullabstract void checkRange(int ind,
TwoSidedList<?> list)
ind
is in the range of list
and throws an appropriate exception if not.ind - the index to be checked.list - the twosided list under consideration.IndexOutOfBoundsException - this == Left2Rightif not
list.firstIndex() <= ind<list.minFreeIndex()+1.
this == Right2Leftif not
list.firstIndex()-1 <= ind<list.minFreeIndex() .
"Index: <ind> Range: <firstIndex>
- <minFreeIndex()> exclusively. "
.(int, Object, Direction),
abstract void checkAdd1(TwoSidedList<?> list)
TwoSidedList.add(int, Object, Direction)
whether by adding elements
causes underrun in TwoSidedList.firstIndex()
or overrun in TwoSidedList.minFreeIndex().list - the twosided list under consideration.IllegalStateException - if adding an object to this list would
cause underrun in TwoSidedList.firstIndex()
or overrun in TwoSidedList.minFreeIndex()
depending on this direction.TwoSidedList.decFirstIndex(),
abstract void checkAddAll(int size,
TwoSidedList<?> list)
TwoSidedList.addAll(int, Collection, Direction)
whether by adding elements
causes underrun in TwoSidedList.firstIndex()
or overrun in TwoSidedList.minFreeIndex().size - the number of elements to be added.list - the twosided list under consideration.IllegalStateException - if adding size objects to this list would
cause underrun in TwoSidedList.firstIndex()
or overrun in TwoSidedList.minFreeIndex()
depending on this direction.Copyright © 2012–2018 Simuline Organization (l2r). All rights reserved.