db4o 6.1

com.db4o.ext
Interface ExtObjectSet

All Superinterfaces:
java.util.Collection, java.lang.Iterable, java.util.Iterator, java.util.List, ObjectSet

public interface ExtObjectSet
extends ObjectSet

extended functionality for the ObjectSet interface.

Every db4o ObjectSet always is an ExtObjectSet so a cast is possible.

ObjectSet.ext() is a convenient method to perform the cast.

The ObjectSet functionality is split to two interfaces to allow newcomers to focus on the essential methods.


Method Summary
 java.lang.Object get(int index)
          returns the item at position [index] in this ObjectSet.
 long[] getIDs()
          returns an array of internal IDs that correspond to the contained objects.
 
Methods inherited from interface com.db4o.ObjectSet
ext, hasNext, next, reset, size
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray
 
Methods inherited from interface java.util.Iterator
remove
 

Method Detail

getIDs

long[] getIDs()
returns an array of internal IDs that correspond to the contained objects.

See Also:
ExtObjectContainer.getID(java.lang.Object), ExtObjectContainer.getByID(long)

get

java.lang.Object get(int index)
returns the item at position [index] in this ObjectSet.

The object will be activated.

Specified by:
get in interface java.util.List
Parameters:
index - the index position in this ObjectSet.
Returns:
the activated object.

db4o 6.1