Movatterモバイル変換


[0]ホーム

URL:


Scala 3
3.7.4
LearnInstallPlaygroundFind A LibraryCommunityBlog
Scala 3
LearnInstallPlaygroundFind A LibraryCommunityBlog
DocsAPI
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL
Scala 3/scala/scala.collection

scala.collection

Members list

Type members

Classlikes

object+:

An extractor used to head/tail deconstruct sequences.

An extractor used to head/tail deconstruct sequences.

Attributes

Source
package.scala
Supertypes
classObject
traitMatchable
classAny
Self type
+:.type
object:+

An extractor used to init/last deconstruct sequences.

An extractor used to init/last deconstruct sequences.

Attributes

Source
package.scala
Supertypes
classObject
traitMatchable
classAny
Self type
:+.type

Explicit instantiation of theIndexedSeqView trait to reduce class file size in subclasses.

Explicit instantiation of theIndexedSeqView trait to reduce class file size in subclasses.

Attributes

Source
IndexedSeqView.scala
Supertypes
traitIndexedSeqOps[A,View,View[A]]
traitSeqView[A]
traitSeqOps[A,View,View[A]]
classAbstractView[A]
traitView[A]
traitIterable[A]
traitIterableOps[A,View,View[A]]
traitIterableOnce[A]
classObject
traitMatchable
classAny
Show all
Known subtypes
classSlice[A]
abstractclassAbstractIterable[+A] extendsIterable[A]

Explicit instantiation of theIterable trait to reduce class file size in subclasses.

Explicit instantiation of theIterable trait to reduce class file size in subclasses.

Attributes

Source
Iterable.scala
Supertypes
Known subtypes
classPriorityQueue[A]
classAbstractMap[K,V]
classAbstractMap[K,V]
classHashMap[K,V]
classIntMap[T]
classListMap[K,V]
classLongMap[T]
classMap1[K,V]
classMap2[K,V]
classMap3[K,V]
classMap4[K,V]
classWithDefault[K,V]
classWithDefault[K,V]
classTreeMap[K,V]
classTreeSeqMap[K,V]
classVectorMap[K,V]
classAbstractMap[K,V]
classTrieMap[K,V]
classAnyRefMap[K,V]
classHashMap[K,V]
classLinkedHashMap[K,V]
classListMap[K,V]
classLongMap[V]
classWithDefault[K,V]
classWithDefault[K,V]
classOpenHashMap[Key,Value]
classTreeMap[K,V]
classAbstractSeq[A]
classAbstractSeq[A]
classArraySeq[A]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
classLazyList[A]
classList[A]
class::[A]
objectNil
classNumericRange[T]
classExclusive[T]
classInclusive[T]
classQueue[A]
classRange
classExclusive
classInclusive
classStream[A]
classCons[A]
objectEmpty
classVector[A]
classAbstractSeq[A]
classArrayBuffer[A]
classArrayDeque[A]
classQueue[A]
classStack[A]
classListBuffer[A]
classArraySeq[T]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
classAbstractSet[A]
classAbstractSet[A]
classBitSet
classBitSet1
classBitSet2
classBitSetN
classHashSet[A]
classListSet[A]
classSet1[A]
classSet2[A]
classSet3[A]
classSet4[A]
classTreeSet[A]
classAbstractSet[A]
classBitSet
classHashSet[A]
classLinkedHashSet[A]
classTreeSet[A]
classAbstractView[A]
classAbstractMapView[K,V]
classFilter[K,V]
classFilterKeys[K,V]
classId[K,V]
classMapValues[K,V,W]
classTapEach[K,V,U]
classSlice[A]
classId[A]
classId[A]
classReverse[A]
classReverse[A]
classAppended[A]
classAppended[A]
classAppended[A]
classCollect[A,B]
classConcat[A]
classConcat[A]
classConcat[A]
classDistinctBy[A,B]
classDrop[A]
classDrop[A]
classDrop[A]
classDropRight[A]
classDropRight[A]
classDropRight[A]
classDropWhile[A]
classElems[A]
objectEmpty
classFill[A]
classFilter[A]
classFlatMap[A,B]
classIterate[A]
classLeftPartitionMapped[A,A1,A2]
classMap[A,B]
classMap[A,B]
classMap[A,B]
classPadTo[A]
classPrepended[A]
classPrepended[A]
classPrepended[A]
classRightPartitionMapped[A,A1,A2]
classScanLeft[A,B]
classSingle[A]
classTabulate[A]
classTake[A]
classTake[A]
classTake[A]
classTakeRight[A]
classTakeRight[A]
classTakeRight[A]
classTakeWhile[A]
classUnfold[A,S]
classUpdated[A]
classZip[A,B]
classZipAll[A,B]
classZipWithIndex[A]
Show all
abstractclassAbstractIterator[+A] extendsIterator[A]

Explicit instantiation of theIterator trait to reduce class file size in subclasses.

Explicit instantiation of theIterator trait to reduce class file size in subclasses.

Attributes

Source
Iterator.scala
Supertypes
traitIterator[A]
traitIterableOnce[A]
classObject
traitMatchable
classAny
Show all
Known subtypes
abstractclassAbstractMap[K,+V] extendsAbstractIterable[(K,V)],Map[K,V]

Explicit instantiation of theMap trait to reduce class file size in subclasses.

Explicit instantiation of theMap trait to reduce class file size in subclasses.

Attributes

Source
Map.scala
Supertypes
traitMap[K,V]
traitEquals
traitMapOps[K,V,Map,Map[K,V]]
traitPartialFunction[K,V]
traitK=>V
classAbstractIterable[(K,V)]
traitIterable[(K,V)]
traitIterableOps[(K,V),Iterable,Map[K,V]]
traitIterableOnceOps[(K,V),Iterable,Map[K,V]]
traitIterableOnce[(K,V)]
classObject
traitMatchable
classAny
Show all
Known subtypes
classAbstractMap[K,V]
classHashMap[K,V]
classIntMap[T]
classListMap[K,V]
classLongMap[T]
classMap1[K,V]
classMap2[K,V]
classMap3[K,V]
classMap4[K,V]
classWithDefault[K,V]
classWithDefault[K,V]
classTreeMap[K,V]
classTreeSeqMap[K,V]
classVectorMap[K,V]
classAbstractMap[K,V]
classTrieMap[K,V]
classAnyRefMap[K,V]
classHashMap[K,V]
classLinkedHashMap[K,V]
classListMap[K,V]
classLongMap[V]
classWithDefault[K,V]
classWithDefault[K,V]
classOpenHashMap[Key,Value]
classTreeMap[K,V]
Show all
abstractclassAbstractMapView[K,+V] extendsAbstractView[(K,V)],MapView[K,V]

Explicit instantiation of theMapView trait to reduce class file size in subclasses.

Explicit instantiation of theMapView trait to reduce class file size in subclasses.

Attributes

Source
MapView.scala
Supertypes
traitMapView[K,V]
traitMapOps[K,V, {typel =[X,Y] =>>View[(X,Y)]; }#<none>,View[(K,V)]]
traitPartialFunction[K,V]
traitK=>V
classAbstractView[(K,V)]
traitView[(K,V)]
classAbstractIterable[(K,V)]
traitIterable[(K,V)]
traitIterableOps[(K,V),View,View[(K,V)]]
traitIterableOnceOps[(K,V),View,View[(K,V)]]
traitIterableOnce[(K,V)]
classObject
traitMatchable
classAny
Show all
Known subtypes
classFilter[K,V]
classFilterKeys[K,V]
classId[K,V]
classMapValues[K,V,W]
classTapEach[K,V,U]
abstractclassAbstractSeq[+A] extendsAbstractIterable[A],Seq[A]

Explicit instantiation of theSeq trait to reduce class file size in subclasses.

Explicit instantiation of theSeq trait to reduce class file size in subclasses.

Attributes

Source
Seq.scala
Supertypes
traitSeq[A]
traitEquals
traitSeqOps[A,Seq,Seq[A]]
traitInt=>A
traitIterable[A]
traitIterableOps[A,Seq,Seq[A]]
traitIterableOnceOps[A,Seq,Seq[A]]
traitIterableOnce[A]
classObject
traitMatchable
classAny
Show all
Known subtypes
classAbstractSeq[A]
classArraySeq[A]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
classLazyList[A]
classList[A]
class::[A]
objectNil
classNumericRange[T]
classExclusive[T]
classInclusive[T]
classQueue[A]
classRange
classExclusive
classInclusive
classStream[A]
classCons[A]
objectEmpty
classVector[A]
classAbstractSeq[A]
classArrayBuffer[A]
classArrayDeque[A]
classQueue[A]
classStack[A]
classListBuffer[A]
classArraySeq[T]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
Show all
abstractclassAbstractSeqView[+A] extendsAbstractView[A],SeqView[A]

Explicit instantiation of theSeqView trait to reduce class file size in subclasses.

Explicit instantiation of theSeqView trait to reduce class file size in subclasses.

Attributes

Source
SeqView.scala
Supertypes
traitSeqView[A]
traitSeqOps[A,View,View[A]]
classAbstractView[A]
traitView[A]
traitIterable[A]
traitIterableOps[A,View,View[A]]
traitIterableOnce[A]
classObject
traitMatchable
classAny
Show all
Known subtypes
classSlice[A]
classId[A]
classId[A]
classReverse[A]
classReverse[A]
Show all
abstractclassAbstractSet[A] extendsAbstractIterable[A],Set[A]

Explicit instantiation of theSet trait to reduce class file size in subclasses.

Explicit instantiation of theSet trait to reduce class file size in subclasses.

Attributes

Source
Set.scala
Supertypes
traitSet[A]
traitEquals
traitSetOps[A,Set,Set[A]]
traitA=>Boolean
traitIterable[A]
traitIterableOps[A,Set,Set[A]]
traitIterableOnceOps[A,Set,Set[A]]
traitIterableOnce[A]
classObject
traitMatchable
classAny
Show all
Known subtypes
classAbstractSet[A]
classBitSet
classBitSet1
classBitSet2
classBitSetN
classHashSet[A]
classListSet[A]
classSet1[A]
classSet2[A]
classSet3[A]
classSet4[A]
classTreeSet[A]
classAbstractSet[A]
classBitSet
classHashSet[A]
classLinkedHashSet[A]
classTreeSet[A]
Show all
abstractclassAbstractView[+A] extendsAbstractIterable[A],View[A]

Explicit instantiation of theView trait to reduce class file size in subclasses.

Explicit instantiation of theView trait to reduce class file size in subclasses.

Attributes

Source
View.scala
Supertypes
traitView[A]
traitIterable[A]
traitIterableOps[A,View,View[A]]
traitIterableOnce[A]
classObject
traitMatchable
classAny
Show all
Known subtypes
classAbstractMapView[K,V]
classFilter[K,V]
classFilterKeys[K,V]
classId[K,V]
classMapValues[K,V,W]
classTapEach[K,V,U]
classSlice[A]
classId[A]
classId[A]
classReverse[A]
classReverse[A]
classAppended[A]
classAppended[A]
classAppended[A]
classCollect[A,B]
classConcat[A]
classConcat[A]
classConcat[A]
classDistinctBy[A,B]
classDrop[A]
classDrop[A]
classDrop[A]
classDropRight[A]
classDropRight[A]
classDropRight[A]
classDropWhile[A]
classElems[A]
objectEmpty
classFill[A]
classFilter[A]
classFlatMap[A,B]
classIterate[A]
classLeftPartitionMapped[A,A1,A2]
classMap[A,B]
classMap[A,B]
classMap[A,B]
classPadTo[A]
classPrepended[A]
classPrepended[A]
classPrepended[A]
classRightPartitionMapped[A,A1,A2]
classScanLeft[A,B]
classSingle[A]
classTabulate[A]
classTake[A]
classTake[A]
classTake[A]
classTakeRight[A]
classTakeRight[A]
classTakeRight[A]
classTakeWhile[A]
classUnfold[A,S]
classUpdated[A]
classZip[A,B]
classZipAll[A,B]
classZipWithIndex[A]
Show all
traitAnyStepper[+A] extendsStepper[A]

A Stepper for arbitrary element types.

A Stepper for arbitrary element types. SeeStepper.

Attributes

Companion
object
Source
Stepper.scala
Supertypes
traitStepper[A]
classObject
traitMatchable
classAny

Attributes

Companion
trait
Source
Stepper.scala
Supertypes
classObject
traitMatchable
classAny
Self type
objectArrayOps

Attributes

Companion
class
Source
ArrayOps.scala
Supertypes
classObject
traitMatchable
classAny
Self type
finalclassArrayOps[A](xs:Array[A]) extendsAnyVal

This class serves as a wrapper forArrays with many of the operations found in indexed sequences.

This class serves as a wrapper forArrays with many of the operations found in indexed sequences. Where needed, instances of arrays are implicitly converted into this class. There is generally no reason to create an instance explicitly or use anArrayOps type. It is better to work with plainArray types instead and rely on the implicit conversion toArrayOps when calling a method (which does not actually allocate an instance ofArrayOps because it is a value class).

NeitherArray norArrayOps are proper collection types (i.e. they do not extendIterable or evenIterableOnce).mutable.ArraySeq andimmutable.ArraySeq serve this purpose.

The difference between this class andArraySeqs is that calling transformer methods such asfilter andmap will yield an array, whereas anArraySeq will remain anArraySeq.

Type parameters

A

type of the elements contained in this array.

Attributes

Companion
object
Source
ArrayOps.scala
Supertypes
classAnyVal
traitMatchable
classAny

Base type of bitsets.

Base type of bitsets.

This trait provides most of the operations of aBitSet independently of its representation. It is inherited by all concrete implementations of bitsets.

Attributes

Companion
object
Source
BitSet.scala
Supertypes
Known subtypes
classBitSet
classBitSet1
classBitSet2
classBitSetN
classBitSet

Attributes

Companion
trait
Source
BitSet.scala
Supertypes
Self type
BitSet.type

Base implementation type of bitsets

Base implementation type of bitsets

Attributes

Companion
object
Source
BitSet.scala
Supertypes
traitSortedOps[Int,C]
traitSetOps[Int,Set,C]
traitInt=>Boolean
classObject
traitMatchable
classAny
Show all
Known subtypes
classBitSet
classBitSet1
classBitSet2
classBitSetN
classBitSet
traitBitSet
Show all
Self type
objectBitSetOps

Attributes

Companion
trait
Source
BitSet.scala
Supertypes
classObject
traitMatchable
classAny
Self type
traitBufferedIterator[+A] extendsIterator[A]

Buffered iterators are iterators which provide a methodhead that inspects the next element without discarding it.

Buffered iterators are iterators which provide a methodhead that inspects the next element without discarding it.

Attributes

Source
BufferedIterator.scala
Supertypes
traitIterator[A]
traitIterableOnce[A]
classObject
traitMatchable
classAny
Show all
traitBuildFrom[-From,-A,+C]

Builds a collection of typeC from elements of typeA when a source collection of typeFrom is available.

Builds a collection of typeC from elements of typeA when a source collection of typeFrom is available. Implicit instances ofBuildFrom are available for all collection types.

Type parameters

A

Type of elements (e.g.Int,Boolean, etc.)

C

Type of collection (e.g.List[Int],TreeMap[Int, String], etc.)

From

Type of source collection

Attributes

Companion
object
Source
BuildFrom.scala
Supertypes
classAny
Self type
BuildFrom[From,A,C]

Attributes

Companion
trait
Source
BuildFrom.scala
Supertypes
Self type

Attributes

Source
BuildFrom.scala
Supertypes
Known subtypes
objectBuildFrom

Attributes

Source
BuildFrom.scala
Supertypes
classObject
traitMatchable
classAny
Known subtypes

Base trait for companion objects of collections that require an implicitClassTag.

Base trait for companion objects of collections that require an implicitClassTag.

Type parameters

CC

Collection type constructor (e.g.ArraySeq)

Attributes

Companion
object
Source
Factory.scala
Supertypes
Known subtypes
classDelegate[CC]
classDelegate[CC]
objectArraySeq
objectArraySeq
Show all

Attributes

Companion
trait
Source
Factory.scala
Supertypes
classObject
traitMatchable
classAny
Self type
traitClassTagSeqFactory[+CC <:([A] =>>SeqOps[A,Seq,Seq[A]])] extendsClassTagIterableFactory[CC]

Type parameters

CC

Collection type constructor (e.g.ArraySeq)

Attributes

Companion
object
Source
Factory.scala
Supertypes
Known subtypes

Attributes

Companion
trait
Source
Factory.scala
Supertypes
classObject
traitMatchable
classAny
Self type

A Stepper for Doubles.

A Stepper for Doubles. SeeStepper.

Attributes

Companion
object
Source
Stepper.scala
Supertypes
classObject
traitMatchable
classAny

Attributes

Companion
trait
Source
Stepper.scala
Supertypes
classObject
traitMatchable
classAny
Self type
traitEvidenceIterableFactory[+CC[_],Ev[_]] extendsSerializable

Base trait for companion objects of collections that require an implicit evidence.

Base trait for companion objects of collections that require an implicit evidence.

Type parameters

CC

Collection type constructor (e.g.ArraySeq)

Ev

Unary type constructor for the implicit evidence required for an element type (typicallyOrdering orClassTag)

Attributes

Companion
object
Source
Factory.scala
Supertypes
classObject
traitMatchable
classAny
Known subtypes
classDelegate[CC]
classDelegate[CC]
objectArraySeq
objectArraySeq
classDelegate[CC,Ev]
classDelegate[CC]
objectSortedSet
objectSortedSet
objectSortedSet
objectTreeSet
objectTreeSet
Show all

Attributes

Companion
trait
Source
Factory.scala
Supertypes
classObject
traitMatchable
classAny
Self type
traitEvidenceIterableFactoryDefaults[+A,+CC <:([x] =>>IterableOps[x,CC,CC[x]]),Ev[_]] extendsIterableOps[A,CC,CC[A]]

This trait provides default implementations for the factory methodsfromSpecific andnewSpecificBuilder that need to be refined when implementing a collection type that refines theCC andC type parameters.

This trait provides default implementations for the factory methodsfromSpecific andnewSpecificBuilder that need to be refined when implementing a collection type that refines theCC andC type parameters. It is used for collections that have an additional constraint, expressed by theevidenceIterableFactory method.

The default implementations in this trait can be used in the common case whenCC[A] is the same asC.

Attributes

Source
Iterable.scala
Supertypes
traitIterableOps[A,CC,CC[A]]
traitIterableOnceOps[A,CC,CC[A]]
traitIterableOnce[A]
classObject
traitMatchable
classAny
Show all
Known subtypes
classArraySeq[A]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
Show all
traitFactory[-A,+C]

A factory that builds a collection of typeC with elements of typeA.

A factory that builds a collection of typeC with elements of typeA.

This is a general form of any factory (IterableFactory,SortedIterableFactory,MapFactory andSortedMapFactory) whose element type is fixed.

Type parameters

A

Type of elements (e.g.Int,Boolean, etc.)

C

Type of collection (e.g.List[Int],TreeMap[Int, String], etc.)

Attributes

Companion
object
Source
Factory.scala
Supertypes
classAny
Known subtypes
objectBitSet
objectBitSet
objectBitSet
objectEnumeration.this.ValueSet
Show all
objectFactory

Attributes

Companion
trait
Source
Factory.scala
Supertypes
classObject
traitMatchable
classAny
Self type
Factory.type

Base trait for indexed sequences that have efficientapply andlength

Base trait for indexed sequences that have efficientapply andlength

Attributes

Companion
object
Source
IndexedSeq.scala
Supertypes
Known subtypes
traitIndexedSeq[A]
classArraySeq[A]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
classNumericRange[T]
classExclusive[T]
classInclusive[T]
classRange
classExclusive
classInclusive
classVector[A]
traitIndexedSeq[T]
classArraySeq[T]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
traitIndexedBuffer[A]
classArrayBuffer[A]
classArrayDeque[A]
classQueue[A]
classStack[A]
Show all

Attributes

Companion
trait
Source
IndexedSeq.scala
Supertypes
Self type
traitIndexedSeqOps[+A,+CC[_],+C] extendsSeqOps[A,CC,C]

Base trait for indexed Seq operations

Base trait for indexed Seq operations

Attributes

Source
IndexedSeq.scala
Supertypes
traitSeqOps[A,CC,C]
traitIterableOps[A,CC,C]
traitIterableOnceOps[A,CC,C]
traitIterableOnce[A]
classAny
Known subtypes
traitIndexedSeqOps[A,CC,C]
classArraySeq[A]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
traitIndexedSeq[A]
classNumericRange[T]
classExclusive[T]
classInclusive[T]
classRange
classExclusive
classInclusive
classVector[A]
traitIndexedSeqOps[A,CC,C]
classArrayBuffer[A]
classArrayDeque[A]
classQueue[A]
classStack[A]
classArraySeq[T]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
traitIndexedBuffer[A]
traitIndexedSeq[T]
traitIndexedSeq[A]
classSlice[A]
classAppended[A]
classConcat[A]
classDrop[A]
classDropRight[A]
classId[A]
classMap[A,B]
classPrepended[A]
classReverse[A]
classTake[A]
classTakeRight[A]
Show all
Self type
traitIndexedSeqView[+A] extendsIndexedSeqOps[A,View,View[A]],SeqView[A]

View defined in terms of indexing a range

View defined in terms of indexing a range

Attributes

Companion
object
Source
IndexedSeqView.scala
Supertypes
traitSeqView[A]
traitView[A]
traitIterable[A]
traitIndexedSeqOps[A,View,View[A]]
traitSeqOps[A,View,View[A]]
traitIterableOps[A,View,View[A]]
traitIterableOnce[A]
classObject
traitMatchable
classAny
Show all
Known subtypes
classSlice[A]
classAppended[A]
classConcat[A]
classDrop[A]
classDropRight[A]
classId[A]
classMap[A,B]
classPrepended[A]
classReverse[A]
classTake[A]
classTakeRight[A]
Show all
Self type

Attributes

Companion
trait
Source
IndexedSeqView.scala
Supertypes
classObject
traitMatchable
classAny
Self type
traitIntStepper extendsStepper[Int]

A Stepper for Ints.

A Stepper for Ints. SeeStepper.

Attributes

Companion
object
Source
Stepper.scala
Supertypes
traitStepper[Int]
classObject
traitMatchable
classAny

Attributes

Companion
trait
Source
Stepper.scala
Supertypes
classObject
traitMatchable
classAny
Self type

Base trait for generic collections.

Base trait for generic collections.

Type parameters

A

the element type of the collection

Attributes

Companion
object
Source
Iterable.scala
Supertypes
Known subtypes
traitIterable[A]
traitMap[K,V]
classAbstractMap[K,V]
classHashMap[K,V]
classIntMap[T]
classListMap[K,V]
classLongMap[T]
classMap1[K,V]
classMap2[K,V]
classMap3[K,V]
classMap4[K,V]
classWithDefault[K,V]
classWithDefault[K,V]
classTreeMap[K,V]
classTreeSeqMap[K,V]
classVectorMap[K,V]
traitSeqMap[K,V]
traitSortedMap[K,V]
traitSeq[A]
classAbstractSeq[A]
classArraySeq[A]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
classLazyList[A]
classList[A]
class::[A]
objectNil
classNumericRange[T]
classExclusive[T]
classInclusive[T]
classQueue[A]
classRange
classExclusive
classInclusive
classStream[A]
classCons[A]
objectEmpty
classVector[A]
traitIndexedSeq[A]
traitLinearSeq[A]
traitSet[A]
classAbstractSet[A]
classBitSet
classBitSet1
classBitSet2
classBitSetN
classHashSet[A]
classListSet[A]
classSet1[A]
classSet2[A]
classSet3[A]
classSet4[A]
classTreeSet[A]
traitSortedSet[A]
traitIterable[A]
classPriorityQueue[A]
traitMap[K,V]
traitMap[K,V]
classTrieMap[K,V]
classAbstractMap[K,V]
classAnyRefMap[K,V]
classHashMap[K,V]
classLinkedHashMap[K,V]
classListMap[K,V]
classLongMap[V]
classWithDefault[K,V]
classWithDefault[K,V]
classOpenHashMap[Key,Value]
classTreeMap[K,V]
traitMultiMap[K,V]
traitSeqMap[K,V]
traitSortedMap[K,V]
traitSeq[A]
classAbstractSeq[A]
classArrayBuffer[A]
classArrayDeque[A]
classQueue[A]
classStack[A]
classListBuffer[A]
classArraySeq[T]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
traitBuffer[A]
traitIndexedBuffer[A]
traitIndexedSeq[T]
classAccumulator[A,CC,C]
traitSet[A]
classAbstractSet[A]
classBitSet
classHashSet[A]
classLinkedHashSet[A]
classTreeSet[A]
traitSortedSet[A]
classAbstractMap[K,V]
classAbstractSeq[A]
classAbstractSet[A]
classAbstractView[A]
classAbstractMapView[K,V]
classFilter[K,V]
classFilterKeys[K,V]
classId[K,V]
classMapValues[K,V,W]
classTapEach[K,V,U]
classSlice[A]
classId[A]
classId[A]
classReverse[A]
classReverse[A]
classAppended[A]
classAppended[A]
classAppended[A]
classCollect[A,B]
classConcat[A]
classConcat[A]
classConcat[A]
classDistinctBy[A,B]
classDrop[A]
classDrop[A]
classDrop[A]
classDropRight[A]
classDropRight[A]
classDropRight[A]
classDropWhile[A]
classElems[A]
objectEmpty
classFill[A]
classFilter[A]
classFlatMap[A,B]
classIterate[A]
classLeftPartitionMapped[A,A1,A2]
classMap[A,B]
classMap[A,B]
classMap[A,B]
classPadTo[A]
classPrepended[A]
classPrepended[A]
classPrepended[A]
classRightPartitionMapped[A,A1,A2]
classScanLeft[A,B]
classSingle[A]
classTabulate[A]
classTake[A]
classTake[A]
classTake[A]
classTakeRight[A]
classTakeRight[A]
classTakeRight[A]
classTakeWhile[A]
classUnfold[A,S]
classUpdated[A]
classZip[A,B]
classZipAll[A,B]
classZipWithIndex[A]
traitMap[K,V]
traitDefaultMap[K,V]
traitSeqMap[K,V]
traitSortedMap[K,V]
traitSeq[A]
traitIndexedSeq[A]
traitLinearSeq[A]
traitSet[A]
traitSortedSet[A]
traitBitSet
traitView[A]
traitMapView[K,V]
traitSeqView[A]
classSorted[A,B]
Show all
objectIterable extendsDelegate[Iterable]

Attributes

Companion
trait
Source
Iterable.scala
Supertypes
classObject
traitMatchable
classAny
Show all
Self type
traitIterableFactory[+CC[_]] extendsSerializable

Base trait for companion objects of unconstrained collection types that may require multiple traversals of a source collection to build a target collectionCC.

Base trait for companion objects of unconstrained collection types that may require multiple traversals of a source collection to build a target collectionCC.

Type parameters

CC

Collection type constructor (e.g.List)

Attributes

Companion
object
Source
Factory.scala
Supertypes
classObject
traitMatchable
classAny
Known subtypes
objectHashSet
objectListSet
objectSet
objectHashSet
classAnySeqDelegate[CC]
classDelegate[CC]
objectIterable
objectIterable
objectSet
objectIterable
objectSet
objectIterator
traitSeqFactory[CC]
objectLazyList
objectStream
classDelegate[CC]
objectIndexedSeq
objectLinearSeq
objectSeq
objectBuffer
objectIndexedSeq
objectSeq
objectIndexedSeq
objectLinearSeq
objectSeq
objectList
objectQueue
objectVector
objectArrayDeque
objectListBuffer
objectQueue
objectStack
objectView
Show all

Attributes

Companion
trait
Source
Factory.scala
Supertypes
classObject
traitMatchable
classAny
Self type
traitIterableFactoryDefaults[+A,+CC <:([x] =>>IterableOps[x,CC,CC[x]])] extendsIterableOps[A,CC,CC[A]]

This trait provides default implementations for the factory methodsfromSpecific andnewSpecificBuilder that need to be refined when implementing a collection type that refines theCC andC type parameters.

This trait provides default implementations for the factory methodsfromSpecific andnewSpecificBuilder that need to be refined when implementing a collection type that refines theCC andC type parameters.

The default implementations in this trait can be used in the common case whenCC[A] is the same asC.

Attributes

Source
Iterable.scala
Supertypes
traitIterableOps[A,CC,CC[A]]
traitIterableOnceOps[A,CC,CC[A]]
traitIterableOnce[A]
classObject
traitMatchable
classAny
Show all
Known subtypes
classHashSet[A]
traitIndexedSeq[A]
classArraySeq[A]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
classNumericRange[T]
classExclusive[T]
classInclusive[T]
classRange
classExclusive
classInclusive
classVector[A]
traitIterable[A]
traitMap[K,V]
classAbstractMap[K,V]
classHashMap[K,V]
classIntMap[T]
classListMap[K,V]
classLongMap[T]
classMap1[K,V]
classMap2[K,V]
classMap3[K,V]
classMap4[K,V]
classWithDefault[K,V]
classWithDefault[K,V]
classTreeMap[K,V]
classTreeSeqMap[K,V]
classVectorMap[K,V]
traitSeqMap[K,V]
traitSortedMap[K,V]
traitSeq[A]
classAbstractSeq[A]
classLazyList[A]
classList[A]
class::[A]
objectNil
classQueue[A]
classStream[A]
classCons[A]
objectEmpty
traitLinearSeq[A]
traitSet[A]
classAbstractSet[A]
classBitSet
classBitSet1
classBitSet2
classBitSetN
classListSet[A]
classSet1[A]
classSet2[A]
classSet3[A]
classSet4[A]
classTreeSet[A]
traitSortedSet[A]
classArrayBuffer[A]
classArrayDeque[A]
classQueue[A]
classStack[A]
traitBuffer[A]
classListBuffer[A]
traitIndexedBuffer[A]
classHashSet[A]
traitIndexedSeq[T]
classArraySeq[T]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
traitIterable[A]
classPriorityQueue[A]
traitMap[K,V]
traitMap[K,V]
classTrieMap[K,V]
classAbstractMap[K,V]
classAnyRefMap[K,V]
classHashMap[K,V]
classLinkedHashMap[K,V]
classListMap[K,V]
classLongMap[V]
classWithDefault[K,V]
classWithDefault[K,V]
classOpenHashMap[Key,Value]
classTreeMap[K,V]
traitMultiMap[K,V]
traitSeqMap[K,V]
traitSortedMap[K,V]
traitSeq[A]
classAbstractSeq[A]
classAccumulator[A,CC,C]
traitSet[A]
classAbstractSet[A]
classBitSet
classLinkedHashSet[A]
classTreeSet[A]
traitSortedSet[A]
traitIndexedSeq[A]
traitIterable[A]
classAbstractMap[K,V]
classAbstractSeq[A]
classAbstractSet[A]
classAbstractView[A]
classAbstractMapView[K,V]
classFilter[K,V]
classFilterKeys[K,V]
classId[K,V]
classMapValues[K,V,W]
classTapEach[K,V,U]
classSlice[A]
classId[A]
classId[A]
classReverse[A]
classReverse[A]
classAppended[A]
classAppended[A]
classAppended[A]
classCollect[A,B]
classConcat[A]
classConcat[A]
classConcat[A]
classDistinctBy[A,B]
classDrop[A]
classDrop[A]
classDrop[A]
classDropRight[A]
classDropRight[A]
classDropRight[A]
classDropWhile[A]
classElems[A]
objectEmpty
classFill[A]
classFilter[A]
classFlatMap[A,B]
classIterate[A]
classLeftPartitionMapped[A,A1,A2]
classMap[A,B]
classMap[A,B]
classMap[A,B]
classPadTo[A]
classPrepended[A]
classPrepended[A]
classPrepended[A]
classRightPartitionMapped[A,A1,A2]
classScanLeft[A,B]
classSingle[A]
classTabulate[A]
classTake[A]
classTake[A]
classTake[A]
classTakeRight[A]
classTakeRight[A]
classTakeRight[A]
classTakeWhile[A]
classUnfold[A,S]
classUpdated[A]
classZip[A,B]
classZipAll[A,B]
classZipWithIndex[A]
traitMap[K,V]
traitDefaultMap[K,V]
traitSeqMap[K,V]
traitSortedMap[K,V]
traitSeq[A]
traitLinearSeq[A]
traitSet[A]
traitSortedSet[A]
traitBitSet
traitView[A]
traitMapView[K,V]
traitSeqView[A]
classSorted[A,B]
Show all
traitIterableOnce[+A]

A template trait for collections which can be traversed either once only or one or more times.

A template trait for collections which can be traversed either once only or one or more times.

Note:IterableOnce does not extendIterableOnceOps. This is different than the general design of the collections library, which uses the following pattern:

trait Seq extends Iterable with SeqOpstrait SeqOps extends IterableOpstrait IndexedSeq extends Seq with IndexedSeqOpstrait IndexedSeqOps extends SeqOps

The goal is to provide a minimal interface without any sequential operations. This allows third-party extension like Scala parallel collections to integrate at the level of IterableOnce without inheriting unwanted implementations.

Attributes

Companion
object
Source
IterableOnce.scala
Supertypes
classAny
Known subtypes
traitIterable[A]
traitIterable[A]
traitMap[K,V]
classAbstractMap[K,V]
classHashMap[K,V]
classIntMap[T]
classListMap[K,V]
classLongMap[T]
classMap1[K,V]
classMap2[K,V]
classMap3[K,V]
classMap4[K,V]
classWithDefault[K,V]
classWithDefault[K,V]
classTreeMap[K,V]
classTreeSeqMap[K,V]
classVectorMap[K,V]
traitSeqMap[K,V]
traitSortedMap[K,V]
traitSeq[A]
classAbstractSeq[A]
classArraySeq[A]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
classLazyList[A]
classList[A]
class::[A]
objectNil
classNumericRange[T]
classExclusive[T]
classInclusive[T]
classQueue[A]
classRange
classExclusive
classInclusive
classStream[A]
classCons[A]
objectEmpty
classVector[A]
traitIndexedSeq[A]
traitLinearSeq[A]
traitSet[A]
classAbstractSet[A]
classBitSet
classBitSet1
classBitSet2
classBitSetN
classHashSet[A]
classListSet[A]
classSet1[A]
classSet2[A]
classSet3[A]
classSet4[A]
classTreeSet[A]
traitSortedSet[A]
traitIterable[A]
classPriorityQueue[A]
traitMap[K,V]
traitMap[K,V]
classTrieMap[K,V]
classAbstractMap[K,V]
classAnyRefMap[K,V]
classHashMap[K,V]
classLinkedHashMap[K,V]
classListMap[K,V]
classLongMap[V]
classWithDefault[K,V]
classWithDefault[K,V]
classOpenHashMap[Key,Value]
classTreeMap[K,V]
traitMultiMap[K,V]
traitSeqMap[K,V]
traitSortedMap[K,V]
traitSeq[A]
classAbstractSeq[A]
classArrayBuffer[A]
classArrayDeque[A]
classQueue[A]
classStack[A]
classListBuffer[A]
classArraySeq[T]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
traitBuffer[A]
traitIndexedBuffer[A]
traitIndexedSeq[T]
classAccumulator[A,CC,C]
traitSet[A]
classAbstractSet[A]
classBitSet
classHashSet[A]
classLinkedHashSet[A]
classTreeSet[A]
traitSortedSet[A]
classAbstractMap[K,V]
classAbstractSeq[A]
classAbstractSet[A]
classAbstractView[A]
classAbstractMapView[K,V]
classFilter[K,V]
classFilterKeys[K,V]
classId[K,V]
classMapValues[K,V,W]
classTapEach[K,V,U]
classSlice[A]
classId[A]
classId[A]
classReverse[A]
classReverse[A]
classAppended[A]
classAppended[A]
classAppended[A]
classCollect[A,B]
classConcat[A]
classConcat[A]
classConcat[A]
classDistinctBy[A,B]
classDrop[A]
classDrop[A]
classDrop[A]
classDropRight[A]
classDropRight[A]
classDropRight[A]
classDropWhile[A]
classElems[A]
objectEmpty
classFill[A]
classFilter[A]
classFlatMap[A,B]
classIterate[A]
classLeftPartitionMapped[A,A1,A2]
classMap[A,B]
classMap[A,B]
classMap[A,B]
classPadTo[A]
classPrepended[A]
classPrepended[A]
classPrepended[A]
classRightPartitionMapped[A,A1,A2]
classScanLeft[A,B]
classSingle[A]
classTabulate[A]
classTake[A]
classTake[A]
classTake[A]
classTakeRight[A]
classTakeRight[A]
classTakeRight[A]
classTakeWhile[A]
classUnfold[A,S]
classUpdated[A]
classZip[A,B]
classZipAll[A,B]
classZipWithIndex[A]
traitMap[K,V]
traitDefaultMap[K,V]
traitSeqMap[K,V]
traitSortedMap[K,V]
traitSeq[A]
traitIndexedSeq[A]
traitLinearSeq[A]
traitSet[A]
traitSortedSet[A]
traitBitSet
traitView[A]
traitMapView[K,V]
traitSeqView[A]
classSorted[A,B]
traitIterableOps[A,CC,C]
traitMapOps[K,V,CC,C]
traitSortedMapOps[K,V,CC,C]
traitStrictOptimizedMapOps[K,V,CC,C]
traitMapOps[K,V,CC,C]
traitSortedMapOps[K,V,CC,C]
traitSetOps[A,CC,C]
traitSortedSetOps[A,CC,C]
traitMapFactoryDefaults[K,V,CC,WithFilterCC]
classWeakHashMap[K,V]
traitMapOps[K,V,CC,C]
traitSortedMapFactoryDefaults[K,V,CC,WithFilterCC,UnsortedCC]
traitSortedMapOps[K,V,CC,C]
traitStrictOptimizedMapOps[K,V,CC,C]
traitSeqOps[A,CC,C]
traitSeqOps[A,CC,C]
traitIndexedSeqOps[A,CC,C]
traitLinearSeqOps[A,CC,C]
traitStrictOptimizedSeqOps[A,CC,C]
traitSeqOps[A,CC,C]
traitIndexedSeqOps[A,CC,C]
traitIndexedSeqOps[A,CC,C]
traitLinearSeqOps[A,CC,C]
traitStrictOptimizedSeqOps[A,CC,C]
traitArrayDequeOps[A,CC,C]
traitSetOps[A,CC,C]
traitSetOps[A,CC,C]
traitSortedSetOps[A,CC,C]
traitStrictOptimizedSetOps[A,CC,C]
traitSortedSetOps[A,CC,C]
traitBitSetOps[C]
traitSortedSetFactoryDefaults[A,CC,WithFilterCC]
traitStrictOptimizedSetOps[A,CC,C]
traitIterator[A]
classSource.this.LineIterator
classSource
classOption[A]
objectNone
classSome[A]
Show all

Attributes

Companion
trait
Source
IterableOnce.scala
Supertypes
classObject
traitMatchable
classAny
Self type

Attributes

Source
IterableOnce.scala
Supertypes
classAnyVal
traitMatchable
classAny
traitIterableOnceOps[+A,+CC[_],+C]

This implementation trait can be mixed into anIterableOnce to get the basic methods that are shared betweenIterator andIterable.

This implementation trait can be mixed into anIterableOnce to get the basic methods that are shared betweenIterator andIterable. TheIterableOnce must support multiple calls toiterator but may or may not return the sameIterator every time.

Attributes

Source
IterableOnce.scala
Supertypes
classAny
Known subtypes
traitIterableOps[A,CC,C]
traitIterable[A]
traitMap[K,V]
classAbstractMap[K,V]
classHashMap[K,V]
classIntMap[T]
classListMap[K,V]
classLongMap[T]
classMap1[K,V]
classMap2[K,V]
classMap3[K,V]
classMap4[K,V]
classWithDefault[K,V]
classWithDefault[K,V]
classTreeMap[K,V]
classTreeSeqMap[K,V]
classVectorMap[K,V]
traitSeqMap[K,V]
traitSortedMap[K,V]
traitSeq[A]
classAbstractSeq[A]
classArraySeq[A]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
classLazyList[A]
classList[A]
class::[A]
objectNil
classNumericRange[T]
classExclusive[T]
classInclusive[T]
classQueue[A]
classRange
classExclusive
classInclusive
classStream[A]
classCons[A]
objectEmpty
classVector[A]
traitIndexedSeq[A]
traitLinearSeq[A]
traitSet[A]
classAbstractSet[A]
classBitSet
classBitSet1
classBitSet2
classBitSetN
classHashSet[A]
classListSet[A]
classSet1[A]
classSet2[A]
classSet3[A]
classSet4[A]
classTreeSet[A]
traitSortedSet[A]
traitMapOps[K,V,CC,C]
traitSortedMapOps[K,V,CC,C]
traitStrictOptimizedMapOps[K,V,CC,C]
traitIterable[A]
classPriorityQueue[A]
traitMap[K,V]
traitMap[K,V]
classTrieMap[K,V]
classAbstractMap[K,V]
classAnyRefMap[K,V]
classHashMap[K,V]
classLinkedHashMap[K,V]
classListMap[K,V]
classLongMap[V]
classWithDefault[K,V]
classWithDefault[K,V]
classOpenHashMap[Key,Value]
classTreeMap[K,V]
traitMultiMap[K,V]
traitSeqMap[K,V]
traitSortedMap[K,V]
traitSeq[A]
classAbstractSeq[A]
classArrayBuffer[A]
classArrayDeque[A]
classQueue[A]
classStack[A]
classListBuffer[A]
classArraySeq[T]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
traitBuffer[A]
traitIndexedBuffer[A]
traitIndexedSeq[T]
classAccumulator[A,CC,C]
traitSet[A]
classAbstractSet[A]
classBitSet
classHashSet[A]
classLinkedHashSet[A]
classTreeSet[A]
traitSortedSet[A]
traitMapOps[K,V,CC,C]
traitSortedMapOps[K,V,CC,C]
traitSetOps[A,CC,C]
traitSortedSetOps[A,CC,C]
traitIterable[A]
classAbstractMap[K,V]
classAbstractSeq[A]
classAbstractSet[A]
classAbstractView[A]
classAbstractMapView[K,V]
classFilter[K,V]
classFilterKeys[K,V]
classId[K,V]
classMapValues[K,V,W]
classTapEach[K,V,U]
classSlice[A]
classId[A]
classId[A]
classReverse[A]
classReverse[A]
classAppended[A]
classAppended[A]
classAppended[A]
classCollect[A,B]
classConcat[A]
classConcat[A]
classConcat[A]
classDistinctBy[A,B]
classDrop[A]
classDrop[A]
classDrop[A]
classDropRight[A]
classDropRight[A]
classDropRight[A]
classDropWhile[A]
classElems[A]
objectEmpty
classFill[A]
classFilter[A]
classFlatMap[A,B]
classIterate[A]
classLeftPartitionMapped[A,A1,A2]
classMap[A,B]
classMap[A,B]
classMap[A,B]
classPadTo[A]
classPrepended[A]
classPrepended[A]
classPrepended[A]
classRightPartitionMapped[A,A1,A2]
classScanLeft[A,B]
classSingle[A]
classTabulate[A]
classTake[A]
classTake[A]
classTake[A]
classTakeRight[A]
classTakeRight[A]
classTakeRight[A]
classTakeWhile[A]
classUnfold[A,S]
classUpdated[A]
classZip[A,B]
classZipAll[A,B]
classZipWithIndex[A]
traitMap[K,V]
traitDefaultMap[K,V]
traitSeqMap[K,V]
traitSortedMap[K,V]
traitSeq[A]
traitIndexedSeq[A]
traitLinearSeq[A]
traitSet[A]
traitSortedSet[A]
traitBitSet
traitView[A]
traitMapView[K,V]
traitSeqView[A]
classSorted[A,B]
traitMapFactoryDefaults[K,V,CC,WithFilterCC]
classWeakHashMap[K,V]
traitMapOps[K,V,CC,C]
traitSortedMapFactoryDefaults[K,V,CC,WithFilterCC,UnsortedCC]
traitSortedMapOps[K,V,CC,C]
traitStrictOptimizedMapOps[K,V,CC,C]
traitSeqOps[A,CC,C]
traitSeqOps[A,CC,C]
traitIndexedSeqOps[A,CC,C]
traitLinearSeqOps[A,CC,C]
traitStrictOptimizedSeqOps[A,CC,C]
traitSeqOps[A,CC,C]
traitIndexedSeqOps[A,CC,C]
traitIndexedSeqOps[A,CC,C]
traitLinearSeqOps[A,CC,C]
traitStrictOptimizedSeqOps[A,CC,C]
traitArrayDequeOps[A,CC,C]
traitSetOps[A,CC,C]
traitSetOps[A,CC,C]
traitSortedSetOps[A,CC,C]
traitStrictOptimizedSetOps[A,CC,C]
traitSortedSetOps[A,CC,C]
traitBitSetOps[C]
traitSortedSetFactoryDefaults[A,CC,WithFilterCC]
traitStrictOptimizedSetOps[A,CC,C]
traitIterator[A]
classSource.this.LineIterator
classSource
Show all
Self type
traitIterableOps[+A,+CC[_],+C] extendsIterableOnce[A],IterableOnceOps[A,CC,C]

Base trait for Iterable operations

Base trait for Iterable operations

VarianceNote

We require that for all child classes of Iterable the variance of the child class and the variance of theC parameter passed toIterableOps are the same. We cannot express this since we lack variance polymorphism. That's why we have to resort at some places to writeC[A @uncheckedVariance].

Type parameters

C

type of the collection (e.g.List[Int],String,BitSet). Operations returning a collection with the same type of element (e.g.drop,filter) return aC.

CC

type constructor of the collection (e.g.List,Set). Operations returning a collection with a different type of elementB (e.g.map) return aCC[B].

Attributes

Companion
object
Source
Iterable.scala
Supertypes
traitIterableOnceOps[A,CC,C]
traitIterableOnce[A]
classAny
Known subtypes
traitIterable[A]
traitMap[K,V]
classAbstractMap[K,V]
classHashMap[K,V]
classIntMap[T]
classListMap[K,V]
classLongMap[T]
classMap1[K,V]
classMap2[K,V]
classMap3[K,V]
classMap4[K,V]
classWithDefault[K,V]
classWithDefault[K,V]
classTreeMap[K,V]
classTreeSeqMap[K,V]
classVectorMap[K,V]
traitSeqMap[K,V]
traitSortedMap[K,V]
traitSeq[A]
classAbstractSeq[A]
classArraySeq[A]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
classLazyList[A]
classList[A]
class::[A]
objectNil
classNumericRange[T]
classExclusive[T]
classInclusive[T]
classQueue[A]
classRange
classExclusive
classInclusive
classStream[A]
classCons[A]
objectEmpty
classVector[A]
traitIndexedSeq[A]
traitLinearSeq[A]
traitSet[A]
classAbstractSet[A]
classBitSet
classBitSet1
classBitSet2
classBitSetN
classHashSet[A]
classListSet[A]
classSet1[A]
classSet2[A]
classSet3[A]
classSet4[A]
classTreeSet[A]
traitSortedSet[A]
traitMapOps[K,V,CC,C]
traitSortedMapOps[K,V,CC,C]
traitStrictOptimizedMapOps[K,V,CC,C]
traitIterable[A]
classPriorityQueue[A]
traitMap[K,V]
traitMap[K,V]
classTrieMap[K,V]
classAbstractMap[K,V]
classAnyRefMap[K,V]
classHashMap[K,V]
classLinkedHashMap[K,V]
classListMap[K,V]
classLongMap[V]
classWithDefault[K,V]
classWithDefault[K,V]
classOpenHashMap[Key,Value]
classTreeMap[K,V]
traitMultiMap[K,V]
traitSeqMap[K,V]
traitSortedMap[K,V]
traitSeq[A]
classAbstractSeq[A]
classArrayBuffer[A]
classArrayDeque[A]
classQueue[A]
classStack[A]
classListBuffer[A]
classArraySeq[T]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
traitBuffer[A]
traitIndexedBuffer[A]
traitIndexedSeq[T]
classAccumulator[A,CC,C]
traitSet[A]
classAbstractSet[A]
classBitSet
classHashSet[A]
classLinkedHashSet[A]
classTreeSet[A]
traitSortedSet[A]
traitMapOps[K,V,CC,C]
traitSortedMapOps[K,V,CC,C]
traitSetOps[A,CC,C]
traitSortedSetOps[A,CC,C]
traitIterable[A]
classAbstractMap[K,V]
classAbstractSeq[A]
classAbstractSet[A]
classAbstractView[A]
classAbstractMapView[K,V]
classFilter[K,V]
classFilterKeys[K,V]
classId[K,V]
classMapValues[K,V,W]
classTapEach[K,V,U]
classSlice[A]
classId[A]
classId[A]
classReverse[A]
classReverse[A]
classAppended[A]
classAppended[A]
classAppended[A]
classCollect[A,B]
classConcat[A]
classConcat[A]
classConcat[A]
classDistinctBy[A,B]
classDrop[A]
classDrop[A]
classDrop[A]
classDropRight[A]
classDropRight[A]
classDropRight[A]
classDropWhile[A]
classElems[A]
objectEmpty
classFill[A]
classFilter[A]
classFlatMap[A,B]
classIterate[A]
classLeftPartitionMapped[A,A1,A2]
classMap[A,B]
classMap[A,B]
classMap[A,B]
classPadTo[A]
classPrepended[A]
classPrepended[A]
classPrepended[A]
classRightPartitionMapped[A,A1,A2]
classScanLeft[A,B]
classSingle[A]
classTabulate[A]
classTake[A]
classTake[A]
classTake[A]
classTakeRight[A]
classTakeRight[A]
classTakeRight[A]
classTakeWhile[A]
classUnfold[A,S]
classUpdated[A]
classZip[A,B]
classZipAll[A,B]
classZipWithIndex[A]
traitMap[K,V]
traitDefaultMap[K,V]
traitSeqMap[K,V]
traitSortedMap[K,V]
traitSeq[A]
traitIndexedSeq[A]
traitLinearSeq[A]
traitSet[A]
traitSortedSet[A]
traitBitSet
traitView[A]
traitMapView[K,V]
traitSeqView[A]
classSorted[A,B]
traitMapFactoryDefaults[K,V,CC,WithFilterCC]
classWeakHashMap[K,V]
traitMapOps[K,V,CC,C]
traitSortedMapFactoryDefaults[K,V,CC,WithFilterCC,UnsortedCC]
traitSortedMapOps[K,V,CC,C]
traitStrictOptimizedMapOps[K,V,CC,C]
traitSeqOps[A,CC,C]
traitSeqOps[A,CC,C]
traitIndexedSeqOps[A,CC,C]
traitLinearSeqOps[A,CC,C]
traitStrictOptimizedSeqOps[A,CC,C]
traitSeqOps[A,CC,C]
traitIndexedSeqOps[A,CC,C]
traitIndexedSeqOps[A,CC,C]
traitLinearSeqOps[A,CC,C]
traitStrictOptimizedSeqOps[A,CC,C]
traitArrayDequeOps[A,CC,C]
traitSetOps[A,CC,C]
traitSetOps[A,CC,C]
traitSortedSetOps[A,CC,C]
traitStrictOptimizedSetOps[A,CC,C]
traitSortedSetOps[A,CC,C]
traitBitSetOps[C]
traitSortedSetFactoryDefaults[A,CC,WithFilterCC]
traitStrictOptimizedSetOps[A,CC,C]
Show all

Attributes

Companion
trait
Source
Iterable.scala
Supertypes
classObject
traitMatchable
classAny
Self type

Iterators are data structures that allow to iterate over a sequence of elements.

Iterators are data structures that allow to iterate over a sequence of elements. They have ahasNext method for checking if there is a next element available, and anext method which returns the next element and advances the iterator.

An iterator is mutable: most operations on it change its state. While it is often used to iterate through the elements of a collection, it can also be used without being backed by any collection (see constructors on the companion object).

It is of particular importance to note that, unless stated otherwise,one should never use an iterator after calling a method on it. The two most important exceptions are also the sole abstract methods:next andhasNext.

Both these methods can be called any number of times without having to discard the iterator. Note that evenhasNext may cause mutation -- such as when iterating from an input stream, where it will block until the stream is closed or some input becomes available.

Consider this example for safe and unsafe use:

def f[A](it: Iterator[A]) = { if (it.hasNext) {            // Safe to reuse "it" after "hasNext"   it.next()                  // Safe to reuse "it" after "next"   val remainder = it.drop(2) // it is *not* safe to use "it" again after this line!   remainder.take(2)          // it is *not* safe to use "remainder" after this line! } else it}

Attributes

Companion
object
Source
Iterator.scala
Supertypes
traitIterableOnce[A]
classObject
traitMatchable
classAny
Known subtypes
Self type

Attributes

Companion
trait
Source
Iterator.scala
Supertypes
Self type
finalclassLazyZip2[+El1,+El2,C1]

Decorator representing lazily zipped pairs.

Decorator representing lazily zipped pairs.

Attributes

Companion
object
Source
LazyZipOps.scala
Supertypes
classObject
traitMatchable
classAny
objectLazyZip2

Attributes

Companion
class
Source
LazyZipOps.scala
Supertypes
classObject
traitMatchable
classAny
Self type
finalclassLazyZip3[+El1,+El2,+El3,C1]

Decorator representing lazily zipped triples.

Decorator representing lazily zipped triples.

Attributes

Companion
object
Source
LazyZipOps.scala
Supertypes
classObject
traitMatchable
classAny
objectLazyZip3

Attributes

Companion
class
Source
LazyZipOps.scala
Supertypes
classObject
traitMatchable
classAny
Self type
finalclassLazyZip4[+El1,+El2,+El3,+El4,C1]

Decorator representing lazily zipped 4-tuples.

Decorator representing lazily zipped 4-tuples.

Attributes

Companion
object
Source
LazyZipOps.scala
Supertypes
classObject
traitMatchable
classAny
objectLazyZip4

Attributes

Companion
class
Source
LazyZipOps.scala
Supertypes
classObject
traitMatchable
classAny
Self type

Base trait for linearly accessed sequences that have efficienthead andtail operations.

Base trait for linearly accessed sequences that have efficienthead andtail operations. Known subclasses: List, LazyList

Attributes

Companion
object
Source
LinearSeq.scala
Supertypes
traitSeq[A]
traitEquals
traitInt=>A
traitIterable[A]
traitIterableOnce[A]
classObject
traitMatchable
classAny
Show all
Known subtypes
traitLinearSeq[A]
classLazyList[A]
classList[A]
class::[A]
objectNil
classQueue[A]
classStream[A]
classCons[A]
objectEmpty
Show all

Attributes

Companion
trait
Source
LinearSeq.scala
Supertypes
Self type
traitLinearSeqOps[+A,+CC <:(LinearSeq),+C <:LinearSeq[A] &LinearSeqOps[A,CC,C]] extendsSeqOps[A,CC,C]

Base trait for linear Seq operations

Base trait for linear Seq operations

Attributes

Source
LinearSeq.scala
Supertypes
traitSeqOps[A,CC,C]
traitIterableOps[A,CC,C]
traitIterableOnceOps[A,CC,C]
traitIterableOnce[A]
classAny
Known subtypes
traitLinearSeqOps[A,CC,C]
classLazyList[A]
traitLinearSeq[A]
classList[A]
class::[A]
objectNil
classQueue[A]
classStream[A]
classCons[A]
objectEmpty
traitLinearSeq[A]
Show all
traitLongStepper extendsStepper[Long]

A Stepper for Longs.

A Stepper for Longs. SeeStepper.

Attributes

Companion
object
Source
Stepper.scala
Supertypes
traitStepper[Long]
classObject
traitMatchable
classAny

Attributes

Companion
trait
Source
Stepper.scala
Supertypes
classObject
traitMatchable
classAny
Self type
traitMap[K,+V] extendsIterable[(K,V)],MapOps[K,V,Map,Map[K,V]],MapFactoryDefaults[K,V,Map,Iterable],Equals

Base Map type

Base Map type

Attributes

Companion
object
Source
Map.scala
Supertypes
traitEquals
traitMapOps[K,V,Map,Map[K,V]]
traitPartialFunction[K,V]
traitK=>V
traitIterable[(K,V)]
traitIterableOps[(K,V),Iterable,Map[K,V]]
traitIterableOnceOps[(K,V),Iterable,Map[K,V]]
traitIterableOnce[(K,V)]
classObject
traitMatchable
classAny
Show all
Known subtypes
traitMap[K,V]
classAbstractMap[K,V]
classHashMap[K,V]
classIntMap[T]
classListMap[K,V]
classLongMap[T]
classMap1[K,V]
classMap2[K,V]
classMap3[K,V]
classMap4[K,V]
classWithDefault[K,V]
classWithDefault[K,V]
classTreeMap[K,V]
classTreeSeqMap[K,V]
classVectorMap[K,V]
traitSeqMap[K,V]
traitSortedMap[K,V]
traitMap[K,V]
traitMap[K,V]
classTrieMap[K,V]
classAbstractMap[K,V]
classAnyRefMap[K,V]
classHashMap[K,V]
classLinkedHashMap[K,V]
classListMap[K,V]
classLongMap[V]
classWithDefault[K,V]
classWithDefault[K,V]
classOpenHashMap[Key,Value]
classTreeMap[K,V]
traitMultiMap[K,V]
traitSeqMap[K,V]
traitSortedMap[K,V]
classAbstractMap[K,V]
traitDefaultMap[K,V]
traitSeqMap[K,V]
traitSortedMap[K,V]
Show all
objectMap extendsDelegate[Map]

This object provides a set of operations to createIterable values.

This object provides a set of operations to createIterable values.

Attributes

Companion
trait
Source
Map.scala
Supertypes
classDelegate[Map]
classObject
traitMatchable
classAny
Show all
Self type
Map.type
traitMapFactory[+CC[_,_]] extendsSerializable

Attributes

Companion
object
Source
Factory.scala
Supertypes
classObject
traitMatchable
classAny
Known subtypes
objectTrieMap
objectHashMap
objectListMap
objectMap
objectSeqMap
objectTreeSeqMap
objectVectorMap
objectHashMap
objectListMap
classDelegate[C]
objectMap
objectSeqMap
objectMap
objectSeqMap
objectMapView
Show all

Attributes

Companion
trait
Source
Factory.scala
Supertypes
classObject
traitMatchable
classAny
Self type
traitMapFactoryDefaults[K,+V,+CC <:([x,y] =>>IterableOps[(x,y),Iterable,Iterable[(x,y)]]),+WithFilterCC <:([x] =>>IterableOps[x,WithFilterCC,WithFilterCC[x]] &Iterable[x])] extendsMapOps[K,V,CC,CC[K,V]],IterableOps[(K,V),WithFilterCC,CC[K,V]]

This trait provides default implementations for the factory methodsfromSpecific andnewSpecificBuilder that need to be refined when implementing a collection type that refines theCC andC type parameters.

This trait provides default implementations for the factory methodsfromSpecific andnewSpecificBuilder that need to be refined when implementing a collection type that refines theCC andC type parameters. It is used for maps.

Note that in maps, theCC type of the map is not the same as theCC type for the underlying iterable (which is fixed toMap inMapOps). This trait has therefore two type parametersCC andWithFilterCC. ThewithFilter method inherited fromIterableOps is overridden with a compatible default implementation.

The default implementations in this trait can be used in the common case whenCC[A] is the same asC.

Attributes

Source
Iterable.scala
Supertypes
traitMapOps[K,V,CC,CC[K,V]]
traitPartialFunction[K,V]
traitK=>V
traitIterableOps[(K,V),WithFilterCC,CC[K,V]]
traitIterableOnceOps[(K,V),WithFilterCC,CC[K,V]]
traitIterableOnce[(K,V)]
classObject
traitMatchable
classAny
Show all
Known subtypes
classTrieMap[K,V]
classHashMap[K,V]
classListMap[K,V]
traitMap[K,V]
classAbstractMap[K,V]
classIntMap[T]
classLongMap[T]
classMap1[K,V]
classMap2[K,V]
classMap3[K,V]
classMap4[K,V]
classWithDefault[K,V]
classWithDefault[K,V]
classTreeMap[K,V]
classTreeSeqMap[K,V]
classVectorMap[K,V]
traitSeqMap[K,V]
traitSortedMap[K,V]
classHashMap[K,V]
classLinkedHashMap[K,V]
classListMap[K,V]
traitMap[K,V]
traitMap[K,V]
classAbstractMap[K,V]
classAnyRefMap[K,V]
classLongMap[V]
classWithDefault[K,V]
classWithDefault[K,V]
classOpenHashMap[Key,Value]
classTreeMap[K,V]
traitMultiMap[K,V]
traitSeqMap[K,V]
traitSortedMap[K,V]
classWeakHashMap[K,V]
traitMap[K,V]
classAbstractMap[K,V]
traitDefaultMap[K,V]
traitSeqMap[K,V]
traitSortedMap[K,V]
Show all
traitMapOps[K,+V,+CC <:([_,_] =>>IterableOps[_,AnyConstr,_]),+C] extendsIterableOps[(K,V),Iterable,C],PartialFunction[K,V]

Base Map implementation type

Base Map implementation type

Type parameters

C

type of the map (e.g.HashMap[Int, String]). Operations returning a collection with the same type of element (e.g.drop,filter) return aC.

CC

type constructor of the map (e.g.HashMap). Operations returning a collection with a different type of entries(L, W) (e.g.map) return aCC[L, W].

K

Type of keys

V

Type of values

Attributes

Companion
object
Source
Map.scala
Supertypes
traitPartialFunction[K,V]
traitK=>V
traitIterableOps[(K,V),Iterable,C]
traitIterableOnceOps[(K,V),Iterable,C]
traitIterableOnce[(K,V)]
classObject
traitMatchable
classAny
Show all
Known subtypes
traitMapOps[K,V,CC,C]
traitMap[K,V]
classAbstractMap[K,V]
classHashMap[K,V]
classIntMap[T]
classListMap[K,V]
classLongMap[T]
classMap1[K,V]
classMap2[K,V]
classMap3[K,V]
classMap4[K,V]
classWithDefault[K,V]
classWithDefault[K,V]
classTreeMap[K,V]
classTreeSeqMap[K,V]
classVectorMap[K,V]
traitSeqMap[K,V]
traitSortedMap[K,V]
traitSortedMapOps[K,V,CC,C]
traitStrictOptimizedMapOps[K,V,CC,C]
traitMapOps[K,V,CC,C]
classTrieMap[K,V]
classAnyRefMap[K,V]
classHashMap[K,V]
classLinkedHashMap[K,V]
classListMap[K,V]
classLongMap[V]
traitMap[K,V]
traitMap[K,V]
classAbstractMap[K,V]
classWithDefault[K,V]
classWithDefault[K,V]
classOpenHashMap[Key,Value]
classTreeMap[K,V]
traitMultiMap[K,V]
traitSeqMap[K,V]
traitSortedMap[K,V]
traitSortedMapOps[K,V,CC,C]
traitMap[K,V]
classAbstractMap[K,V]
traitDefaultMap[K,V]
traitSeqMap[K,V]
traitSortedMap[K,V]
traitMapFactoryDefaults[K,V,CC,WithFilterCC]
classWeakHashMap[K,V]
traitMapView[K,V]
classAbstractMapView[K,V]
classFilter[K,V]
classFilterKeys[K,V]
classId[K,V]
classMapValues[K,V,W]
classTapEach[K,V,U]
traitSortedMapFactoryDefaults[K,V,CC,WithFilterCC,UnsortedCC]
traitSortedMapOps[K,V,CC,C]
traitStrictOptimizedMapOps[K,V,CC,C]
Show all
objectMapOps

Attributes

Companion
trait
Source
Map.scala
Supertypes
classObject
traitMatchable
classAny
Self type
MapOps.type
traitMapView[K,+V] extendsMapOps[K,V, {typel =[X,Y] =>>View[(X,Y)]; }#<none>,View[(K,V)]],View[(K,V)]

Attributes

Companion
object
Source
MapView.scala
Supertypes
traitView[(K,V)]
traitIterable[(K,V)]
traitMapOps[K,V, {typel =[X,Y] =>>View[(X,Y)]; }#<none>,View[(K,V)]]
traitPartialFunction[K,V]
traitK=>V
traitIterableOps[(K,V),View,View[(K,V)]]
traitIterableOnceOps[(K,V),View,View[(K,V)]]
traitIterableOnce[(K,V)]
classObject
traitMatchable
classAny
Show all
Known subtypes
classAbstractMapView[K,V]
classFilter[K,V]
classFilterKeys[K,V]
classId[K,V]
classMapValues[K,V,W]
classTapEach[K,V,U]
Show all
objectMapView extendsMapViewFactory

Attributes

Companion
trait
Source
MapView.scala
Supertypes
traitMapFactory[{typel =[X,Y] =>>View[(X,Y)]; }#<none>]
classObject
traitMatchable
classAny
Show all
Self type
MapView.type
traitMapViewFactory extendsMapFactory[{typel =[X,Y] =>>View[(X,Y)]; }#<none>]

Attributes

Source
MapView.scala
Supertypes
traitMapFactory[{typel =[X,Y] =>>View[(X,Y)]; }#<none>]
classObject
traitMatchable
classAny
Known subtypes
objectMapView
objectSearching

Attributes

Source
Searching.scala
Supertypes
classObject
traitMatchable
classAny
Self type

Base trait for sequence collections

Base trait for sequence collections

Type parameters

A

the element type of the collection

Attributes

Companion
object
Source
Seq.scala
Supertypes
traitEquals
traitSeqOps[A,Seq,Seq[A]]
traitInt=>A
traitIterable[A]
traitIterableOps[A,Seq,Seq[A]]
traitIterableOnceOps[A,Seq,Seq[A]]
traitIterableOnce[A]
classObject
traitMatchable
classAny
Show all
Known subtypes
traitSeq[A]
classAbstractSeq[A]
classArraySeq[A]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
classLazyList[A]
classList[A]
class::[A]
objectNil
classNumericRange[T]
classExclusive[T]
classInclusive[T]
classQueue[A]
classRange
classExclusive
classInclusive
classStream[A]
classCons[A]
objectEmpty
classVector[A]
traitIndexedSeq[A]
traitLinearSeq[A]
traitSeq[A]
classAbstractSeq[A]
classArrayBuffer[A]
classArrayDeque[A]
classQueue[A]
classStack[A]
classListBuffer[A]
classArraySeq[T]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
traitBuffer[A]
traitIndexedBuffer[A]
traitIndexedSeq[T]
classAccumulator[A,CC,C]
classAbstractSeq[A]
traitIndexedSeq[A]
traitLinearSeq[A]
Show all
objectSeq extendsDelegate[Seq]

This object provides a set of operations to createIterable values.

This object provides a set of operations to createIterable values.

Attributes

Companion
trait
Source
Seq.scala
Supertypes
classDelegate[Seq]
classObject
traitMatchable
classAny
Show all
Self type
Seq.type
traitSeqFactory[+CC <:([A] =>>SeqOps[A,Seq,Seq[A]])] extendsIterableFactory[CC]

Type parameters

CC

Collection type constructor (e.g.List)

Attributes

Companion
object
Source
Factory.scala
Supertypes
traitIterableFactory[CC]
classObject
traitMatchable
classAny
Known subtypes
objectLazyList
objectStream
classAnySeqDelegate[CC]
classDelegate[CC]
objectIndexedSeq
objectLinearSeq
objectSeq
objectBuffer
objectIndexedSeq
objectSeq
objectIndexedSeq
objectLinearSeq
objectSeq
objectList
objectQueue
objectVector
objectArrayDeque
objectListBuffer
objectQueue
objectStack
Show all

Attributes

Companion
trait
Source
Factory.scala
Supertypes
classObject
traitMatchable
classAny
Self type
traitSeqMap[K,+V] extendsMap[K,V],MapOps[K,V,SeqMap,SeqMap[K,V]],MapFactoryDefaults[K,V,SeqMap,Iterable]

A generic trait for ordered maps.

A generic trait for ordered maps. Concrete classes have to provide functionality for the abstract methods inSeqMap.

Note that when checking for equalitySeqMap does not take into account ordering.

Type parameters

K

the type of the keys contained in this linked map.

V

the type of the values associated with the keys in this linked map.

Attributes

Companion
object
Source
SeqMap.scala
Supertypes
traitMap[K,V]
traitEquals
traitMapOps[K,V,SeqMap,SeqMap[K,V]]
traitPartialFunction[K,V]
traitK=>V
traitIterable[(K,V)]
traitIterableOps[(K,V),Iterable,SeqMap[K,V]]
traitIterableOnceOps[(K,V),Iterable,SeqMap[K,V]]
traitIterableOnce[(K,V)]
classObject
traitMatchable
classAny
Show all
Known subtypes
traitSeqMap[K,V]
classListMap[K,V]
classTreeSeqMap[K,V]
classVectorMap[K,V]
traitSeqMap[K,V]
classLinkedHashMap[K,V]
Show all
objectSeqMap extendsDelegate[SeqMap]

Attributes

Companion
trait
Source
SeqMap.scala
Supertypes
classObject
traitMatchable
classAny
Show all
Self type
SeqMap.type
traitSeqOps[+A,+CC[_],+C] extendsIterableOps[A,CC,C]

Base trait for Seq operations

Base trait for Seq operations

Type parameters

A

the element type of the collection

C

type of the collection (e.g.List[Int],String,BitSet). Operations returning a collection with the same type of element (e.g.drop,filter) return aC.

CC

type constructor of the collection (e.g.List,Set). Operations returning a collection with a different type of elementB (e.g.map) return aCC[B].

Attributes

Companion
object
Source
Seq.scala
Supertypes
traitIterableOps[A,CC,C]
traitIterableOnceOps[A,CC,C]
traitIterableOnce[A]
classAny
Known subtypes
traitSeqOps[A,CC,C]
traitIndexedSeqOps[A,CC,C]
classArraySeq[A]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
traitIndexedSeq[A]
classNumericRange[T]
classExclusive[T]
classInclusive[T]
classRange
classExclusive
classInclusive
classVector[A]
traitLinearSeqOps[A,CC,C]
classLazyList[A]
traitLinearSeq[A]
classList[A]
class::[A]
objectNil
classQueue[A]
classStream[A]
classCons[A]
objectEmpty
traitSeq[A]
classAbstractSeq[A]
traitStrictOptimizedSeqOps[A,CC,C]
traitSeqOps[A,CC,C]
traitBuffer[A]
classArrayBuffer[A]
classArrayDeque[A]
classQueue[A]
classStack[A]
classListBuffer[A]
traitIndexedBuffer[A]
traitIndexedSeqOps[A,CC,C]
classArraySeq[T]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
traitIndexedSeq[T]
traitSeq[A]
classAbstractSeq[A]
classAccumulator[A,CC,C]
traitIndexedSeqOps[A,CC,C]
traitIndexedSeq[A]
classSlice[A]
classAppended[A]
classConcat[A]
classDrop[A]
classDropRight[A]
classId[A]
classMap[A,B]
classPrepended[A]
classReverse[A]
classTake[A]
classTakeRight[A]
traitLinearSeqOps[A,CC,C]
traitLinearSeq[A]
traitSeq[A]
classAbstractSeq[A]
traitSeqView[A]
classId[A]
classReverse[A]
classAppended[A]
classConcat[A]
classDrop[A]
classDropRight[A]
classMap[A,B]
classPrepended[A]
classSorted[A,B]
classTake[A]
classTakeRight[A]
traitStrictOptimizedSeqOps[A,CC,C]
traitArrayDequeOps[A,CC,C]
Show all
Self type
SeqOps[A,CC,C]
objectSeqOps

Attributes

Companion
trait
Source
Seq.scala
Supertypes
classObject
traitMatchable
classAny
Self type
SeqOps.type
traitSeqView[+A] extendsSeqOps[A,View,View[A]],View[A]

Attributes

Companion
object
Source
SeqView.scala
Supertypes
traitView[A]
traitIterable[A]
traitSeqOps[A,View,View[A]]
traitIterableOps[A,View,View[A]]
traitIterableOnce[A]
classObject
traitMatchable
classAny
Show all
Known subtypes
classSlice[A]
classId[A]
classId[A]
classReverse[A]
classReverse[A]
classAppended[A]
classConcat[A]
classDrop[A]
classDropRight[A]
classMap[A,B]
classPrepended[A]
classTake[A]
classTakeRight[A]
classAppended[A]
classConcat[A]
classDrop[A]
classDropRight[A]
classMap[A,B]
classPrepended[A]
classSorted[A,B]
classTake[A]
classTakeRight[A]
Show all
objectSeqView

Attributes

Companion
trait
Source
SeqView.scala
Supertypes
classObject
traitMatchable
classAny
Self type
SeqView.type

Base trait for set collections.

Base trait for set collections.

Attributes

Companion
object
Source
Set.scala
Supertypes
traitEquals
traitSetOps[A,Set,Set[A]]
traitA=>Boolean
traitIterable[A]
traitIterableOps[A,Set,Set[A]]
traitIterableOnceOps[A,Set,Set[A]]
traitIterableOnce[A]
classObject
traitMatchable
classAny
Show all
Known subtypes
traitSet[A]
classAbstractSet[A]
classBitSet
classBitSet1
classBitSet2
classBitSetN
classHashSet[A]
classListSet[A]
classSet1[A]
classSet2[A]
classSet3[A]
classSet4[A]
classTreeSet[A]
traitSortedSet[A]
traitSet[A]
classAbstractSet[A]
classBitSet
classHashSet[A]
classLinkedHashSet[A]
classTreeSet[A]
traitSortedSet[A]
classAbstractSet[A]
traitSortedSet[A]
traitBitSet
Show all
objectSet extendsDelegate[Set]

This object provides a set of operations to createIterable values.

This object provides a set of operations to createIterable values.

Attributes

Companion
trait
Source
Set.scala
Supertypes
classDelegate[Set]
classObject
traitMatchable
classAny
Show all
Self type
Set.type
traitSetOps[A,+CC[_],+C <:SetOps[A,CC,C]] extendsIterableOps[A,CC,C],A=>Boolean

Base trait for set operations

Base trait for set operations

Attributes

Source
Set.scala
Supertypes
traitA=>Boolean
traitIterableOps[A,CC,C]
traitIterableOnceOps[A,CC,C]
traitIterableOnce[A]
classObject
traitMatchable
classAny
Show all
Known subtypes
traitSetOps[A,CC,C]
traitSet[A]
classAbstractSet[A]
classBitSet
classBitSet1
classBitSet2
classBitSetN
classHashSet[A]
classListSet[A]
classSet1[A]
classSet2[A]
classSet3[A]
classSet4[A]
classTreeSet[A]
traitSortedSet[A]
traitSortedSetOps[A,CC,C]
traitStrictOptimizedSetOps[A,CC,C]
traitSetOps[A,CC,C]
classHashSet[A]
classLinkedHashSet[A]
traitSet[A]
classAbstractSet[A]
classBitSet
classTreeSet[A]
traitSortedSet[A]
traitSortedSetOps[A,CC,C]
traitSet[A]
classAbstractSet[A]
traitSortedSet[A]
traitBitSet
traitSortedSetOps[A,CC,C]
traitBitSetOps[C]
traitSortedSetFactoryDefaults[A,CC,WithFilterCC]
traitStrictOptimizedSetOps[A,CC,C]
Show all

Base trait for companion objects of collections that require an implicitOrdering.

Base trait for companion objects of collections that require an implicitOrdering.

Type parameters

CC

Collection type constructor (e.g.SortedSet)

Attributes

Companion
object
Source
Factory.scala
Supertypes
Known subtypes
objectTreeSet
objectTreeSet
classDelegate[CC]
objectSortedSet
objectSortedSet
objectSortedSet
Show all

Attributes

Companion
trait
Source
Factory.scala
Supertypes
classObject
traitMatchable
classAny
Self type

A Map whose keys are sorted according to ascala.math.Ordering

A Map whose keys are sorted according to ascala.math.Ordering

Attributes

Companion
object
Source
SortedMap.scala
Supertypes
traitSortedOps[K,SortedMap[K,V]]
traitMap[K,V]
traitEquals
traitMapOps[K,V,Map,SortedMap[K,V]]
traitPartialFunction[K,V]
traitK=>V
traitIterable[(K,V)]
traitIterableOps[(K,V),Iterable,SortedMap[K,V]]
traitIterableOnce[(K,V)]
classObject
traitMatchable
classAny
Show all
Known subtypes
traitSortedMap[K,V]
classWithDefault[K,V]
classTreeMap[K,V]
traitSortedMap[K,V]
classWithDefault[K,V]
classTreeMap[K,V]
Show all

Attributes

Companion
trait
Source
SortedMap.scala
Supertypes
classObject
traitMatchable
classAny
Show all
Self type
traitSortedMapFactory[+CC[_,_]] extendsSerializable

Attributes

Companion
object
Source
Factory.scala
Supertypes
classObject
traitMatchable
classAny
Known subtypes
objectTreeMap
objectTreeMap
classDelegate[CC]
objectSortedMap
objectSortedMap
objectSortedMap
Show all

Attributes

Companion
trait
Source
Factory.scala
Supertypes
classObject
traitMatchable
classAny
Self type
traitSortedMapFactoryDefaults[K,+V,+CC <:([x,y] =>>Map[x,y] &SortedMapOps[x,y,CC,CC[x,y]] &UnsortedCC[x,y]),+WithFilterCC <:([x] =>>IterableOps[x,WithFilterCC,WithFilterCC[x]] &Iterable[x]),+UnsortedCC <:(Map)] extendsSortedMapOps[K,V,CC,CC[K,V]],MapOps[K,V,UnsortedCC,CC[K,V]]

This trait provides default implementations for the factory methodsfromSpecific andnewSpecificBuilder that need to be refined when implementing a collection type that refines theCC andC type parameters.

This trait provides default implementations for the factory methodsfromSpecific andnewSpecificBuilder that need to be refined when implementing a collection type that refines theCC andC type parameters. It is used for sorted maps.

Note that in sorted maps, theCC type of the map is not the same as theCC type for the underlying map (which is fixed toMap inSortedMapOps). This trait has therefore three type parametersCC,WithFilterCC andUnsortedCC. ThewithFilter method inherited fromIterableOps is overridden with a compatible default implementation.

The default implementations in this trait can be used in the common case whenCC[A] is the same asC.

Attributes

Source
Iterable.scala
Supertypes
traitSortedMapOps[K,V,CC,CC[K,V]]
traitSortedOps[K,CC[K,V]]
traitMapOps[K,V,UnsortedCC,CC[K,V]]
traitPartialFunction[K,V]
traitK=>V
traitIterableOps[(K,V),Iterable,CC[K,V]]
traitIterableOnceOps[(K,V),Iterable,CC[K,V]]
traitIterableOnce[(K,V)]
classObject
traitMatchable
classAny
Show all
Known subtypes
traitSortedMap[K,V]
classWithDefault[K,V]
classTreeMap[K,V]
traitSortedMap[K,V]
classWithDefault[K,V]
classTreeMap[K,V]
traitSortedMap[K,V]
Show all
Self type
IterableOps[(K,V),WithFilterCC,_]
traitSortedMapOps[K,+V,+CC <:([X,Y] =>>Map[X,Y] &SortedMapOps[X,Y,CC,_]),+C <:SortedMapOps[K,V,CC,C]] extendsMapOps[K,V,Map,C],SortedOps[K,C]

Attributes

Companion
object
Source
SortedMap.scala
Supertypes
traitSortedOps[K,C]
traitMapOps[K,V,Map,C]
traitPartialFunction[K,V]
traitK=>V
traitIterableOps[(K,V),Iterable,C]
traitIterableOnceOps[(K,V),Iterable,C]
traitIterableOnce[(K,V)]
classObject
traitMatchable
classAny
Show all
Known subtypes
traitSortedMapOps[K,V,CC,C]
traitSortedMap[K,V]
classWithDefault[K,V]
classTreeMap[K,V]
traitSortedMapOps[K,V,CC,C]
traitSortedMap[K,V]
classWithDefault[K,V]
classTreeMap[K,V]
traitSortedMap[K,V]
traitSortedMapFactoryDefaults[K,V,CC,WithFilterCC,UnsortedCC]
Show all

Attributes

Companion
trait
Source
SortedMap.scala
Supertypes
classObject
traitMatchable
classAny
Self type
traitSortedOps[A,+C]

Base trait for sorted collections

Base trait for sorted collections

Attributes

Source
SortedOps.scala
Supertypes
classObject
traitMatchable
classAny
Known subtypes
traitSortedMapOps[K,V,CC,C]
traitSortedMapOps[K,V,CC,C]
traitSortedMap[K,V]
classWithDefault[K,V]
classTreeMap[K,V]
traitSortedMapOps[K,V,CC,C]
traitSortedMap[K,V]
classWithDefault[K,V]
classTreeMap[K,V]
traitSortedMap[K,V]
traitSortedMapFactoryDefaults[K,V,CC,WithFilterCC,UnsortedCC]
traitSortedSetOps[A,CC,C]
traitSortedSetOps[A,CC,C]
classBitSet
classBitSet1
classBitSet2
classBitSetN
traitSortedSet[A]
classTreeSet[A]
traitSortedSetOps[A,CC,C]
classBitSet
traitSortedSet[A]
classTreeSet[A]
traitBitSetOps[C]
traitBitSet
traitSortedSet[A]
traitSortedSetFactoryDefaults[A,CC,WithFilterCC]
Show all

Base type of sorted sets

Base type of sorted sets

Attributes

Companion
object
Source
SortedSet.scala
Supertypes
traitSortedOps[A,SortedSet[A]]
traitSet[A]
traitEquals
traitSetOps[A,Set,SortedSet[A]]
traitA=>Boolean
traitIterable[A]
traitIterableOnce[A]
classObject
traitMatchable
classAny
Show all
Known subtypes
traitSortedSet[A]
classBitSet
classBitSet1
classBitSet2
classBitSetN
classTreeSet[A]
traitSortedSet[A]
classBitSet
classTreeSet[A]
traitBitSet
Show all

Attributes

Companion
trait
Source
SortedSet.scala
Supertypes
Self type
traitSortedSetFactoryDefaults[+A,+CC <:([X] =>>SortedSet[X] &SortedSetOps[X,CC,CC[X]]),+WithFilterCC <:([x] =>>IterableOps[x,WithFilterCC,WithFilterCC[x]] &Set[x])] extendsSortedSetOps[A,CC,CC[A]]

This trait provides default implementations for the factory methodsfromSpecific andnewSpecificBuilder that need to be refined when implementing a collection type that refines theCC andC type parameters.

This trait provides default implementations for the factory methodsfromSpecific andnewSpecificBuilder that need to be refined when implementing a collection type that refines theCC andC type parameters. It is used for sorted sets.

Note that in sorted sets, theCC type of the set is not the same as theCC type for the underlying iterable (which is fixed toSet inSortedSetOps). This trait has therefore two type parametersCC andWithFilterCC. ThewithFilter method inherited fromIterableOps is overridden with a compatible default implementation.

The default implementations in this trait can be used in the common case whenCC[A] is the same asC.

Attributes

Source
Iterable.scala
Supertypes
traitSortedSetOps[A,CC,CC[A]]
traitSortedOps[A,CC[A]]
traitSetOps[A,Set,CC[A]]
traitA=>Boolean
traitIterableOps[A,Set,CC[A]]
traitIterableOnceOps[A,Set,CC[A]]
traitIterableOnce[A]
classObject
traitMatchable
classAny
Show all
Known subtypes
traitSortedSet[A]
classBitSet
classBitSet1
classBitSet2
classBitSetN
classTreeSet[A]
traitSortedSet[A]
classBitSet
classTreeSet[A]
traitSortedSet[A]
traitBitSet
Show all
Self type
IterableOps[A,WithFilterCC,_]
traitSortedSetOps[A,+CC <:(SortedSet),+C <:SortedSetOps[A,CC,C]] extendsSetOps[A,Set,C],SortedOps[A,C]

Attributes

Companion
object
Source
SortedSet.scala
Supertypes
traitSortedOps[A,C]
traitSetOps[A,Set,C]
traitA=>Boolean
traitIterableOps[A,Set,C]
traitIterableOnceOps[A,Set,C]
traitIterableOnce[A]
classObject
traitMatchable
classAny
Show all
Known subtypes
traitSortedSetOps[A,CC,C]
classBitSet
classBitSet1
classBitSet2
classBitSetN
traitSortedSet[A]
classTreeSet[A]
traitSortedSetOps[A,CC,C]
classBitSet
traitSortedSet[A]
classTreeSet[A]
traitBitSetOps[C]
traitBitSet
traitSortedSet[A]
traitSortedSetFactoryDefaults[A,CC,WithFilterCC]
Show all

Attributes

Companion
trait
Source
SortedSet.scala
Supertypes
classObject
traitMatchable
classAny
Self type
traitSpecificIterableFactory[-A,+C] extendsFactory[A,C]

Type parameters

A

Type of elements (e.g.Int,Boolean, etc.)

C

Type of collection (e.g.List[Int],TreeMap[Int, String], etc.)

Attributes

Source
Factory.scala
Supertypes
traitFactory[A,C]
classObject
traitMatchable
classAny
Known subtypes
objectBitSet
objectBitSet
objectBitSet
objectEnumeration.this.ValueSet
Show all
traitStepper[+A]

Steppers exist to enable creating Java streams over Scala collections, seescala.jdk.StreamConverters.

Steppers exist to enable creating Java streams over Scala collections, seescala.jdk.StreamConverters. Besides that use case, they allow iterating over collections holding unboxed primitives (e.g.,Array[Int]) without boxing the elements.

Steppers have an iterator-like interface with methodshasStep andnextStep(). The difference to iterators - and the reasonStepper is not a subtype ofIterator - is that there are hand-specialized variants ofStepper forInt,Long andDouble (IntStepper, etc.). These enable iterating over collections holding unboxed primitives (e.g., Arrays,scala.jdk.Accumulators) without boxing the elements.

The selection of primitive types (Int,Long andDouble) matches the hand-specialized variants of Java Streams (java.util.stream.Stream,java.util.stream.IntStream, etc.) and the corresponding Java Spliterators (java.util.Spliterator,java.util.Spliterator.OfInt, etc.).

Steppers can be converted to Scala Iterators, Java Iterators and Java Spliterators. Primitive Steppers are converted to the corresponding primitive Java Iterators and Spliterators.

Type parameters

A

the element type of the Stepper

Attributes

Companion
object
Source
Stepper.scala
Supertypes
classObject
traitMatchable
classAny
Known subtypes
objectStepper

Attributes

Companion
trait
Source
Stepper.scala
Supertypes
classObject
traitMatchable
classAny
Self type
Stepper.type
sealedtraitStepperShape[-T,S <:Stepper[_]]

An implicit StepperShape instance is used in theIterableOnce.stepper to return a possibly specialized StepperS according to the element typeT.

An implicit StepperShape instance is used in theIterableOnce.stepper to return a possibly specialized StepperS according to the element typeT.

Attributes

Companion
object
Source
StepperShape.scala
Supertypes
classObject
traitMatchable
classAny

Attributes

Companion
trait
Source
StepperShape.scala
Supertypes
Self type

Attributes

Source
StepperShape.scala
Supertypes
Known subtypes

Attributes

Source
StepperShape.scala
Supertypes
classObject
traitMatchable
classAny
Known subtypes
traitStrictOptimizedClassTagSeqFactory[+CC <:([A] =>>SeqOps[A,Seq,Seq[A]])] extendsClassTagSeqFactory[CC]

Attributes

Source
Factory.scala
Supertypes
Known subtypes
objectArraySeq
objectArraySeq
traitStrictOptimizedIterableOps[+A,+CC[_],+C] extendsIterableOps[A,CC,C]

Trait that overrides iterable operations to take advantage of strict builders.

Trait that overrides iterable operations to take advantage of strict builders.

Type parameters

A

Elements type

C

Collection type

CC

Collection type constructor

Attributes

Source
StrictOptimizedIterableOps.scala
Supertypes
traitIterableOps[A,CC,C]
traitIterableOnceOps[A,CC,C]
traitIterableOnce[A]
classAny
Known subtypes
classMap1[K,V]
classMap2[K,V]
classMap3[K,V]
classMap4[K,V]
classSet1[A]
classSet2[A]
classSet3[A]
classSet4[A]
traitStrictOptimizedMapOps[K,V,CC,C]
classHashMap[K,V]
classIntMap[T]
classListMap[K,V]
classLongMap[T]
classTreeMap[K,V]
classTreeSeqMap[K,V]
classVectorMap[K,V]
traitStrictOptimizedSeqOps[A,CC,C]
classArraySeq[A]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
classList[A]
class::[A]
objectNil
classNumericRange[T]
classExclusive[T]
classInclusive[T]
classQueue[A]
classRange
classExclusive
classInclusive
classVector[A]
traitStrictOptimizedSetOps[A,CC,C]
classHashSet[A]
classListSet[A]
classBitSet
classBitSet1
classBitSet2
classBitSetN
classTreeSet[A]
classAnyRefMap[K,V]
classBitSet
classHashMap[K,V]
classHashSet[A]
classLinkedHashMap[K,V]
classLinkedHashSet[A]
classListMap[K,V]
classLongMap[V]
classOpenHashMap[Key,Value]
classPriorityQueue[A]
classTreeMap[K,V]
classTreeSet[A]
traitStrictOptimizedMapOps[K,V,CC,C]
traitStrictOptimizedSeqOps[A,CC,C]
classArrayBuffer[A]
classArrayDeque[A]
classQueue[A]
classStack[A]
traitArrayDequeOps[A,CC,C]
classArraySeq[T]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
classListBuffer[A]
traitStrictOptimizedSetOps[A,CC,C]
Show all

Attributes

Source
LinearSeq.scala
Supertypes
traitStrictOptimizedSeqOps[A,CC,C]
traitLinearSeqOps[A,CC,C]
traitSeqOps[A,CC,C]
traitIterableOps[A,CC,C]
traitIterableOnceOps[A,CC,C]
traitIterableOnce[A]
classAny
Show all
Known subtypes
classList[A]
class::[A]
objectNil
classQueue[A]
traitStrictOptimizedMapOps[K,+V,+CC <:([_,_] =>>IterableOps[_,AnyConstr,_]),+C] extendsMapOps[K,V,CC,C],StrictOptimizedIterableOps[(K,V),Iterable,C]

Trait that overrides map operations to take advantage of strict builders.

Trait that overrides map operations to take advantage of strict builders.

Type parameters

C

Collection type

CC

Collection type constructor

K

Type of keys

V

Type of values

Attributes

Source
StrictOptimizedMapOps.scala
Supertypes
traitMapOps[K,V,CC,C]
traitPartialFunction[K,V]
traitK=>V
traitIterableOps[(K,V),Iterable,C]
traitIterableOnceOps[(K,V),Iterable,C]
traitIterableOnce[(K,V)]
classObject
traitMatchable
classAny
Show all
Known subtypes
traitStrictOptimizedMapOps[K,V,CC,C]
classHashMap[K,V]
classIntMap[T]
classListMap[K,V]
classLongMap[T]
classTreeMap[K,V]
classTreeSeqMap[K,V]
classVectorMap[K,V]
classHashMap[K,V]
classLinkedHashMap[K,V]
classListMap[K,V]
classTreeMap[K,V]
Show all
traitStrictOptimizedSeqFactory[+CC <:([A] =>>SeqOps[A,Seq,Seq[A]])] extendsSeqFactory[CC]

Attributes

Source
Factory.scala
Supertypes
traitSeqFactory[CC]
traitIterableFactory[CC]
classObject
traitMatchable
classAny
Show all
Known subtypes
objectList
objectQueue
objectVector
objectArrayDeque
objectListBuffer
objectQueue
objectStack
Show all
traitStrictOptimizedSeqOps[+A,+CC[_],+C] extendsSeqOps[A,CC,C],StrictOptimizedIterableOps[A,CC,C]

Trait that overrides operations on sequences in order to take advantage of strict builders.

Trait that overrides operations on sequences in order to take advantage of strict builders.

Attributes

Source
StrictOptimizedSeqOps.scala
Supertypes
traitSeqOps[A,CC,C]
traitIterableOps[A,CC,C]
traitIterableOnceOps[A,CC,C]
traitIterableOnce[A]
classAny
Show all
Known subtypes
traitStrictOptimizedSeqOps[A,CC,C]
classArraySeq[A]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
classList[A]
class::[A]
objectNil
classNumericRange[T]
classExclusive[T]
classInclusive[T]
classQueue[A]
classRange
classExclusive
classInclusive
classVector[A]
classArrayBuffer[A]
classArrayDeque[A]
classQueue[A]
classStack[A]
traitArrayDequeOps[A,CC,C]
classArraySeq[T]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
classListBuffer[A]
Show all
traitStrictOptimizedSetOps[A,+CC[_],+C <:SetOps[A,CC,C]] extendsSetOps[A,CC,C],StrictOptimizedIterableOps[A,CC,C]

Trait that overrides set operations to take advantage of strict builders.

Trait that overrides set operations to take advantage of strict builders.

Type parameters

A

Elements type

C

Collection type

CC

Collection type constructor

Attributes

Source
StrictOptimizedSetOps.scala
Supertypes
traitSetOps[A,CC,C]
traitA=>Boolean
traitIterableOps[A,CC,C]
traitIterableOnceOps[A,CC,C]
traitIterableOnce[A]
classObject
traitMatchable
classAny
Show all
Known subtypes
traitStrictOptimizedSetOps[A,CC,C]
classHashSet[A]
classListSet[A]
classBitSet
classBitSet1
classBitSet2
classBitSetN
classTreeSet[A]
classBitSet
classTreeSet[A]
Show all
traitStrictOptimizedSortedMapOps[K,+V,+CC <:([X,Y] =>>Map[X,Y] &SortedMapOps[X,Y,CC,_]),+C <:SortedMapOps[K,V,CC,C]] extendsSortedMapOps[K,V,CC,C],StrictOptimizedMapOps[K,V,Map,C]

Trait that overrides sorted map operations to take advantage of strict builders.

Trait that overrides sorted map operations to take advantage of strict builders.

Type parameters

C

Collection type

CC

Collection type constructor

K

Type of keys

V

Type of values

Attributes

Source
StrictOptimizedSortedMapOps.scala
Supertypes
traitSortedMapOps[K,V,CC,C]
traitSortedOps[K,C]
traitMapOps[K,V,Map,C]
traitPartialFunction[K,V]
traitK=>V
traitIterableOps[(K,V),Iterable,C]
traitIterableOnceOps[(K,V),Iterable,C]
traitIterableOnce[(K,V)]
classObject
traitMatchable
classAny
Show all
Known subtypes
classTreeMap[K,V]
classTreeMap[K,V]

Trait that overrides sorted set operations to take advantage of strict builders.

Trait that overrides sorted set operations to take advantage of strict builders.

Type parameters

A

Elements type

C

Collection type

CC

Collection type constructor

Attributes

Source
StrictOptimizedSortedSetOps.scala
Supertypes
traitSortedSetOps[A,CC,C]
traitSortedOps[A,C]
traitSetOps[A,Set,C]
traitA=>Boolean
traitIterableOps[A,Set,C]
traitIterableOnceOps[A,Set,C]
traitIterableOnce[A]
classObject
traitMatchable
classAny
Show all
Known subtypes
classBitSet
classBitSet1
classBitSet2
classBitSetN
classTreeSet[A]
classBitSet
classTreeSet[A]
Show all
objectStringOps

Attributes

Companion
class
Source
StringOps.scala
Supertypes
classObject
traitMatchable
classAny
Self type
finalclassStringOps(s:String) extendsAnyVal

Provides extension methods for strings.

Provides extension methods for strings.

Some of these methods treat strings as a plain collection ofChars without any regard for Unicode handling. Unless the user takes Unicode handling in to account or makes sure the strings don't require such handling, these methods may result in unpaired or invalidly paired surrogate code units.

Attributes

Companion
object
Source
StringOps.scala
Supertypes
classAnyVal
traitMatchable
classAny

Views are collections whose transformation operations are non strict: the resulting elements are evaluated only when the view is effectively traversed (e.g.

Views are collections whose transformation operations are non strict: the resulting elements are evaluated only when the view is effectively traversed (e.g. usingforeach orfoldLeft), or when the view is converted to a strict collection type (using theto operation).

Attributes

Companion
object
Source
View.scala
Supertypes
traitIterable[A]
traitIterableOps[A,View,View[A]]
traitIterableOnce[A]
classObject
traitMatchable
classAny
Show all
Known subtypes
classAbstractView[A]
classAbstractMapView[K,V]
classFilter[K,V]
classFilterKeys[K,V]
classId[K,V]
classMapValues[K,V,W]
classTapEach[K,V,U]
classSlice[A]
classId[A]
classId[A]
classReverse[A]
classReverse[A]
classAppended[A]
classAppended[A]
classAppended[A]
classCollect[A,B]
classConcat[A]
classConcat[A]
classConcat[A]
classDistinctBy[A,B]
classDrop[A]
classDrop[A]
classDrop[A]
classDropRight[A]
classDropRight[A]
classDropRight[A]
classDropWhile[A]
classElems[A]
objectEmpty
classFill[A]
classFilter[A]
classFlatMap[A,B]
classIterate[A]
classLeftPartitionMapped[A,A1,A2]
classMap[A,B]
classMap[A,B]
classMap[A,B]
classPadTo[A]
classPrepended[A]
classPrepended[A]
classPrepended[A]
classRightPartitionMapped[A,A1,A2]
classScanLeft[A,B]
classSingle[A]
classTabulate[A]
classTake[A]
classTake[A]
classTake[A]
classTakeRight[A]
classTakeRight[A]
classTakeRight[A]
classTakeWhile[A]
classUnfold[A,S]
classUpdated[A]
classZip[A,B]
classZipAll[A,B]
classZipWithIndex[A]
traitMapView[K,V]
traitSeqView[A]
classSorted[A,B]
Show all
objectView extendsIterableFactory[View]

This object reifies operations on views as case classes

This object reifies operations on views as case classes

Attributes

Companion
trait
Source
View.scala
Supertypes
Self type
View.type
abstractclassWithFilter[+A,+CC[_]] extendsSerializable

A template trait that contains just themap,flatMap,foreach andwithFilter methods of traitIterable.

A template trait that contains just themap,flatMap,foreach andwithFilter methods of traitIterable.

Type parameters

A

Element type (e.g.Int)

CC

Collection type constructor (e.g.List)

Attributes

Source
WithFilter.scala
Supertypes
classObject
traitMatchable
classAny
Known subtypes
classWithFilter[A,CC]
classWithFilter[K,V,IterableCC,CC]
classWithFilter[K,V,IterableCC,MapCC,CC]
classWithFilter[A,IterableCC,CC]

Deprecated classlikes

traitDefaultMap[K,+V] extendsMap[K,V]

A default map which builds a defaultimmutable.Map implementation for all transformations.

A default map which builds a defaultimmutable.Map implementation for all transformations.

Attributes

Deprecated
[Since version 2.13.0]DefaultMap is no longer necessary; extend Map directly
Source
DefaultMap.scala
Supertypes
traitMap[K,V]
traitEquals
traitMapOps[K,V,Map,Map[K,V]]
traitPartialFunction[K,V]
traitK=>V
traitIterable[(K,V)]
traitIterableOps[(K,V),Iterable,Map[K,V]]
traitIterableOnceOps[(K,V),Iterable,Map[K,V]]
traitIterableOnce[(K,V)]
classObject
traitMatchable
classAny
Show all

A variety of decorators that enable converting between Scala and Java collections using extension methods,asScala andasJava.

A variety of decorators that enable converting between Scala and Java collections using extension methods,asScala andasJava.

The extension methods return adapters for the corresponding API.

The following conversions are supported viaasScala andasJava:

scala.collection.Iterable       <=> java.lang.Iterablescala.collection.Iterator       <=> java.util.Iteratorscala.collection.mutable.Buffer <=> java.util.Listscala.collection.mutable.Set    <=> java.util.Setscala.collection.mutable.Map    <=> java.util.Mapscala.collection.concurrent.Map <=> java.util.concurrent.ConcurrentMap

The following conversions are supported viaasScala and through specially-named extension methods to convert to Java collections, as shown:

scala.collection.Iterable    <=> java.util.Collection   (via asJavaCollection)scala.collection.Iterator    <=> java.util.Enumeration  (via asJavaEnumeration)scala.collection.mutable.Map <=> java.util.Dictionary   (via asJavaDictionary)

In addition, the following one-way conversions are provided viaasJava:

scala.collection.Seq         => java.util.Listscala.collection.mutable.Seq => java.util.Listscala.collection.Set         => java.util.Setscala.collection.Map         => java.util.Map

The following one way conversion is provided viaasScala:

java.util.Properties => scala.collection.mutable.Map

In all cases, converting from a source type to a target type and back again will return the original source object. For example:

import scala.collection.JavaConverters._val source = new scala.collection.mutable.ListBuffer[Int]val target: java.util.List[Int] = source.asJavaval other: scala.collection.mutable.Buffer[Int] = target.asScalaassert(source eq other)

Alternatively, the conversion methods have descriptive names and can be invoked explicitly.

scala> val vs = java.util.Arrays.asList("hi", "bye")vs: java.util.List[String] = [hi, bye]scala> val ss = asScalaIterator(vs.iterator)ss: Iterator[String] = <iterator>scala> .toListres0: List[String] = List(hi, bye)scala> val ss = asScalaBuffer(vs)ss: scala.collection.mutable.Buffer[String] = Buffer(hi, bye)

Attributes

Deprecated
[Since version 2.13.0]Use `scala.jdk.CollectionConverters` instead
Source
JavaConverters.scala
Supertypes
Self type

Deprecated types

typeArrayLike[A] =SeqOps[A,Seq,Seq[A]]

Attributes

Deprecated
[Since version 2.13.0]Use SeqOps (for the methods) or IndexedSeqOps (for fast indexed access) instead of ArrayLike
Source
package.scala
typeGenIterable[+X] =Iterable[X]

Attributes

Deprecated
[Since version 2.13.0]Gen* collection types have been removed
Source
package.scala
typeGenMap[K,+V] =Map[K,V]

Attributes

Deprecated
[Since version 2.13.0]Gen* collection types have been removed
Source
package.scala
typeGenSeq[+X] =Seq[X]

Attributes

Deprecated
[Since version 2.13.0]Gen* collection types have been removed
Source
package.scala
typeGenSet[X] =Set[X]

Attributes

Deprecated
[Since version 2.13.0]Gen* collection types have been removed
Source
package.scala

Attributes

Deprecated
[Since version 2.13.0]Gen* collection types have been removed
Source
package.scala

Attributes

Deprecated
[Since version 2.13.0]Gen* collection types have been removed
Source
package.scala
typeSeqLike[A,T] =SeqOps[A,Seq,T]

Attributes

Deprecated
[Since version 2.13.0]Use SeqOps instead of SeqLike
Source
package.scala
typeTraversable[+X] =Iterable[X]

Attributes

Deprecated
[Since version 2.13.0]Use Iterable instead of Traversable
Source
package.scala

Attributes

Deprecated
[Since version 2.13.0]Use IterableOnce instead of TraversableOnce
Source
package.scala

Value members

Deprecated fields

Attributes

Deprecated
[Since version 2.13.0]Gen* collection types have been removed
Source
package.scala
valGenMap:Map.type

Attributes

Deprecated
[Since version 2.13.0]Gen* collection types have been removed
Source
package.scala
valGenSeq:Seq.type

Attributes

Deprecated
[Since version 2.13.0]Gen* collection types have been removed
Source
package.scala
valGenSet:Set.type

Attributes

Deprecated
[Since version 2.13.0]Gen* collection types have been removed
Source
package.scala

Attributes

Deprecated
[Since version 2.13.0]Gen* collection types have been removed
Source
package.scala

Attributes

Deprecated
[Since version 2.13.0]Gen* collection types have been removed
Source
package.scala

Attributes

Deprecated
[Since version 2.13.0]Use Iterable instead of Traversable
Source
package.scala

Attributes

Deprecated
[Since version 2.13.0]Use IterableOnce instead of TraversableOnce
Source
package.scala
In this article
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL

[8]ページ先頭

©2009-2025 Movatter.jp