|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.chromattic.common.ElementInsertion<E>
public abstract class ElementInsertion<E>
An object that indicates the insertion of an element in a list.
| Nested Class Summary | |
|---|---|
static class |
ElementInsertion.First<E>
|
static class |
ElementInsertion.Last<E>
|
static class |
ElementInsertion.Middle<E>
|
static class |
ElementInsertion.Singleton<E>
|
| Field Summary | |
|---|---|
protected E |
element
. |
| Method Summary | |
|---|---|
E |
getElement()
Returns the inserted element. |
abstract int |
getIndex()
In case of a list addition the index indicates the value that would be returned by a call to the ListIterator.nextIndex() when the element is inserted
in the list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final E element
| Method Detail |
|---|
public abstract int getIndex()
In case of a list addition the index indicates the value that would be returned by
a call to the ListIterator.nextIndex() when the element is inserted
in the list.
public E getElement()
Returns the inserted element.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||