org.infolayer.util
Class IntervalOclCollection

java.lang.Object
  extended byorg.infolayer.util.AbstractOclCollection
      extended byorg.infolayer.util.IntervalOclCollection
All Implemented Interfaces:
OclCollection, Typed

public class IntervalOclCollection
extends AbstractOclCollection

Author:
haustein To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Field Summary
 
Fields inherited from interface org.infolayer.util.OclCollection
BAG, COLLECTION, names, ORDERED_SET, SEQUENCE, SET
 
Constructor Summary
IntervalOclCollection(UmlModel model, int collectionType, long from, long to)
           
 
Method Summary
 java.lang.Object at(long index)
          Returns the n-th element of the collection.
 long count(java.lang.Object o)
          The number of times that object occurs in this collection
 boolean excludes(java.lang.Object o)
           
 java.lang.Object first()
           
 boolean includes(java.lang.Object o)
           
 java.util.Iterator iterator()
           
 java.lang.Object last()
           
 java.lang.Object max()
           
 java.lang.Object min()
           
 long size()
          Returns the number of elements contained in this collection
 OclCollection subSequence(long from, long to)
           
 java.lang.Object sum()
           
 java.lang.String toOclLiteral()
           
 java.lang.String toString()
           
 
Methods inherited from class org.infolayer.util.AbstractOclCollection
append, asBag, asSequence, asSet, collectNested, difference, equals, excludesAll, excluding, flatten, getCollectionType, getElementType, getSealed, getType, includesAll, including, indexOf, insertAt, intersection, isEmpty, isSealed, notEmpty, prepend, reverse, select, select, sortedBy, symmetricDifference, union
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntervalOclCollection

public IntervalOclCollection(UmlModel model,
                             int collectionType,
                             long from,
                             long to)
Method Detail

at

public java.lang.Object at(long index)
Description copied from interface: OclCollection
Returns the n-th element of the collection. Please note that counting starts with 1.

Specified by:
at in interface OclCollection
Overrides:
at in class AbstractOclCollection

first

public java.lang.Object first()
Specified by:
first in interface OclCollection
Overrides:
first in class AbstractOclCollection

last

public java.lang.Object last()
Specified by:
last in interface OclCollection
Overrides:
last in class AbstractOclCollection

min

public java.lang.Object min()
Specified by:
min in interface OclCollection
Overrides:
min in class AbstractOclCollection

max

public java.lang.Object max()
Specified by:
max in interface OclCollection
Overrides:
max in class AbstractOclCollection

sum

public java.lang.Object sum()
Specified by:
sum in interface OclCollection
Overrides:
sum in class AbstractOclCollection

size

public long size()
Description copied from interface: OclCollection
Returns the number of elements contained in this collection

Specified by:
size in interface OclCollection
Overrides:
size in class AbstractOclCollection

includes

public boolean includes(java.lang.Object o)
Specified by:
includes in interface OclCollection
Overrides:
includes in class AbstractOclCollection

excludes

public boolean excludes(java.lang.Object o)
Specified by:
excludes in interface OclCollection
Overrides:
excludes in class AbstractOclCollection

count

public long count(java.lang.Object o)
Description copied from interface: OclCollection
The number of times that object occurs in this collection

Specified by:
count in interface OclCollection
Overrides:
count in class AbstractOclCollection

subSequence

public OclCollection subSequence(long from,
                                 long to)
Specified by:
subSequence in interface OclCollection
Overrides:
subSequence in class AbstractOclCollection

toString

public java.lang.String toString()
Overrides:
toString in class AbstractOclCollection

toOclLiteral

public java.lang.String toOclLiteral()
Specified by:
toOclLiteral in interface Typed
Overrides:
toOclLiteral in class AbstractOclCollection

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface OclCollection
Specified by:
iterator in class AbstractOclCollection