|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infolayer.util.AbstractOclCollection
org.infolayer.util.DefaultOclCollection
Vector based default OclCollection implementation. Note that OclCollection can't be changed after creation, so the contents have to be passed to the constructor.
Field Summary |
Fields inherited from interface org.infolayer.util.OclCollection |
BAG, COLLECTION, names, ORDERED_SET, SEQUENCE, SET |
Constructor Summary | |
DefaultOclCollection(int collectionType,
UmlClassifier elementType)
|
|
DefaultOclCollection(int collectionType,
UmlClassifier elementType,
java.util.Collection v,
boolean sealed)
please note: the collection is not copied, it is taken as it is. |
|
DefaultOclCollection(int collectionType,
UmlClassifier elementType,
java.util.Iterator iter)
|
|
DefaultOclCollection(int collectionType,
UmlClassifier elementType,
java.util.Iterator iter,
OclExpression filter,
OclExpression orderBy)
|
Method Summary | |
java.lang.Object |
at(long i)
Returns the n-th element of the collection. |
long |
count(java.lang.Object object)
The number of times that object occurs in this collection |
java.util.Collection |
getCollection()
Returns the underlying java collection, if not sealed |
java.util.Iterator |
iterator()
|
void |
seal()
|
long |
size()
Returns the number of elements contained in this collection |
Methods inherited from class org.infolayer.util.AbstractOclCollection |
append, asBag, asSequence, asSet, collectNested, difference, equals, excludes, excludesAll, excluding, first, flatten, getCollectionType, getElementType, getSealed, getType, includes, includesAll, including, indexOf, insertAt, intersection, isEmpty, isSealed, last, max, min, notEmpty, prepend, reverse, select, select, sortedBy, subSequence, sum, symmetricDifference, toOclLiteral, toString, union |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DefaultOclCollection(int collectionType, UmlClassifier elementType)
public DefaultOclCollection(int collectionType, UmlClassifier elementType, java.util.Iterator iter)
public DefaultOclCollection(int collectionType, UmlClassifier elementType, java.util.Iterator iter, OclExpression filter, OclExpression orderBy)
public DefaultOclCollection(int collectionType, UmlClassifier elementType, java.util.Collection v, boolean sealed)
Method Detail |
public long size()
OclCollection
size
in interface OclCollection
size
in class AbstractOclCollection
public void seal()
public long count(java.lang.Object object)
OclCollection
count
in interface OclCollection
count
in class AbstractOclCollection
public java.lang.Object at(long i)
OclCollection
at
in interface OclCollection
at
in class AbstractOclCollection
public java.util.Collection getCollection()
public java.util.Iterator iterator()
iterator
in interface OclCollection
iterator
in class AbstractOclCollection
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |