|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.infolayer.util.AbstractOclCollection
immutable(!) collections of objects
Field Summary |
Fields inherited from interface org.infolayer.util.OclCollection |
BAG, COLLECTION, names, ORDERED_SET, SEQUENCE, SET |
Method Summary | |
OclCollection |
append(java.lang.Object o)
|
OclCollection |
asBag()
|
OclCollection |
asSequence()
|
OclCollection |
asSet()
|
java.lang.Object |
at(long pos)
Returns the n-th element of the collection. |
OclCollection |
collectNested(OclExpression expr)
|
long |
count(java.lang.Object object)
The number of times that object occurs in this collection |
OclCollection |
difference(OclCollection par)
|
boolean |
equals(java.lang.Object o)
|
boolean |
excludes(java.lang.Object object)
|
boolean |
excludesAll(OclCollection collection)
|
OclCollection |
excluding(java.lang.Object par)
|
java.lang.Object |
first()
|
OclCollection |
flatten()
|
int |
getCollectionType()
|
UmlClassifier |
getElementType()
|
OclCollection |
getSealed()
|
UmlClassifier |
getType()
Returns the Uml type of this object |
boolean |
includes(java.lang.Object object)
|
boolean |
includesAll(OclCollection collection)
|
OclCollection |
including(java.lang.Object o)
|
long |
indexOf(java.lang.Object o)
|
OclCollection |
insertAt(long index,
java.lang.Object o)
|
OclCollection |
intersection(OclCollection c2)
|
boolean |
isEmpty()
|
boolean |
isSealed()
|
abstract java.util.Iterator |
iterator()
|
java.lang.Object |
last()
|
java.lang.Object |
max()
|
java.lang.Object |
min()
|
boolean |
notEmpty()
|
OclCollection |
prepend(java.lang.Object o)
|
OclCollection |
reverse()
|
OclCollection |
select(int permission)
|
OclCollection |
select(OclExpression filter)
|
long |
size()
Returns the number of elements contained in this collection |
OclCollection |
sortedBy(OclExpression orderBy)
|
OclCollection |
subSequence(long lower,
long upper)
|
java.lang.Object |
sum()
|
OclCollection |
symmetricDifference(OclCollection par)
|
java.lang.String |
toOclLiteral()
|
java.lang.String |
toString()
|
OclCollection |
union(OclCollection c2)
|
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public long size()
OclCollection
size
in interface OclCollection
public java.lang.Object at(long pos)
OclCollection
at
in interface OclCollection
pos
- The index position of the desired element
public long count(java.lang.Object object)
OclCollection
count
in interface OclCollection
public boolean includes(java.lang.Object object)
includes
in interface OclCollection
public OclCollection reverse()
reverse
in interface OclCollection
public long indexOf(java.lang.Object o)
indexOf
in interface OclCollection
public UmlClassifier getElementType()
getElementType
in interface OclCollection
public int getCollectionType()
getCollectionType
in interface OclCollection
public java.lang.String toString()
public boolean equals(java.lang.Object o)
public UmlClassifier getType()
Typed
getType
in interface Typed
public OclCollection select(OclExpression filter)
select
in interface OclCollection
public OclCollection select(int permission)
select
in interface OclCollection
public OclCollection sortedBy(OclExpression orderBy)
sortedBy
in interface OclCollection
public abstract java.util.Iterator iterator()
iterator
in interface OclCollection
public boolean excludes(java.lang.Object object)
excludes
in interface OclCollection
public boolean includesAll(OclCollection collection)
includesAll
in interface OclCollection
public boolean excludesAll(OclCollection collection)
excludesAll
in interface OclCollection
public boolean isEmpty()
isEmpty
in interface OclCollection
public boolean notEmpty()
notEmpty
in interface OclCollection
public java.lang.Object sum()
sum
in interface OclCollection
public OclCollection union(OclCollection c2)
union
in interface OclCollection
public OclCollection intersection(OclCollection c2)
intersection
in interface OclCollection
public OclCollection difference(OclCollection par)
difference
in interface OclCollection
public OclCollection including(java.lang.Object o)
including
in interface OclCollection
public OclCollection excluding(java.lang.Object par)
excluding
in interface OclCollection
public OclCollection symmetricDifference(OclCollection par)
symmetricDifference
in interface OclCollection
public OclCollection flatten()
flatten
in interface OclCollection
public OclCollection asSet()
asSet
in interface OclCollection
public OclCollection asSequence()
asSequence
in interface OclCollection
public OclCollection asBag()
asBag
in interface OclCollection
public OclCollection append(java.lang.Object o)
append
in interface OclCollection
public OclCollection prepend(java.lang.Object o)
prepend
in interface OclCollection
public OclCollection insertAt(long index, java.lang.Object o)
insertAt
in interface OclCollection
public OclCollection subSequence(long lower, long upper)
subSequence
in interface OclCollection
public java.lang.Object max()
max
in interface OclCollection
public java.lang.Object min()
min
in interface OclCollection
public java.lang.Object first()
first
in interface OclCollection
public java.lang.Object last()
last
in interface OclCollection
public java.lang.String toOclLiteral()
toOclLiteral
in interface Typed
public OclCollection collectNested(OclExpression expr)
collectNested
in interface OclCollection
public boolean isSealed()
isSealed
in interface OclCollection
public OclCollection getSealed()
getSealed
in interface OclCollection
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |