org.neodatis.odb.impl.core.query.list.values
Class SimpleListForValues

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<E>
              extended by org.neodatis.odb.impl.core.query.list.objects.SimpleList<ObjectValues>
                  extended by org.neodatis.odb.impl.core.query.list.values.SimpleListForValues
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<ObjectValues>, java.util.Collection<ObjectValues>, java.util.List<ObjectValues>, java.util.RandomAccess, Objects<ObjectValues>, Values

public class SimpleListForValues
extends SimpleList<ObjectValues>
implements Values

A simple list to hold query result for Object Values API. It is used when no index and no order by is used and inMemory = true

Author:
osmadja
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SimpleListForValues()
           
SimpleListForValues(int initialCapacity)
           
 
Method Summary
 boolean addWithKey(int key, ObjectValues object)
          Add an object into the collection using a specific ordering key
 boolean addWithKey(OdbComparable key, ObjectValues object)
          Add an object into the collection using a specific ordering key
 ObjectValues nextValues()
           
 
Methods inherited from class org.neodatis.odb.impl.core.query.list.objects.SimpleList
getFirst, hasNext, iterator, next, removeByKey, reset
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.neodatis.odb.Values
getFirst, hasNext, iterator, reset
 
Methods inherited from interface org.neodatis.odb.Objects
next, removeByKey
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

SimpleListForValues

public SimpleListForValues()

SimpleListForValues

public SimpleListForValues(int initialCapacity)
Method Detail

nextValues

public ObjectValues nextValues()
Specified by:
nextValues in interface Values

addWithKey

public boolean addWithKey(OdbComparable key,
                          ObjectValues object)
Description copied from interface: Objects
Add an object into the collection using a specific ordering key

Specified by:
addWithKey in interface Objects<ObjectValues>
Specified by:
addWithKey in interface Values
Overrides:
addWithKey in class SimpleList<ObjectValues>
Returns:

addWithKey

public boolean addWithKey(int key,
                          ObjectValues object)
Description copied from interface: Objects
Add an object into the collection using a specific ordering key

Specified by:
addWithKey in interface Objects<ObjectValues>
Specified by:
addWithKey in interface Values
Overrides:
addWithKey in class SimpleList<ObjectValues>
Returns: