Class ListResultList

java.lang.Object
org.apache.openjpa.lib.rop.AbstractResultList
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:
  • Constructor Details

    • ListResultList

      public ListResultList(List list)
      Constructor. Supply delegate.
  • Method Details

    • 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)