kermeta::standard
Class Sequence[G] inherited from Bag[G],
OrderedCollection[G]



A Sequence is an OrderedCollection of elements allowing duplicates

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

Method Summary
Sequence[G]
append()


Builds and returns a new Sequence from current one with element
inserted in tail


           
Boolean
equals(Object)


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


           
Sequence[G]
insertAt(Integer)


Builds and returns a new Sequence from current one with element
inserted at rank index
Raises IndexOutOfBound exception if provided index is lower than 0 or
larger than the size of the OrderedSet


           
Sequence[G]
prepend()


Builds and returns a new Sequence from current one with element
inserted in head


           
Sequence[G]
subSequence(IntegerInteger)


Builds and returns a new Sequence composed of elements of current sequence
from rank min (included) to rank max (excluded).
The order is respected.
Raises IndexOutOfBound exception if min is negative, max is larger than
the size of the sequence or min is larger than max


           


Details of operations

append

Sequence[G] append[()


Builds and returns a new Sequence from current one with element
inserted in tail

@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;21128;21183"

equals

Boolean equals[(Object)


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

@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;20284;20339"

insertAt

Sequence[G] insertAt[(Integer)


Builds and returns a new Sequence from current one with element
inserted at rank index
Raises IndexOutOfBound exception if provided index is lower than 0 or
larger than the size of the OrderedSet

@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;20951;21024"

prepend

Sequence[G] prepend[()


Builds and returns a new Sequence from current one with element
inserted in head

@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;21287;21343"

subSequence

Sequence[G] subSequence[(IntegerInteger)


Builds and returns a new Sequence composed of elements of current sequence
from rank min (included) to rank max (excluded).
The order is respected.
Raises IndexOutOfBound exception if min is negative, max is larger than
the size of the sequence or min is larger than max

@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;20647;20723"