|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface Collection12<T extends java.lang.Comparable<? super T>>
Interface for a general-purpose, generic container object.
| Method Summary | |
|---|---|
void |
add(T data)
Adds the specified object to the container. |
void |
clear()
Removes all elements from the collection. |
boolean |
contains(T data)
Returns whether the specified object is stored in the collection. |
void |
remove(T data)
Removes the specified object from the container. |
int |
size()
Returns the number of data currently stored in the collection. |
| Method Detail |
|---|
void add(T data)
data - the object to add to the collection.void remove(T data)
data - the object to remove from the collection.boolean contains(T data)
data - the object whose presence in the collection is being queried.
void clear()
int size()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||