org.chromattic.common
Class ElementInsertion.Singleton<E>

java.lang.Object
  extended by org.chromattic.common.ElementInsertion<E>
      extended by org.chromattic.common.ElementInsertion.Singleton<E>
Enclosing class:
ElementInsertion<E>

public static final class ElementInsertion.Singleton<E>
extends ElementInsertion<E>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.chromattic.common.ElementInsertion
ElementInsertion.First<E>, ElementInsertion.Last<E>, ElementInsertion.Middle<E>, ElementInsertion.Singleton<E>
 
Field Summary
 
Fields inherited from class org.chromattic.common.ElementInsertion
element
 
Constructor Summary
ElementInsertion.Singleton(E element)
           
 
Method Summary
 boolean equals(Object obj)
           
 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.
 String toString()
           
 
Methods inherited from class org.chromattic.common.ElementInsertion
getElement
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ElementInsertion.Singleton

public ElementInsertion.Singleton(E element)
Method Detail

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.