Package rasj.odmg

Class RasCollection

  • All Implemented Interfaces:
    java.lang.Iterable, java.util.Collection, DCollection
    Direct Known Subclasses:
    RasBag, RasList, RasSet

    public abstract class RasCollection
    extends java.util.AbstractCollection
    implements DCollection
    This abstract class should implement the ODMG DCollection interface but is not implemented yet, please use subclass RasBag
    • Constructor Summary

      Constructors 
      Constructor Description
      RasCollection()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean existsElement​(java.lang.String predicate)
      Not implemented yet.
      java.util.Iterator iterator()
      Not implemented yet.
      DCollection query​(java.lang.String predicate)
      Not implemented yet.
      java.util.Iterator select​(java.lang.String predicate)
      Not implemented yet.
      java.lang.Object selectElement​(java.lang.String predicate)
      Not implemented yet.
      int size()
      Not implemented yet.
      • Methods inherited from class java.util.AbstractCollection

        add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
    • Constructor Detail

      • RasCollection

        public RasCollection()
    • Method Detail

      • query

        public DCollection query​(java.lang.String predicate)
        Not implemented yet.
        Specified by:
        query in interface DCollection
        Parameters:
        predicate - An OQL boolean query predicate.
        Returns:
        A new collection containing the elements that evaluated true for the predicate.
      • select

        public java.util.Iterator select​(java.lang.String predicate)
        Not implemented yet.
        Specified by:
        select in interface DCollection
        Parameters:
        predicate - An OQL boolean query predicate.
        Returns:
        An iterator used to iterate over the elements that evaluated true for the predicate.
      • existsElement

        public boolean existsElement​(java.lang.String predicate)
        Not implemented yet.
        Specified by:
        existsElement in interface DCollection
        Parameters:
        predicate - An OQL boolean query predicate.
        Returns:
        True if there is an element of the collection that evaluates to true for the predicate, otherwise false.
      • selectElement

        public java.lang.Object selectElement​(java.lang.String predicate)
        Not implemented yet.
        Specified by:
        selectElement in interface DCollection
        Parameters:
        predicate - An OQL boolean query predicate.
        Returns:
        The element that evaluates to true for the predicate. If no element evaluates to true, null is returned.
      • size

        public int size()
        Not implemented yet.
        Specified by:
        size in interface java.util.Collection
        Specified by:
        size in class java.util.AbstractCollection
      • iterator

        public java.util.Iterator iterator()
        Not implemented yet.
        Specified by:
        iterator in interface java.util.Collection
        Specified by:
        iterator in interface java.lang.Iterable
        Specified by:
        iterator in class java.util.AbstractCollection