|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectpractice.Collection
public abstract class Collection
This abstract class represents a collection. A collection only has a size.
| Constructor Summary | |
|---|---|
Collection()
Creates an empty collection. |
|
| Method Summary | |
|---|---|
void |
add()
Adds an element to this collection. |
boolean |
equals(Object object)
Tests if this collection is the same as the given object. |
boolean |
isEmpty()
Tests if this collection is empty. |
void |
remove()
Removes an element of this collection. |
int |
size()
Returns the size of this collection. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Collection()
| Method Detail |
|---|
public int size()
public boolean isEmpty()
public void add()
public void remove()
public boolean equals(Object object)
equals in class Objectobject - An object.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||