org.chromattic.common.collection
Class ElementInsertion.Last<E>

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

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


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

Constructor Detail

ElementInsertion.Last

public ElementInsertion.Last(int index,
                             E previous,
                             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

getPrevious

public E getPrevious()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2013 eXo Platform SAS. All Rights Reserved.