org.chromattic.common.collection
Class ElementInsertion.Singleton<E>
java.lang.Object
org.chromattic.common.collection.ElementInsertion<E>
org.chromattic.common.collection.ElementInsertion.Singleton<E>
- Enclosing class:
- ElementInsertion<E>
public static final class ElementInsertion.Singleton<E>
- extends ElementInsertion<E>
ElementInsertion.Singleton
public ElementInsertion.Singleton(E element)
getIndex
public int getIndex()
- Description copied from class:
ElementInsertion
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.
- Specified by:
getIndex in class ElementInsertion<E>
- Returns:
- the index
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2010 eXo Platform SAS. All Rights Reserved.