| <html> | |
| <head> | |
| <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> | |
| <title>OrderedCollection(T)</title> | |
| <link href="book.css" rel="stylesheet" type="text/css"> | |
| <meta content="DocBook XSL Stylesheets V1.75.1" name="generator"> | |
| <link rel="home" href="index.html" title="OCL Documentation"> | |
| <link rel="up" href="StandardLibrary.html" title="The OCL Standard Library"> | |
| <link rel="prev" href="OclVoid.html" title="OclVoid"> | |
| <link rel="next" href="OrderedSet.html" title="OrderedSet(T)"> | |
| </head> | |
| <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> | |
| <h1 xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0"> | |
| OrderedCollection(T) | |
| </h1> | |
| <div class="section" title="OrderedCollection(T)"> | |
| <div class="titlepage"> | |
| <div> | |
| <div> | |
| <h2 class="title" style="clear: both"> | |
| <a name="OrderedCollection"></a> | |
| <span class="bold"><strong> | |
| <code class="code">OrderedCollection(T)</code> | |
| </strong></span> | |
| </h2> | |
| </div> | |
| </div> | |
| </div> | |
| <p>The OrderedCollection type provides the shared functionality of the OrderedSet and Sequence | |
| collections for which the elements are ordered. | |
| The common supertype of OrderedCollection is Collection.</p> | |
| <p>conformsTo | |
| <a class="link" href="Collection.html" title="Collection(T)"> | |
| <code class="code">Collection(T)</code> | |
| </a> | |
| </p> | |
| <p> | |
| <span class="bold"><strong>Operations</strong></span> | |
| </p> | |
| <p> | |
| <code class="code">at(index : Integer[?]) : T[?] invalidating</code> | |
| </p> | |
| <p>The i-th element of ordered collection.</p> | |
| <p> | |
| <code class="code">first() : T[?] invalidating</code> | |
| </p> | |
| <p>The first element in | |
| <code class="code">self</code>. | |
| </p> | |
| <p> | |
| <code class="code">indexOf(obj : OclAny[?]) : Integer[1]</code> | |
| </p> | |
| <p>The index of object obj in the ordered collection.</p> | |
| <p> | |
| <code class="code">last() : T[?] invalidating</code> | |
| </p> | |
| <p>The last element in | |
| <code class="code">self</code>. | |
| </p> | |
| </div> | |
| </body> | |
| </html> |