Package rasj.odmg
Class RasSet
java.lang.Object
java.util.AbstractCollection
rasj.odmg.RasCollection
rasj.odmg.RasSet
- All Implemented Interfaces:
Iterable,Collection,Set,DCollection,DSet
This class implements the ODMG DSet interface.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAppends the specified element to this Bag.voidclear()Removes all of the elements from this set.booleanReturns true if this set contains the specified element.difference(DSet otherSet) Not implemented yet.intersection(DSet otherSet) Not implemented yet.booleanisEmpty()Returns true if this set contains no elements.iterator()Returns an iterator over the elements in this Set in proper sequence.booleanproperSubsetOf(DSet otherSet) Not implemented yet.booleanproperSupersetOf(DSet otherSet) Not implemented yet.booleanRemoves the given element from this set if it is present.intsize()Returns the number of elements in this Set.booleanNot implemented yet.booleansupersetOf(DSet otherSet) Not implemented yet.Not implemented yet.Methods inherited from class rasj.odmg.RasCollection
existsElement, query, select, selectElementMethods inherited from class java.util.AbstractCollection
addAll, containsAll, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface org.odmg.DCollection
existsElement, query, select, selectElementMethods inherited from interface java.util.Set
addAll, containsAll, equals, hashCode, removeAll, retainAll, spliterator, toArray, toArray
-
Constructor Details
-
RasSet
public RasSet()constructor
-
-
Method Details
-
iterator
Returns an iterator over the elements in this Set in proper sequence.- Specified by:
iteratorin interfaceCollection- Specified by:
iteratorin interfaceIterable- Specified by:
iteratorin interfaceSet- Overrides:
iteratorin classRasCollection
-
difference
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
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
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
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
Not implemented yet. -
supersetOf
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.
-
union
Not implemented yet. -
add
Appends the specified element to this Bag.- Specified by:
addin interfaceCollection- Specified by:
addin interfaceSet- Overrides:
addin classAbstractCollection
-
clear
public void clear()Removes all of the elements from this set.- Specified by:
clearin interfaceCollection- Specified by:
clearin interfaceSet- Overrides:
clearin classAbstractCollection
-
contains
Returns true if this set contains the specified element.- Specified by:
containsin interfaceCollection- Specified by:
containsin interfaceSet- Overrides:
containsin classAbstractCollection
-
isEmpty
public boolean isEmpty()Returns true if this set contains no elements.- Specified by:
isEmptyin interfaceCollection- Specified by:
isEmptyin interfaceSet- Overrides:
isEmptyin classAbstractCollection
-
remove
Removes the given element from this set if it is present.- Specified by:
removein interfaceCollection- Specified by:
removein interfaceSet- Overrides:
removein classAbstractCollection
-
size
public int size()Returns the number of elements in this Set.- Specified by:
sizein interfaceCollection- Specified by:
sizein interfaceSet- Overrides:
sizein classRasCollection
-