kermeta::standard
Class Abstract OrderedCollection[G] inherited from Collection[G]



An OrderedCollection is the root abstract class for all ordered Collections.

@CompilerIgnore "true"
@ScalaCompilerName "k2.standard.OrderedCollection"

Method Summary
Void
addAt(Integer)


Adds element in the OrderedCollection at rank index
Raises IndexOutOfBound exception if provided index is lower than 0 or
larger than the size of the OrderedCollection


           

at(Integer)


Returns element at rank index in the OrderedCollection
Raises IndexOutOfBound exception if provided index is lower than 0 or
larger than the size of the OrderedCollection


           

elementAt(Integer)


Returns the element at rank index in the OrderedCollection
Raises IndexOutOfBound exception if provided index is lower than 0 or
larger than the size of the OrderedCollection


           
Boolean
equals(Object)


Overrides Object.equals(Object)
Returns a Boolean stating whether the provided element is equal to
current OrderedCollection


           

first()


Returns the first element in the OrderedCollection
Raises an EmptyCollection exception if the OrderedCollection is empty


           
Integer
indexOf()


Returns the index of the first instance of element in the OrderedCollection
or -1 if the element is not contained by the OrderedCollection


           

last()


Returns the last element in the OrderedCollection
Raises an EmptyCollection exception if the OrderedCollection is empty


           
Void
removeAt(Integer)


Removes the element at rank index from the OrderedCollection
Raises IndexOutOfBound exception if provided index is lower than 0 or
larger than the size of the OrderedCollection


           


Details of operations

addAt

Void addAt[(Integer)


Adds element in the OrderedCollection at rank index
Raises IndexOutOfBound exception if provided index is lower than 0 or
larger than the size of the OrderedCollection

@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/collections.kmt;16491;16554"

at

 at[(Integer)


Returns element at rank index in the OrderedCollection
Raises IndexOutOfBound exception if provided index is lower than 0 or
larger than the size of the OrderedCollection

@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/collections.kmt;18032;18076"

elementAt

 elementAt[(Integer)


Returns the element at rank index in the OrderedCollection
Raises IndexOutOfBound exception if provided index is lower than 0 or
larger than the size of the OrderedCollection

@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/collections.kmt;17013;17064"

equals

Boolean equals[(Object)


Overrides Object.equals(Object)
Returns a Boolean stating whether the provided element is equal to
current OrderedCollection

@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/collections.kmt;17566;17621"

first

 first[()


Returns the first element in the OrderedCollection
Raises an EmptyCollection exception if the OrderedCollection is empty

@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/collections.kmt;17209;17241"

indexOf

Integer indexOf[()


Returns the index of the first instance of element in the OrderedCollection
or -1 if the element is not contained by the OrderedCollection

@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/collections.kmt;17784;17835"

last

 last[()


Returns the last element in the OrderedCollection
Raises an EmptyCollection exception if the OrderedCollection is empty

@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/collections.kmt;17384;17415"

removeAt

Void removeAt[(Integer)


Removes the element at rank index from the OrderedCollection
Raises IndexOutOfBound exception if provided index is lower than 0 or
larger than the size of the OrderedCollection

@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/collections.kmt;16758;16811"