org.multiverse.transactional.collections
Interface TransactionalList<E>

Type Parameters:
E -
All Superinterfaces:
Collection<E>, Iterable<E>, List<E>, TransactionalCollection<E>
All Known Implementing Classes:
TransactionalArrayList, TransactionalLinkedList

public interface TransactionalList<E>
extends List<E>, TransactionalCollection<E>

A TransactionalCollection that implements the List interface.

Author:
Peter Veentjer.
See Also:
TransactionalCollection, List, Collection

Method Summary
 void add(int index, E element)
           
 boolean addAll(int index, Collection<? extends E> c)
           
 E get(int index)
           
 int indexOf(Object o)
           
 int lastIndexOf(Object o)
           
 ListIterator<E> listIterator()
           
 ListIterator<E> listIterator(int index)
           
 E remove(int index)
           
 E set(int index, E element)
           
 List<E> subList(int fromIndex, int toIndex)
           
 
Methods inherited from interface java.util.List
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface org.multiverse.transactional.collections.TransactionalCollection
add, addAll, atomicSize, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
 

Method Detail

get

E get(int index)
Specified by:
get in interface List<E>

indexOf

int indexOf(Object o)
Specified by:
indexOf in interface List<E>

lastIndexOf

int lastIndexOf(Object o)
Specified by:
lastIndexOf in interface List<E>

listIterator

ListIterator<E> listIterator()
Specified by:
listIterator in interface List<E>

listIterator

ListIterator<E> listIterator(int index)
Specified by:
listIterator in interface List<E>

subList

List<E> subList(int fromIndex,
                int toIndex)
Specified by:
subList in interface List<E>

addAll

boolean addAll(int index,
               Collection<? extends E> c)
Specified by:
addAll in interface List<E>

set

E set(int index,
      E element)
Specified by:
set in interface List<E>

add

void add(int index,
         E element)
Specified by:
add in interface List<E>

remove

E remove(int index)
Specified by:
remove in interface List<E>


Copyright © 2008-2010 Multiverse. All Rights Reserved.