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()
           
 Object[] toArray()
           
 Object[] toArray(Object[] a)
           
 Object writeReplace()
           
 
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 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()


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