MutableIndex
An Index that contains an extra method: index that adds the given element (if necessary), returning its (possibly new) position in the index.
Value members
Abstract methods
Inherited methods
Returns the int id of the given element (0-based) or -1 if not found in the index. This method never changes the index (even in MutableIndex).
Returns the int id of the given element (0-based) or -1 if not found in the index. This method never changes the index (even in MutableIndex).
- Inherited from:
- Index
Returns true if this index contains the element t.
Returns true if this index contains the element t.
- Inherited from:
- Index
- Inherited from:
- IterableOnceOps
- Inherited from:
- IterableOnceOps
Returns an object at the given position or throws IndexOutOfBoundsException if it's not found.
Returns an object at the given position or throws IndexOutOfBoundsException if it's not found.
- Inherited from:
- Index
Override Iterable's linear-scan indexOf to use our apply method.
Override Iterable's linear-scan indexOf to use our apply method.
- Inherited from:
- Index
Returns Some(i) if the object has been indexed, or None.
Returns Some(i) if the object has been indexed, or None.
- Inherited from:
- Index
- Inherited from:
- IterableOnceOps
Returns the indexed items along with their indicies
Returns the indexed items along with their indicies
- Inherited from:
- Index
Returns Some(t) if this int corresponds to some object, and None otherwise.
Returns Some(t) if this int corresponds to some object, and None otherwise.
- Inherited from:
- Index
Deprecated and Inherited methods
- Deprecated
[Since version 2.13.0]
Use ++ instead of ++: for collections of type Iterable- Inherited from:
- IterableOps
- Deprecated
[Since version 2.13.0]
Use foldLeft instead of /:- Inherited from:
- IterableOnceOps
- Deprecated
[Since version 2.13.0]
Use foldRight instead of :\\- Inherited from:
- IterableOnceOps
- Deprecated
[Since version 2.13.0]
`aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.- Inherited from:
- IterableOnceOps
- Deprecated
[Since version 2.13.0]
Use iterableFactory instead- Inherited from:
- IterableOps
- Deprecated
[Since version 2.13.0]
Use `dest ++= coll` instead- Inherited from:
- IterableOnceOps
- Deprecated
[Since version 2.13.0]
Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)- Inherited from:
- IterableOnceOps
- Deprecated
[Since version 2.13.0]
Use coll instead of repr in a collection implementation, use the collection value itself from the outside- Inherited from:
- IterableOps
- Deprecated
[Since version 2.13.0]
Iterable.seq always returns the iterable itself- Inherited from:
- Iterable
- Deprecated
[Since version 2.13.7]
toIterable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections- Inherited from:
- Iterable
- Deprecated
[Since version 2.13.0]
Use .iterator instead of .toIterator- Inherited from:
- IterableOnceOps
- Deprecated
[Since version 2.13.0]
Use .to(LazyList) instead of .toStream- Inherited from:
- IterableOnceOps
- Deprecated
[Since version 2.13.0]
toTraversable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections- Inherited from:
- IterableOps
- Deprecated
[Since version 2.13.0]
Use .view.slice(from, until) instead of .view(from, until)- Inherited from:
- IterableOps