|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectSimpleSet<T>
public class SimpleSet<T> extends Object implements ISimpleSet<T>
| Constructor and Description |
|---|
SimpleSet()
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(T elt)
Adds the given elt to the set. |
boolean |
contains(T elt)
Returns true if elt is in this set. |
Set<T> |
getElements()
Returns the elements in this set, as a java.util.Set |
void |
remove(T elt)
Removes the given elt from the set. |
int |
size()
Returns the size of this set. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ISimpleSet |
|---|
toString |
| Constructor Detail |
|---|
public SimpleSet()
| Method Detail |
|---|
public void add(T elt)
ISimpleSet
add in interface ISimpleSet<T>elt - cannot be null.public boolean contains(T elt)
ISimpleSet
contains in interface ISimpleSet<T>elt - cannot be null.public Set<T> getElements()
ISimpleSet
getElements in interface ISimpleSet<T>public void remove(T elt)
ISimpleSet
remove in interface ISimpleSet<T>elt - cannot be null.public int size()
ISimpleSet
size in interface ISimpleSet<T>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||