org.apache.openjpa.lib.rop
Class AbstractResultList

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

public abstract class AbstractResultList
extends Object
implements ResultList

Abstract base class for read-only result lists.

Author:
Abe White
See Also:
Serialized Form

Constructor Summary
AbstractResultList()
           
 
Method Summary
 void add(int index, Object element)
           
 boolean add(Object o)
           
 boolean addAll(Collection c)
           
 boolean addAll(int index, Collection c)
           
protected  void assertOpen()
           
 void clear()
           
protected  void finalize()
           
 Object remove(int index)
           
 boolean remove(Object o)
           
 boolean removeAll(Collection c)
           
 boolean retainAll(Collection c)
           
 Object set(int index, Object element)
           
 List subList(int from, int to)
           
 
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
contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, size, toArray, toArray
 

Constructor Detail

AbstractResultList

public AbstractResultList()
Method Detail

add

public void add(int index,
                Object element)
Specified by:
add in interface List

add

public boolean add(Object o)
Specified by:
add in interface Collection
Specified by:
add in interface List

addAll

public boolean addAll(Collection c)
Specified by:
addAll in interface Collection
Specified by:
addAll in interface List

addAll

public boolean addAll(int index,
                      Collection c)
Specified by:
addAll in interface List

remove

public Object remove(int index)
Specified by:
remove in interface List

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection
Specified by:
remove in interface List

removeAll

public boolean removeAll(Collection c)
Specified by:
removeAll in interface Collection
Specified by:
removeAll in interface List

retainAll

public boolean retainAll(Collection c)
Specified by:
retainAll in interface Collection
Specified by:
retainAll in interface List

set

public Object set(int index,
                  Object element)
Specified by:
set in interface List

clear

public void clear()
Specified by:
clear in interface Collection
Specified by:
clear in interface List

subList

public List subList(int from,
                    int to)
Specified by:
subList in interface List

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable

assertOpen

protected void assertOpen()


Copyright © 2006 Apache Software Foundation. All Rights Reserved.