|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
add(java.lang.Comparable e)
add an element to the set. |
void |
dump()
The dump method has been added for debugging purposes and each class implementing this interface will display its content in its own way using system.out. |
java.lang.Comparable |
find(java.lang.Comparable e)
find and return the element in the set or return null if the element is not in the set. |
void |
remove(java.lang.Comparable e)
remove an element from the set. |
int |
size()
return the size of the set (i.e. |
java.lang.Comparable[] |
toArray()
The toArray method creates and returns an array containing all elements in the set. |
Method Detail |
public void add(java.lang.Comparable e)
public void remove(java.lang.Comparable e)
public java.lang.Comparable find(java.lang.Comparable e)
public int size()
public void dump()
public java.lang.Comparable[] toArray()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |