|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ISimpleSet<T>
| 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. |
String |
toString()
Returns a String representation of this set. |
| Method Detail |
|---|
void add(T elt)
elt - cannot be null.void remove(T elt)
elt - cannot be null.boolean contains(T elt)
elt - cannot be null.Set<T> getElements()
int size()
String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||