org.eclipse.ocl.examples.domain.values.impl

Class SequenceValueImpl

Specified by:
subSequence in interface SequenceValue
Parameters:
self - the source sequence
lower - the 1-based (in OCL fashion) inclusive lower bound
upper - the 1-based (in OCL fashion) inclusive upper bound
Returns:
the source collection with the object inserted at the index
Throws:
java.lang.IndexOutOfBoundsException - if an index is out of bounds
java.lang.IllegalArgumentException - if the lower bound is greater than the upper