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:
java.io.Serializable, java.lang.Iterable, java.util.Collection, java.util.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(java.util.List list)
          Constructor.
 
Method Summary
 void close()
          Close the list.
 boolean contains(java.lang.Object o)
           
 boolean containsAll(java.util.Collection c)
           
 java.lang.Object get(int index)
           
 java.util.List getDelegate()
          Return the wrapped list.
 int indexOf(java.lang.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.
 java.util.Iterator iterator()
           
 int lastIndexOf(java.lang.Object o)
           
 java.util.ListIterator listIterator()
           
 java.util.ListIterator listIterator(int index)
           
 int size()
           
 java.lang.Object[] toArray()
           
 java.lang.Object[] toArray(java.lang.Object[] a)
           
 java.lang.Object writeReplace()
           
 
Methods inherited from class org.apache.openjpa.lib.rop.AbstractResultList
add, add, addAll, addAll, assertOpen, clear, remove, remove, removeAll, retainAll, set, subList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.List
equals, hashCode
 

Constructor Detail

ListResultList

public ListResultList(java.util.List list)
Constructor. Supply delegate.

Method Detail

getDelegate

public java.util.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(java.lang.Object o)

containsAll

public boolean containsAll(java.util.Collection c)

get

public java.lang.Object get(int index)

indexOf

public int indexOf(java.lang.Object o)

lastIndexOf

public int lastIndexOf(java.lang.Object o)

size

public int size()

isEmpty

public boolean isEmpty()

iterator

public java.util.Iterator iterator()

listIterator

public java.util.ListIterator listIterator()

listIterator

public java.util.ListIterator listIterator(int index)

toArray

public java.lang.Object[] toArray()

toArray

public java.lang.Object[] toArray(java.lang.Object[] a)

writeReplace

public java.lang.Object writeReplace()


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