|
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.rules.AbleOclCollection
com.ibm.able.rules.AbleOclBag
This class defines an OCL Bag. The underlying implementation is built on com.ibm.able.data.AbleBag and its methods are surfaced as well.
| Field Summary |
|---|
| Fields inherited from class com.ibm.able.rules.AbleOclCollection |
|---|
myCollection |
| Constructor Summary | |
|---|---|
AbleOclBag()
Create a new, empty Bag. |
|
AbleOclBag(AbleOclCollection theAbleOclCollection)
Create a new Bag based on the specified OCL collection. |
|
AbleOclBag(java.util.Collection theCollection)
Create a new Bag based on the specified Java collection. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object theObject)
|
AbleOclCollection |
excluding(java.lang.Object theObject)
Returns a new collection comprised of this collection with the specified object removed. |
AbleOclCollection |
flatten()
Flattens the elements of this collection. |
int |
hashCode()
|
AbleOclCollection |
including(java.lang.Object theObject)
Returns a new collection comprised of this collection and the specified object. |
AbleOclCollection |
intersection(AbleOclBag theBag)
Returns a new collection that is the intersection of this collection and the specified Bag. |
AbleOclSet |
intersection(AbleOclSet theSet)
Returns a new collection that is the intersection of this collection and the specified Set. |
boolean |
removeAll(java.util.Collection theCollection)
Removes all of this collection's elements that are also contained in the specified collection. |
boolean |
retainAll(java.util.Collection theCollection)
Retains only the elements in this collection that are contained in the specified collection. |
void |
setCollection(java.util.Collection theCollection)
Sets the value of the underlying collection to be the specified collection. |
AbleOclBag |
union(AbleOclBag theBag)
Returns a new collection that is the union of this collection and the specified Bag. |
AbleOclCollection |
union(AbleOclSet theSet)
Returns a new collection that is the union of this collection and the specified Set. |
| Methods inherited from class com.ibm.able.rules.AbleOclCollection |
|---|
add, addAll, any, append, asBag, asOrderedSet, asSequence, asSet, at, clear, collect, contains, containsAll, count, difference, excludes, excludesAll, exists, first, flatten, forAll, getCollection, hasAtLeast, hasAtMost, hasBetween, hasExactly, includes, includesAll, indexOf, insertAt, intersection, isEmpty, isUnique, iterator, last, notEmpty, one, prepend, product, reject, remove, select, size, subOrderedSet, subSequence, sum, symmetricDifference, toArray, toArray, union |
| Methods inherited from class java.util.AbstractCollection |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AbleOclBag()
public AbleOclBag(java.util.Collection theCollection)
theCollection - A collection on which to base the new Bag.
public AbleOclBag(AbleOclCollection theAbleOclCollection)
theAbleOclCollection - A collection on which to base the new Bag.
| Method Detail |
public boolean removeAll(java.util.Collection theCollection)
AbleOclCollection
removeAll in interface java.util.CollectionremoveAll in class AbleOclCollectiontheCollection - A collection whose elements are to be removed from
this collection.
public boolean retainAll(java.util.Collection theCollection)
AbleOclCollection
retainAll in interface java.util.CollectionretainAll in class AbleOclCollectiontheCollection - A collection whose elements are to be retained in this
collection.
public AbleOclCollection flatten()
AbleOclCollection
flatten in class AbleOclCollectionpublic AbleOclCollection including(java.lang.Object theObject)
AbleOclCollection
including in class AbleOclCollectiontheObject - An element to add to the new collection.
public AbleOclCollection excluding(java.lang.Object theObject)
AbleOclCollection
excluding in class AbleOclCollectiontheObject - An element to remove from the new collection.
public AbleOclCollection intersection(AbleOclBag theBag)
AbleOclCollection
intersection in class AbleOclCollectiontheBag - A collection to examine with this collection.
public AbleOclSet intersection(AbleOclSet theSet)
AbleOclCollection
intersection in class AbleOclCollectiontheSet - A collection to examine with this collection.
public AbleOclBag union(AbleOclBag theBag)
AbleOclCollection
union in class AbleOclCollectiontheBag - A collection to examine with this collection.
public AbleOclCollection union(AbleOclSet theSet)
AbleOclCollection
union in class AbleOclCollectiontheSet - A collection to examine with this collection.
public void setCollection(java.util.Collection theCollection)
AbleOclCollection
setCollection in class AbleOclCollectiontheCollection - The collection that is to be the value of this
collection.
public boolean equals(java.lang.Object theObject)
equals in interface java.util.Collectionpublic int hashCode()
hashCode in interface java.util.Collection
|
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 | |||||||||||