Package rasj.odmg

Class RasSet

All Implemented Interfaces:
Iterable, Collection, Set, DCollection, DSet

public class RasSet extends RasCollection implements DSet
This class implements the ODMG DSet interface.
  • Constructor Details

    • RasSet

      public RasSet()
      constructor
  • Method Details

    • iterator

      public Iterator iterator()
      Returns an iterator over the elements in this Set in proper sequence.
      Specified by:
      iterator in interface Collection
      Specified by:
      iterator in interface Iterable
      Specified by:
      iterator in interface Set
      Overrides:
      iterator in class RasCollection
    • difference

      public DSet difference(DSet otherSet)
      Not implemented yet.
      Specified by:
      difference in interface DSet
      Parameters:
      otherSet - A set containing elements that should not be in the result set.
      Returns:
      A newly created DSet instance that contains the elements of this set minus those elements in otherSet.
    • intersection

      public DSet intersection(DSet otherSet)
      Not implemented yet.
      Specified by:
      intersection in interface DSet
      Parameters:
      otherSet - The other set to be used in the intersection operation.
      Returns:
      A newly created DSet instance that contains the intersection of the two sets.
    • properSubsetOf

      public boolean properSubsetOf(DSet otherSet)
      Not implemented yet.
      Specified by:
      properSubsetOf in interface DSet
      Parameters:
      otherSet - Another set.
      Returns:
      True if this set is a proper subset of the set referenced by otherSet, otherwise false.
    • properSupersetOf

      public boolean properSupersetOf(DSet otherSet)
      Not implemented yet.
      Specified by:
      properSupersetOf in interface DSet
      Parameters:
      otherSet - Another set.
      Returns:
      True if this set is a proper superset of the set referenced by otherSet, otherwise false.
    • subsetOf

      public boolean subsetOf(DSet otherSet)
      Not implemented yet.
      Specified by:
      subsetOf in interface DSet
      Parameters:
      otherSet - Another set.
      Returns:
      True if this set is a subset of the set referenced by otherSet, otherwise false.
    • supersetOf

      public boolean supersetOf(DSet otherSet)
      Not implemented yet.
      Specified by:
      supersetOf in interface DSet
      Parameters:
      otherSet - Another set.
      Returns:
      True if this set is a superset of the set referenced by otherSet, otherwise false.
    • union

      public DSet union(DSet otherSet)
      Not implemented yet.
      Specified by:
      union in interface DSet
      Parameters:
      otherSet - The other set to be used in the union operation.
      Returns:
      A newly created DSet instance that contains the union of the two sets.
    • add

      public boolean add(Object element)
      Appends the specified element to this Bag.
      Specified by:
      add in interface Collection
      Specified by:
      add in interface Set
      Overrides:
      add in class AbstractCollection
    • clear

      public void clear()
      Removes all of the elements from this set.
      Specified by:
      clear in interface Collection
      Specified by:
      clear in interface Set
      Overrides:
      clear in class AbstractCollection
    • contains

      public boolean contains(Object o)
      Returns true if this set contains the specified element.
      Specified by:
      contains in interface Collection
      Specified by:
      contains in interface Set
      Overrides:
      contains in class AbstractCollection
    • isEmpty

      public boolean isEmpty()
      Returns true if this set contains no elements.
      Specified by:
      isEmpty in interface Collection
      Specified by:
      isEmpty in interface Set
      Overrides:
      isEmpty in class AbstractCollection
    • remove

      public boolean remove(Object o)
      Removes the given element from this set if it is present.
      Specified by:
      remove in interface Collection
      Specified by:
      remove in interface Set
      Overrides:
      remove in class AbstractCollection
    • size

      public int size()
      Returns the number of elements in this Set.
      Specified by:
      size in interface Collection
      Specified by:
      size in interface Set
      Overrides:
      size in class RasCollection