Scala Library
|
|
scala/collection/jcl/Buffer.scala
]
protected
class
Range(val
from : Option[Int], val
until : Option[Int])
extends
Buffer[A]Method Summary | |
override def
|
add
(idx : Int, a : A) : Unit
Inserts "a" into this buffer just before the element at index "idx."
|
override def
|
add (a : A) : Boolean |
override def
|
apply (idx : Int) : A |
override def
|
elements
: BufferIterator[Int, A]
The default implementation of a map over mutable iterable collections.
|
override def
|
length
: Int
Returns the length of the sequence.
|
override def
|
remove
(idx : Int) : A
Removes the element at index
idx |
override def
|
set
(idx : Int, a : A) : A
Replaces the element at index "idx" with "a."
|
Methods inherited from Buffer | |
projection, firstKey, lastKey, compare, remove, replace, update, addAll, transform, +, -=, isEmpty, rangeImpl |
Methods inherited from Collection | |
hasAll, addAll, ++, += |
Methods inherited from MutableSeq | |
indexOf |
Methods inherited from Ranged | |
from, until, range |
Methods inherited from MutableIterable | |
has, remove, removeAll, --, -, retainOnly, retainAll, size0, clear |
Methods inherited from Mutable | |
readOnly, drop, take, slice, reverse |
Methods inherited from RandomAccessSeq | |
partition, patch, ++, toStream, safeIs |
Methods inherited from Seq | |
lengthCompare, size, concat, last, lastOption, first, firstOption, headOption, isDefinedAt, lastIndexOf, findIndexOf, indexOf, map, flatMap, filter, slice, takeWhile, dropWhile, contains, subseq, toArray, toSeq, equalsWith, startsWith, startsWith, endsWith, indexOf, containsSlice |
Methods inherited from Collection | |
toString, stringPrefix |
Methods inherited from Iterable | |
foreach, forall, exists, find, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, copyToBuffer, sameElements, toList, mkString, mkString, mkString, addString, addString, addString, copyToArray, hasDefiniteSize |
Methods inherited from PartialFunction | |
orElse, andThen |
Methods inherited from Function1 | |
compose |
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Class Summary | |
class
|
RangeIterator
extends BufferIterator[Int, A] with AnyRef
|
Method Details |
idx
override
def
length : Int
override
def
elements : BufferIterator[Int, A]
Scala Library
|
|