org.apache.openjpa.lib.rop
Class ListResultList

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

public class ListResultList
extends AbstractResultList

A basic ResultList implementation that wraps a normal list.

Author:
Abe White
See Also:
Serialized Form

Constructor Summary
ListResultList(List list)
          Constructor.
 
Method Summary
 void close()
          Close the list.
 boolean contains(Object o)
           
 boolean containsAll(Collection c)
           
 Object get(int index)
           
 List getDelegate()
          Return the wrapped list.
 int indexOf(Object o)
           
 boolean isClosed()
          Returns true if the list has been closed.
 boolean isEmpty()
           
 boolean isProviderOpen()
          Returns true if the provider backing this list is open.
 Iterator iterator()
           
 int lastIndexOf(Object o)
           
 ListIterator listIterator()
           
 ListIterator listIterator(int index)
           
 int size()
           
 List subList(int fromIndex, int toIndex)
           
 Object[] toArray()
           
 Object[] toArray(Object[] a)
           
 String toString()
           
 Object writeReplace()
           
 
Methods inherited from class org.apache.openjpa.lib.rop.AbstractResultList
add, add, addAll, addAll, assertOpen, clear, getUserObject, remove, remove, removeAll, retainAll, set, setUserObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
equals, hashCode
 

Constructor Detail

ListResultList

public ListResultList(List list)
Constructor. Supply delegate.

Method Detail

getDelegate

public List getDelegate()
Return the wrapped list.


isProviderOpen

public boolean isProviderOpen()
Description copied from interface: ResultList
Returns true if the provider backing this list is open.


isClosed

public boolean isClosed()
Description copied from interface: ResultList
Returns true if the list has been closed.


close

public void close()
Description copied from interface: ResultList
Close the list.


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)

size

public int size()

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)

writeReplace

public Object writeReplace()

toString

public String toString()
Overrides:
toString in class Object

subList

public List subList(int fromIndex,
                    int toIndex)


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