|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectjava.util.AbstractCollection
com.ibm.able.data.AbleBag
This class defines a generic Bag class. The class is an extension of java.util.AbstractCollection, which, according to its documentation, is already basically a Bag.
| Constructor Summary | |
|---|---|
AbleBag()
Create a new, empty Bag. |
|
AbleBag(java.util.Collection theCollection)
Create a new Bag based on the specified collection. |
|
| Method Summary | |
|---|---|
boolean |
add(java.lang.Object theObject)
|
void |
clear()
|
boolean |
equals(java.lang.Object theObject)
Returns true iff this bag and the argument bag have the same number of the same elements. |
int |
hashCode()
|
java.util.Iterator |
iterator()
|
boolean |
remove(java.lang.Object theObject)
Removes every occurrence of the object from the collection. |
int |
size()
|
java.lang.String |
toString()
|
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AbleBag()
public AbleBag(java.util.Collection theCollection)
theCollection - A collection on which to base the new Bag.
| Method Detail |
public java.util.Iterator iterator()
iterator in interface java.util.Collectionpublic int size()
size in interface java.util.Collectionpublic boolean add(java.lang.Object theObject)
add in interface java.util.Collectionpublic void clear()
clear in interface java.util.Collectionpublic boolean equals(java.lang.Object theObject)
equals in interface java.util.Collectionpublic int hashCode()
hashCode in interface java.util.Collectionpublic boolean remove(java.lang.Object theObject)
remove in interface java.util.Collectionpublic java.lang.String toString()
|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||