Package com.db4o.ext
Interface ExtObjectSet
-
- All Superinterfaces:
java.util.Collection
,java.lang.Iterable
,java.util.List
,ObjectSet
- All Known Implementing Classes:
ObjectSetFacade
public interface ExtObjectSet extends ObjectSet
extended functionality for theObjectSet
interface.
Every db4oObjectSet
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.void
skip(int count)
skips the specified number of objects without activating them.
-
-
-
Method Detail
-
getIDs
long[] getIDs()
returns an array of internal IDs that correspond to the contained objects.
-
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 interfacejava.util.List
- Parameters:
index
- the index position in this ObjectSet.- Returns:
- the activated object.
-
skip
void skip(int count)
skips the specified number of objects without activating them. Call this method before starting iterating over the iterator returned byList.iterator()
. This method has no effect on calls toget(int)
- Since:
- 8.1
-
-