Package rasj.odmg

Class RasCollection

All Implemented Interfaces:
Iterable, Collection, DCollection
Direct Known Subclasses:
RasBag, RasList, RasSet

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

    • RasCollection

      public RasCollection()
  • Method Details

    • query

      public DCollection query(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 Iterator select(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(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 Object selectElement(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 Collection
      Specified by:
      size in class AbstractCollection
    • iterator

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