org.apache.openjpa.lib.rop
Class AbstractSequentialResultList

java.lang.Object
  extended by org.apache.openjpa.lib.rop.AbstractResultList
      extended by org.apache.openjpa.lib.rop.AbstractSequentialResultList
All Implemented Interfaces:
Serializable, Iterable, Collection, List, ResultList, Closeable
Direct Known Subclasses:
LazyForwardResultList

public abstract class AbstractSequentialResultList
extends AbstractResultList

Abstract base class for sequential result lists. Unlike the AbstractSequentialList, this class doesn't rely on the Collection.size() method.

Author:
Abe White
See Also:
Serialized Form

Constructor Summary
AbstractSequentialResultList()
           
 
Method Summary
 boolean contains(Object o)
           
 boolean containsAll(Collection c)
           
 Object get(int index)
           
 int indexOf(Object o)
           
 boolean isEmpty()
           
 Iterator iterator()
           
protected abstract  ListIterator itr(int index)
          Implement this method and List.size().
 int lastIndexOf(Object o)
           
 ListIterator listIterator()
           
 ListIterator listIterator(int index)
           
 Object[] toArray()
           
 Object[] toArray(Object[] a)
           
 
Methods inherited from class org.apache.openjpa.lib.rop.AbstractResultList
add, add, addAll, addAll, assertOpen, clear, finalize, remove, remove, removeAll, retainAll, set, subList
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.openjpa.lib.rop.ResultList
close, isClosed, isProviderOpen
 
Methods inherited from interface java.util.List
equals, hashCode, size
 

Constructor Detail

AbstractSequentialResultList

public AbstractSequentialResultList()
Method Detail

itr

protected abstract ListIterator itr(int index)
Implement this method and List.size().


contains

public boolean contains(Object o)

containsAll

public boolean containsAll(Collection c)

get

public Object get(int index)

indexOf

public int indexOf(Object o)

lastIndexOf

public int lastIndexOf(Object o)

isEmpty

public boolean isEmpty()

iterator

public Iterator iterator()

listIterator

public ListIterator listIterator()

listIterator

public ListIterator listIterator(int index)

toArray

public Object[] toArray()

toArray

public Object[] toArray(Object[] a)


Copyright © 2006-2007 Apache Software Foundation. All Rights Reserved.