Package rasj.odmg
Class RasSet
- java.lang.Object
-
- java.util.AbstractCollection
-
- rasj.odmg.RasCollection
-
- rasj.odmg.RasSet
-
- All Implemented Interfaces:
java.lang.Iterable,java.util.Collection,java.util.Set,DCollection,DSet
public class RasSet extends RasCollection implements DSet
This class implements the ODMG DSet interface.
-
-
Constructor Summary
Constructors Constructor Description RasSet()constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(java.lang.Object element)Appends the specified element to this Bag.voidclear()Removes all of the elements from this set.booleancontains(java.lang.Object o)Returns true if this set contains the specified element.DSetdifference(DSet otherSet)Not implemented yet.DSetintersection(DSet otherSet)Not implemented yet.booleanisEmpty()Returns true if this set contains no elements.java.util.Iteratoriterator()Returns an iterator over the elements in this Set in proper sequence.booleanproperSubsetOf(DSet otherSet)Not implemented yet.booleanproperSupersetOf(DSet otherSet)Not implemented yet.booleanremove(java.lang.Object o)Removes the given element from this set if it is present.intsize()Returns the number of elements in this Set.booleansubsetOf(DSet otherSet)Not implemented yet.booleansupersetOf(DSet otherSet)Not implemented yet.DSetunion(DSet otherSet)Not implemented yet.-
Methods inherited from class rasj.odmg.RasCollection
existsElement, query, select, selectElement
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, 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 org.odmg.DCollection
existsElement, query, select, selectElement
-
-
-
-
Method Detail
-
iterator
public java.util.Iterator iterator()
Returns an iterator over the elements in this Set in proper sequence.- Specified by:
iteratorin interfacejava.util.Collection- Specified by:
iteratorin interfacejava.lang.Iterable- Specified by:
iteratorin interfacejava.util.Set- Overrides:
iteratorin classRasCollection
-
difference
public DSet difference(DSet otherSet)
Not implemented yet.- Specified by:
differencein interfaceDSet- Parameters:
otherSet- A set containing elements that should not be in the result set.- Returns:
- A newly created
DSetinstance that contains the elements of this set minus those elements inotherSet.
-
intersection
public DSet intersection(DSet otherSet)
Not implemented yet.- Specified by:
intersectionin interfaceDSet- Parameters:
otherSet- The other set to be used in the intersection operation.- Returns:
- A newly created
DSetinstance that contains the intersection of the two sets.
-
properSubsetOf
public boolean properSubsetOf(DSet otherSet)
Not implemented yet.- Specified by:
properSubsetOfin interfaceDSet- 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:
properSupersetOfin interfaceDSet- 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.
-
supersetOf
public boolean supersetOf(DSet otherSet)
Not implemented yet.- Specified by:
supersetOfin interfaceDSet- Parameters:
otherSet- Another set.- Returns:
- True if this set is a superset of the set referenced by
otherSet, otherwise false.
-
add
public boolean add(java.lang.Object element)
Appends the specified element to this Bag.- Specified by:
addin interfacejava.util.Collection- Specified by:
addin interfacejava.util.Set- Overrides:
addin classjava.util.AbstractCollection
-
clear
public void clear()
Removes all of the elements from this set.- Specified by:
clearin interfacejava.util.Collection- Specified by:
clearin interfacejava.util.Set- Overrides:
clearin classjava.util.AbstractCollection
-
contains
public boolean contains(java.lang.Object o)
Returns true if this set contains the specified element.- Specified by:
containsin interfacejava.util.Collection- Specified by:
containsin interfacejava.util.Set- Overrides:
containsin classjava.util.AbstractCollection
-
isEmpty
public boolean isEmpty()
Returns true if this set contains no elements.- Specified by:
isEmptyin interfacejava.util.Collection- Specified by:
isEmptyin interfacejava.util.Set- Overrides:
isEmptyin classjava.util.AbstractCollection
-
remove
public boolean remove(java.lang.Object o)
Removes the given element from this set if it is present.- Specified by:
removein interfacejava.util.Collection- Specified by:
removein interfacejava.util.Set- Overrides:
removein classjava.util.AbstractCollection
-
size
public int size()
Returns the number of elements in this Set.- Specified by:
sizein interfacejava.util.Collection- Specified by:
sizein interfacejava.util.Set- Overrides:
sizein classRasCollection
-
-