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 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

      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.
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • 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, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArray
    • Method Detail

      • 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.
      • skip

        void skip​(int count)
        skips the specified number of objects without activating them. Call this method before starting iterating over the iterator returned by List.iterator(). This method has no effect on calls to get(int)
        Since:
        8.1