Sequences of objects. This type uses "=="
to compare elements, and does not clone elements that are passed into
and returned from the sequence's methods.
The informal model for a JMLObjectSequence is a finite
mathematical sequence of elements (of type
Object ). In
some examples, we will write
<a,b,c> for a mathematical
sequence of length 3, containing elements a, b,
and c. Elements of sequences are "indexed" from 0, so the
length of a sequence is always 1 more than the index of the last
element in the sequence.
version: $Revision: 1.3 $ author: Gary T. Leavens author: Albert L. Baker See Also:JMLCollection See Also:JMLType See Also:JMLValueSequence See Also:JMLObjectSequenceEnumerator
convertFrom(Object[] a, int size) Return the sequence containing the first 'size' elements in the given
array in the same order as the elements appear in the array.
convertFrom(java.util.Collection c) Return the sequence containing all the object in the
given collection in the same order as the elements appear in the
collection.
convertFrom(JMLCollection c) Return the sequence containing all the object in the
given JMLCollection in the same order as the elements appear in the
collection.
Return the sequence containing all the object in the
given JMLCollection in the same order as the elements appear in the
collection.
throws: ClassCastException - if some element in c is not an instance of Object.