org.neodatis.odb
Interface Values

All Superinterfaces:
java.util.Collection<ObjectValues>, java.lang.Iterable<ObjectValues>, Objects<ObjectValues>
All Known Implementing Classes:
InMemoryBTreeCollectionForValues, SimpleListForValues

public interface Values
extends Objects<ObjectValues>

The main interface of all Object Values query results of NeoDatis ODB

Author:
osmadja

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 getFirst()
          Return the first object of the collection, if exist
 boolean hasNext()
          Inform if the internal Iterator has more objects
 java.util.Iterator<ObjectValues> iterator(OrderByConstants orderByType)
          Returns the collection iterator throughout the order by OrderByConstants
 ObjectValues nextValues()
           
 void reset()
          Reset the internal iterator of the collection
 
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
 

Method Detail

nextValues

ObjectValues nextValues()

hasNext

boolean hasNext()
Inform if the internal Iterator has more objects

Specified by:
hasNext in interface Objects<ObjectValues>
Returns:

getFirst

ObjectValues getFirst()
Return the first object of the collection, if exist

Specified by:
getFirst in interface Objects<ObjectValues>
Returns:

reset

void reset()
Reset the internal iterator of the collection

Specified by:
reset in interface Objects<ObjectValues>

addWithKey

boolean addWithKey(OdbComparable key,
                   ObjectValues object)
Add an object into the collection using a specific ordering key

Specified by:
addWithKey in interface Objects<ObjectValues>
Parameters:
key -
object -
Returns:

addWithKey

boolean addWithKey(int key,
                   ObjectValues object)
Add an object into the collection using a specific ordering key

Specified by:
addWithKey in interface Objects<ObjectValues>
Parameters:
key -
object -
Returns:

iterator

java.util.Iterator<ObjectValues> iterator(OrderByConstants orderByType)
Returns the collection iterator throughout the order by OrderByConstants

Specified by:
iterator in interface Objects<ObjectValues>
Parameters:
orderByType -
Returns: