scala.collection
Members list
Packages
Type members
Classlikes
An extractor used to head/tail deconstruct sequences.
An extractor used to head/tail deconstruct sequences.
Attributes
- Source
- package.scala
- Supertypes
- Self type
-
+:.type
An extractor used to init/last deconstruct sequences.
An extractor used to init/last deconstruct sequences.
Attributes
- Source
- package.scala
- Supertypes
- Self type
-
:+.type
Explicit instantiation of the IndexedSeqView
trait to reduce class file size in subclasses.
Explicit instantiation of the IndexedSeqView
trait to reduce class file size in subclasses.
Attributes
- Source
- IndexedSeqView.scala
- Supertypes
-
trait IndexedSeqView[A]class AbstractSeqView[A]trait SeqView[A]class AbstractView[A]trait View[A]trait Serializableclass AbstractIterable[A]trait Iterable[A]trait IterableOnce[A]class Objecttrait Matchableclass AnyShow all
- Known subtypes
Explicit instantiation of the Iterable
trait to reduce class file size in subclasses.
Explicit instantiation of the Iterable
trait to reduce class file size in subclasses.
Attributes
- Source
- Iterable.scala
- Supertypes
- Known subtypes
-
class AbstractIterable[A]class PriorityQueue[A]class IntMap[T]class LongMap[T]class LongMap[V]class SystemPropertiesclass AbstractSeq[A]class AbstractSeq[A]class ArraySeq[A]class ofBooleanclass ofByteclass ofCharclass ofDoubleclass ofFloatclass ofIntclass ofLongclass ofRef[T]class ofShortclass ofUnitclass LazyList[A]class List[A]class ::[A]object Nil.typeclass NumericRange[T]class Exclusive[T]class Inclusive[T]class Queue[A]class Rangeclass Exclusiveclass Inclusiveclass Stream[A]class Cons[A]object Empty.typeclass Vector[A]class WrappedStringclass AbstractSeq[A]class AbstractBuffer[A]class ArrayBuffer[A]class ArrayDeque[A]class Queue[A]class Stack[A]class ListBuffer[A]class UnrolledBuffer[T]class ArraySeq[T]class ofBooleanclass ofByteclass ofCharclass ofDoubleclass ofFloatclass ofIntclass ofLongclass ofRef[T]class ofShortclass ofUnitclass StringBuilderclass AbstractSet[A]class AbstractSet[A]class ImmutableKeySetclass BitSetclass BitSet1class BitSet2class BitSetNclass HashSet[A]class ListSet[A]class Set1[A]class Set2[A]class Set3[A]class Set4[A]class ImmutableKeySortedSetclass TreeSet[A]class ValueSetclass AbstractSet[A]class BitSetclass HashSet[A]class LinkedHashSet[A]class TreeSet[A]class AbstractView[A]class AbstractSeqView[A]class AbstractIndexedSeqView[A]class ArrayBufferView[A]class Slice[A]class StringViewclass Id[A]class Id[A]class Reverse[A]class Reverse[A]class Appended[A]class Appended[A]class Appended[A]class Concat[A]class Concat[A]class Concat[A]class Drop[A]class Drop[A]class Drop[A]class DropRight[A]class DropRight[A]class DropRight[A]class DropWhile[A]class Elems[A]object Empty.typeclass Fill[A]class Filter[A]class Iterate[A]class PadTo[A]class Prepended[A]class Prepended[A]class Prepended[A]class Single[A]class Tabulate[A]class Take[A]class Take[A]class Take[A]class TakeRight[A]class TakeRight[A]class TakeRight[A]class TakeWhile[A]class Updated[A]class ZipWithIndex[A]Show all
Explicit instantiation of the Iterator
trait to reduce class file size in subclasses.
Explicit instantiation of the Iterator
trait to reduce class file size in subclasses.
Attributes
- Source
- Iterator.scala
- Supertypes
- Known subtypes
Explicit instantiation of the Map
trait to reduce class file size in subclasses.
Explicit instantiation of the Map
trait to reduce class file size in subclasses.
Attributes
Explicit instantiation of the MapView
trait to reduce class file size in subclasses.
Explicit instantiation of the MapView
trait to reduce class file size in subclasses.
Attributes
- Source
- MapView.scala
- Supertypes
- Known subtypes
-
Explicit instantiation of the Seq
trait to reduce class file size in subclasses.
Explicit instantiation of the Seq
trait to reduce class file size in subclasses.
Attributes
- Source
- Seq.scala
- Supertypes
-
trait Seq[A]trait Equalsclass AbstractIterable[A]trait Iterable[A]trait IterableOnce[A]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class AbstractSeq[A]class ArraySeq[A]class ofBooleanclass ofByteclass ofCharclass ofDoubleclass ofFloatclass ofIntclass ofLongclass ofRef[T]class ofShortclass ofUnitclass LazyList[A]class List[A]class ::[A]object Nil.typeclass NumericRange[T]class Exclusive[T]class Inclusive[T]class Queue[A]class Rangeclass Exclusiveclass Inclusiveclass Stream[A]class Cons[A]object Empty.typeclass Vector[A]class WrappedStringclass AbstractSeq[A]class AbstractBuffer[A]class ArrayBuffer[A]class ArrayDeque[A]class Queue[A]class Stack[A]class ListBuffer[A]class UnrolledBuffer[T]class ArraySeq[T]class ofBooleanclass ofByteclass ofCharclass ofDoubleclass ofFloatclass ofIntclass ofLongclass ofRef[T]class ofShortclass ofUnitclass StringBuilderShow all
Explicit instantiation of the SeqView
trait to reduce class file size in subclasses.
Explicit instantiation of the SeqView
trait to reduce class file size in subclasses.
Attributes
- Source
- SeqView.scala
- Supertypes
-
trait SeqView[A]class AbstractView[A]trait View[A]trait Serializableclass AbstractIterable[A]trait Iterable[A]trait IterableOnce[A]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class AbstractIndexedSeqView[A]class ArrayBufferView[A]class Slice[A]class StringViewclass Id[A]class Id[A]class Reverse[A]class Reverse[A]Show all
Explicit instantiation of the Set
trait to reduce class file size in subclasses.
Explicit instantiation of the Set
trait to reduce class file size in subclasses.
Attributes
- Source
- Set.scala
- Supertypes
-
trait Set[A]trait Equalsclass AbstractIterable[A]trait Iterable[A]trait IterableOnce[A]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class AbstractSet[A]class ImmutableKeySetclass BitSetclass BitSet1class BitSet2class BitSetNclass HashSet[A]class ListSet[A]class Set1[A]class Set2[A]class Set3[A]class Set4[A]class ImmutableKeySortedSetclass TreeSet[A]class ValueSetclass AbstractSet[A]class BitSetclass HashSet[A]class LinkedHashSet[A]class TreeSet[A]Show all
Explicit instantiation of the View
trait to reduce class file size in subclasses.
Explicit instantiation of the View
trait to reduce class file size in subclasses.
Attributes
- Source
- View.scala
- Supertypes
-
trait View[A]trait Serializableclass AbstractIterable[A]trait Iterable[A]trait IterableOnce[A]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class AbstractSeqView[A]class AbstractIndexedSeqView[A]class ArrayBufferView[A]class Slice[A]class StringViewclass Id[A]class Id[A]class Reverse[A]class Reverse[A]class Appended[A]class Appended[A]class Appended[A]class Concat[A]class Concat[A]class Concat[A]class Drop[A]class Drop[A]class Drop[A]class DropRight[A]class DropRight[A]class DropRight[A]class DropWhile[A]class Elems[A]object Empty.typeclass Fill[A]class Filter[A]class Iterate[A]class PadTo[A]class Prepended[A]class Prepended[A]class Prepended[A]class Single[A]class Tabulate[A]class Take[A]class Take[A]class Take[A]class TakeRight[A]class TakeRight[A]class TakeRight[A]class TakeWhile[A]class Updated[A]class ZipWithIndex[A]Show all
Attributes
- Companion
- trait
- Source
- Stepper.scala
- Supertypes
- Self type
-
AnyStepper.type
This class serves as a wrapper for Array
s with many of the operations found in indexed sequences.
This class serves as a wrapper for Array
s 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 an ArrayOps
type. It is better to work with plain Array
types instead and rely on the implicit conversion to ArrayOps
when calling a method (which does not actually allocate an instance of ArrayOps
because it is a value class).
Neither Array
nor ArrayOps
are proper collection types (i.e. they do not extend Iterable
or even IterableOnce
). mutable.ArraySeq
and immutable.ArraySeq
serve this purpose.
The difference between this class and ArraySeq
s is that calling transformer methods such as filter
and map
will yield an array, whereas an ArraySeq
will remain an ArraySeq
.
Type parameters
- A
-
type of the elements contained in this array.
Attributes
- Companion
- object
- Source
- ArrayOps.scala
- Supertypes
Base type of bitsets.
Base type of bitsets.
This trait provides most of the operations of a BitSet
independently of its representation. It is inherited by all concrete implementations of bitsets.
Attributes
- Companion
- object
- Source
- BitSet.scala
- Supertypes
- Known subtypes
Base implementation type of bitsets
Base implementation type of bitsets
Attributes
- Companion
- object
- Source
- BitSet.scala
- Supertypes
- Known subtypes
- Self type
-
BitSetOps[C]
Buffered iterators are iterators which provide a method head
that inspects the next element without discarding it.
Buffered iterators are iterators which provide a method head
that inspects the next element without discarding it.
Attributes
- Source
- BufferedIterator.scala
- Supertypes
Builds a collection of type C
from elements of type A
when a source collection of type From
is available.
Builds a collection of type C
from elements of type A
when a source collection of type From
is available. Implicit instances of BuildFrom
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
-
class Any
- Self type
-
Attributes
- Companion
- trait
- Source
- BuildFrom.scala
- Supertypes
- Self type
-
BuildFrom.type
Attributes
- Source
- BuildFrom.scala
- Supertypes
- Known subtypes
-
object BuildFrom.type
Attributes
- Source
- BuildFrom.scala
- Supertypes
- Known subtypes
-
trait BuildFromLowPriority1object BuildFrom.type
Base trait for companion objects of collections that require an implicit ClassTag
.
Base trait for companion objects of collections that require an implicit ClassTag
.
Type parameters
- CC
-
Collection type constructor (e.g.
ArraySeq
)
Attributes
- Companion
- object
- Source
- Factory.scala
- Supertypes
- Known subtypes
-
class Delegate[CC]class Delegate[CC]trait ClassTagSeqFactory[CC]trait StrictOptimizedClassTagSeqFactory[CC]object ArraySeq.typeobject ArraySeq.typeobject UnrolledBuffer.typeShow all
Attributes
- Companion
- trait
- Source
- Factory.scala
- Supertypes
- Self type
Type parameters
- CC
-
Collection type constructor (e.g.
ArraySeq
)
Attributes
- Companion
- object
- Source
- Factory.scala
- Supertypes
-
trait ClassTagIterableFactory[CC]trait Serializableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class Delegate[CC]trait StrictOptimizedClassTagSeqFactory[CC]object ArraySeq.typeobject ArraySeq.typeobject UnrolledBuffer.type
Attributes
- Companion
- trait
- Source
- Factory.scala
- Supertypes
- Self type
-
ClassTagSeqFactory.type
Attributes
- Companion
- trait
- Source
- Stepper.scala
- Supertypes
- Self type
-
DoubleStepper.type
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 (typically
Ordering
orClassTag
)
Attributes
- Companion
- object
- Source
- Factory.scala
- Supertypes
- Known subtypes
-
trait ClassTagIterableFactory[CC]class Delegate[CC]class Delegate[CC]trait ClassTagSeqFactory[CC]trait StrictOptimizedClassTagSeqFactory[CC]object ArraySeq.typeobject ArraySeq.typeobject UnrolledBuffer.typeclass Delegate[CC]object SortedSet.typeobject SortedSet.typeobject SortedSet.typetrait SortedIterableFactory[CC]object TreeSet.typeobject PriorityQueue.typeobject TreeSet.typeShow all
Attributes
- Companion
- trait
- Source
- Factory.scala
- Supertypes
- Self type
This trait provides default implementations for the factory methods fromSpecific
and newSpecificBuilder
that need to be refined when implementing a collection type that refines the CC
and C
type parameters.
This trait provides default implementations for the factory methods fromSpecific
and newSpecificBuilder
that need to be refined when implementing a collection type that refines the CC
and C
type parameters. It is used for collections that have an additional constraint, expressed by the evidenceIterableFactory
method.
The default implementations in this trait can be used in the common case when CC[A]
is the same as C
.
Attributes
- Source
- Iterable.scala
- Supertypes
- Known subtypes
A factory that builds a collection of type C
with elements of type A
.
A factory that builds a collection of type C
with elements of type A
.
This is a general form of any factory (IterableFactory, SortedIterableFactory, MapFactory and SortedMapFactory) 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
-
class Any
- Known subtypes
-
object BitSet.typeobject WrappedString.typeobject BitSet.typeobject BitSet.typeobject DoubleAccumulator.typeobject IntAccumulator.typeobject LongAccumulator.typeobject ValueSet.typeShow all
Base trait for indexed sequences that have efficient apply
and length
Base trait for indexed sequences that have efficient apply
and length
Attributes
- Companion
- object
- Source
- IndexedSeq.scala
- Supertypes
- Known subtypes
-
trait IndexedSeq[A]class ArraySeq[A]class ofBooleanclass ofByteclass ofCharclass ofDoubleclass ofFloatclass ofIntclass ofLongclass ofRef[T]class ofShortclass ofUnitclass NumericRange[T]class Exclusive[T]class Inclusive[T]class Rangeclass Exclusiveclass Inclusiveclass Vector[A]class WrappedStringtrait IndexedSeq[T]class ArraySeq[T]class ofBooleanclass ofByteclass ofCharclass ofDoubleclass ofFloatclass ofIntclass ofLongclass ofRef[T]class ofShortclass ofUnittrait IndexedBuffer[A]class ArrayBuffer[A]class ArrayDeque[A]class Queue[A]class Stack[A]class StringBuilderShow all
Attributes
- Companion
- trait
- Source
- IndexedSeq.scala
- Supertypes
-
class Delegate[IndexedSeq]trait SeqFactory[IndexedSeq]trait IterableFactory[IndexedSeq]trait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
IndexedSeq.type
Base trait for indexed Seq operations
Base trait for indexed Seq operations
Attributes
- Source
- IndexedSeq.scala
- Supertypes
-
trait IterableOnce[A]class Any
- Known subtypes
-
class ArraySeq[A]class ofBooleanclass ofByteclass ofCharclass ofDoubleclass ofFloatclass ofIntclass ofLongclass ofRef[T]class ofShortclass ofUnittrait IndexedSeq[A]class NumericRange[T]class Exclusive[T]class Inclusive[T]class Rangeclass Exclusiveclass Inclusiveclass Vector[A]class WrappedStringclass ArrayBuffer[A]class ArrayDeque[A]class Queue[A]class Stack[A]class ArraySeq[T]class ofBooleanclass ofByteclass ofCharclass ofDoubleclass ofFloatclass ofIntclass ofLongclass ofRef[T]class ofShortclass ofUnittrait IndexedBuffer[A]trait IndexedSeq[T]class StringBuildertrait IndexedSeq[A]trait IndexedSeqView[A]class AbstractIndexedSeqView[A]class ArrayBufferView[A]class Slice[A]class StringViewclass Appended[A]class Concat[A]class Drop[A]class DropRight[A]class Id[A]class Prepended[A]class Reverse[A]class Take[A]class TakeRight[A]Show all
- Self type
-
View defined in terms of indexing a range
View defined in terms of indexing a range
Attributes
- Companion
- object
- Source
- IndexedSeqView.scala
- Supertypes
-
trait SeqView[A]trait View[A]trait Serializabletrait Iterable[A]trait IterableOnce[A]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class AbstractIndexedSeqView[A]class ArrayBufferView[A]class Slice[A]class StringViewclass Appended[A]class Concat[A]class Drop[A]class DropRight[A]class Id[A]class Prepended[A]class Reverse[A]class Take[A]class TakeRight[A]Show all
- Self type
Attributes
- Companion
- trait
- Source
- IndexedSeqView.scala
- Supertypes
- Self type
-
IndexedSeqView.type
Attributes
- Companion
- trait
- Source
- Stepper.scala
- Supertypes
- Self type
-
IntStepper.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
-
trait Iterable[A]class IntMap[T]class LongMap[T]trait Seq[A]class AbstractSeq[A]class ArraySeq[A]class ofBooleanclass ofByteclass ofCharclass ofDoubleclass ofFloatclass ofIntclass ofLongclass ofRef[T]class ofShortclass ofUnitclass LazyList[A]class List[A]class ::[A]object Nil.typeclass NumericRange[T]class Exclusive[T]class Inclusive[T]class Queue[A]class Rangeclass Exclusiveclass Inclusiveclass Stream[A]class Cons[A]object Empty.typeclass Vector[A]class WrappedStringtrait IndexedSeq[A]trait LinearSeq[A]trait Set[A]class AbstractSet[A]class ImmutableKeySetclass BitSetclass BitSet1class BitSet2class BitSetNclass HashSet[A]class ListSet[A]class Set1[A]class Set2[A]class Set3[A]class Set4[A]class ImmutableKeySortedSetclass TreeSet[A]class ValueSettrait SortedSet[A]trait Iterable[A]class AbstractIterable[A]class PriorityQueue[A]class LongMap[V]class SystemPropertiestrait Seq[A]class AbstractSeq[A]class AbstractBuffer[A]class ArrayBuffer[A]class ArrayDeque[A]class Queue[A]class Stack[A]class ListBuffer[A]class UnrolledBuffer[T]class ArraySeq[T]class ofBooleanclass ofByteclass ofCharclass ofDoubleclass ofFloatclass ofIntclass ofLongclass ofRef[T]class ofShortclass ofUnitclass StringBuildertrait Buffer[A]trait IndexedBuffer[A]trait IndexedSeq[T]class AnyAccumulator[A]class DoubleAccumulatorclass IntAccumulatorclass LongAccumulatortrait Set[A]class AbstractSet[A]class BitSetclass HashSet[A]class LinkedHashSet[A]class TreeSet[A]trait SortedSet[A]class AbstractIterable[A]class AbstractSeq[A]class AbstractSet[A]class AbstractView[A]class AbstractSeqView[A]class AbstractIndexedSeqView[A]class ArrayBufferView[A]class Slice[A]class StringViewclass Id[A]class Id[A]class Reverse[A]class Reverse[A]class Appended[A]class Appended[A]class Appended[A]class Concat[A]class Concat[A]class Concat[A]class Drop[A]class Drop[A]class Drop[A]class DropRight[A]class DropRight[A]class DropRight[A]class DropWhile[A]class Elems[A]object Empty.typeclass Fill[A]class Filter[A]class Iterate[A]class PadTo[A]class Prepended[A]class Prepended[A]class Prepended[A]class Single[A]class Tabulate[A]class Take[A]class Take[A]class Take[A]class TakeRight[A]class TakeRight[A]class TakeRight[A]class TakeWhile[A]class Updated[A]class ZipWithIndex[A]trait Seq[A]trait IndexedSeq[A]trait LinearSeq[A]trait Set[A]trait SortedSet[A]trait BitSettrait View[A]trait SeqView[A]trait IndexedSeqView[A]Show all
Attributes
- Companion
- trait
- Source
- Iterable.scala
- Supertypes
- Self type
-
Iterable.type
Base trait for companion objects of unconstrained collection types that may require multiple traversals of a source collection to build a target collection CC
.
Base trait for companion objects of unconstrained collection types that may require multiple traversals of a source collection to build a target collection CC
.
Type parameters
- CC
-
Collection type constructor (e.g.
List
)
Attributes
- Companion
- object
- Source
- Factory.scala
- Supertypes
- Known subtypes
-
object HashSet.typeobject ListSet.typeobject Set.typeobject HashSet.typeobject LinkedHashSet.typeclass AnyIterableDelegate[CC]class AnySeqDelegate[CC]class Delegate[CC]object Iterable.typeobject Iterable.typeobject Set.typeobject Iterable.typeobject Set.typeobject Iterator.typetrait SeqFactory[CC]object LazyList.typeobject Stream.typeclass Delegate[CC]object IndexedSeq.typeobject LinearSeq.typeobject Seq.typeobject Buffer.typeobject IndexedBuffer.typeobject IndexedSeq.typeobject Seq.typeobject IndexedSeq.typeobject LinearSeq.typeobject Seq.typetrait StrictOptimizedSeqFactory[CC]object List.typeobject Queue.typeobject Vector.typeobject ArrayBuffer.typeobject ArrayDeque.typeobject ListBuffer.typeobject Queue.typeobject Stack.typeobject AnyAccumulator.typeobject View.typeShow all
Attributes
- Companion
- trait
- Source
- Factory.scala
- Supertypes
- Self type
-
IterableFactory.type
This trait provides default implementations for the factory methods fromSpecific
and newSpecificBuilder
that need to be refined when implementing a collection type that refines the CC
and C
type parameters.
This trait provides default implementations for the factory methods fromSpecific
and newSpecificBuilder
that need to be refined when implementing a collection type that refines the CC
and C
type parameters.
The default implementations in this trait can be used in the common case when CC[A]
is the same as C
.
Attributes
- Source
- Iterable.scala
- Supertypes
- Known subtypes
-
class HashSet[A]trait IndexedSeq[A]class ArraySeq[A]class ofBooleanclass ofByteclass ofCharclass ofDoubleclass ofFloatclass ofIntclass ofLongclass ofRef[T]class ofShortclass ofUnitclass NumericRange[T]class Exclusive[T]class Inclusive[T]class Rangeclass Exclusiveclass Inclusiveclass Vector[A]class WrappedStringtrait Iterable[A]class IntMap[T]class LongMap[T]trait Seq[A]class AbstractSeq[A]class LazyList[A]class List[A]class ::[A]object Nil.typeclass Queue[A]class Stream[A]class Cons[A]object Empty.typetrait LinearSeq[A]trait Set[A]class AbstractSet[A]class ImmutableKeySetclass BitSetclass BitSet1class BitSet2class BitSetNclass ListSet[A]class Set1[A]class Set2[A]class Set3[A]class Set4[A]class ImmutableKeySortedSetclass TreeSet[A]class ValueSettrait SortedSet[A]class ArrayBuffer[A]class ArrayDeque[A]class Queue[A]class Stack[A]trait Buffer[A]class AbstractBuffer[A]class ListBuffer[A]class UnrolledBuffer[T]trait IndexedBuffer[A]class HashSet[A]trait IndexedSeq[T]class ArraySeq[T]class ofBooleanclass ofByteclass ofCharclass ofDoubleclass ofFloatclass ofIntclass ofLongclass ofRef[T]class ofShortclass ofUnitclass StringBuildertrait Iterable[A]class AbstractIterable[A]class PriorityQueue[A]class LongMap[V]class SystemPropertiestrait Seq[A]class AbstractSeq[A]class AnyAccumulator[A]class DoubleAccumulatorclass IntAccumulatorclass LongAccumulatortrait Set[A]class AbstractSet[A]class BitSetclass LinkedHashSet[A]class TreeSet[A]trait SortedSet[A]trait IndexedSeq[A]trait Iterable[A]class AbstractIterable[A]class AbstractSeq[A]class AbstractSet[A]class AbstractView[A]class AbstractSeqView[A]class AbstractIndexedSeqView[A]class ArrayBufferView[A]class Slice[A]class StringViewclass Id[A]class Id[A]class Reverse[A]class Reverse[A]class Appended[A]class Appended[A]class Appended[A]class Concat[A]class Concat[A]class Concat[A]class Drop[A]class Drop[A]class Drop[A]class DropRight[A]class DropRight[A]class DropRight[A]class DropWhile[A]class Elems[A]object Empty.typeclass Fill[A]class Filter[A]class Iterate[A]class PadTo[A]class Prepended[A]class Prepended[A]class Prepended[A]class Single[A]class Tabulate[A]class Take[A]class Take[A]class Take[A]class TakeRight[A]class TakeRight[A]class TakeRight[A]class TakeWhile[A]class Updated[A]class ZipWithIndex[A]trait Seq[A]trait LinearSeq[A]trait Set[A]trait SortedSet[A]trait BitSettrait View[A]trait SeqView[A]trait IndexedSeqView[A]Show all
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 extend IterableOnceOps. This is different than the general design of the collections library, which uses the following pattern:
trait Seq extends Iterable with SeqOps
trait SeqOps extends IterableOps
trait IndexedSeq extends Seq with IndexedSeqOps
trait 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
-
class Any
- Known subtypes
-
trait Iterable[A]trait Iterable[A]class IntMap[T]class LongMap[T]trait Seq[A]class AbstractSeq[A]class ArraySeq[A]class ofBooleanclass ofByteclass ofCharclass ofDoubleclass ofFloatclass ofIntclass ofLongclass ofRef[T]class ofShortclass ofUnitclass LazyList[A]class List[A]class ::[A]object Nil.typeclass NumericRange[T]class Exclusive[T]class Inclusive[T]class Queue[A]class Rangeclass Exclusiveclass Inclusiveclass Stream[A]class Cons[A]object Empty.typeclass Vector[A]class WrappedStringtrait IndexedSeq[A]trait LinearSeq[A]trait Set[A]class AbstractSet[A]class ImmutableKeySetclass BitSetclass BitSet1class BitSet2class BitSetNclass HashSet[A]class ListSet[A]class Set1[A]class Set2[A]class Set3[A]class Set4[A]class ImmutableKeySortedSetclass TreeSet[A]class ValueSettrait SortedSet[A]trait Iterable[A]class AbstractIterable[A]class PriorityQueue[A]class LongMap[V]class SystemPropertiestrait Seq[A]class AbstractSeq[A]class AbstractBuffer[A]class ArrayBuffer[A]class ArrayDeque[A]class Queue[A]class Stack[A]class ListBuffer[A]class UnrolledBuffer[T]class ArraySeq[T]class ofBooleanclass ofByteclass ofCharclass ofDoubleclass ofFloatclass ofIntclass ofLongclass ofRef[T]class ofShortclass ofUnitclass StringBuildertrait Buffer[A]trait IndexedBuffer[A]trait IndexedSeq[T]class AnyAccumulator[A]class DoubleAccumulatorclass IntAccumulatorclass LongAccumulatortrait Set[A]class AbstractSet[A]class BitSetclass HashSet[A]class LinkedHashSet[A]class TreeSet[A]trait SortedSet[A]class AbstractIterable[A]class AbstractSeq[A]class AbstractSet[A]class AbstractView[A]class AbstractSeqView[A]class AbstractIndexedSeqView[A]class ArrayBufferView[A]class Slice[A]class StringViewclass Id[A]class Id[A]class Reverse[A]class Reverse[A]class Appended[A]class Appended[A]class Appended[A]class Concat[A]class Concat[A]class Concat[A]class Drop[A]class Drop[A]class Drop[A]class DropRight[A]class DropRight[A]class DropRight[A]class DropWhile[A]class Elems[A]object Empty.typeclass Fill[A]class Filter[A]class Iterate[A]class PadTo[A]class Prepended[A]class Prepended[A]class Prepended[A]class Single[A]class Tabulate[A]class Take[A]class Take[A]class Take[A]class TakeRight[A]class TakeRight[A]class TakeRight[A]class TakeWhile[A]class Updated[A]class ZipWithIndex[A]trait Seq[A]trait IndexedSeq[A]trait LinearSeq[A]trait Set[A]trait SortedSet[A]trait BitSettrait View[A]trait SeqView[A]trait IndexedSeqView[A]trait BitSetOps[C]trait Iterator[A]class AbstractIterator[A]class GroupedIterator[B]class BufferedLineIteratorclass LineIteratorclass MatchIteratortrait BufferedIterator[A]class Sourceclass BufferedSourceclass Option[A]object None.typeclass Some[A]Show all
Attributes
- Companion
- trait
- Source
- IterableOnce.scala
- Supertypes
- Self type
-
IterableOnce.type
Attributes
- Source
- IterableOnce.scala
- Supertypes
This implementation trait can be mixed into an IterableOnce
to get the basic methods that are shared between Iterator
and Iterable
.
This implementation trait can be mixed into an IterableOnce
to get the basic methods that are shared between Iterator
and Iterable
. The IterableOnce
must support multiple calls to iterator
but may or may not return the same Iterator
every time.
Attributes
- Source
- IterableOnce.scala
- Supertypes
-
class Any
- Known subtypes
-
trait Iterable[A]class IntMap[T]class LongMap[T]trait Seq[A]class AbstractSeq[A]class ArraySeq[A]class ofBooleanclass ofByteclass ofCharclass ofDoubleclass ofFloatclass ofIntclass ofLongclass ofRef[T]class ofShortclass ofUnitclass LazyList[A]class List[A]class ::[A]object Nil.typeclass NumericRange[T]class Exclusive[T]class Inclusive[T]class Queue[A]class Rangeclass Exclusiveclass Inclusiveclass Stream[A]class Cons[A]object Empty.typeclass Vector[A]class WrappedStringtrait IndexedSeq[A]trait LinearSeq[A]trait Set[A]class AbstractSet[A]class ImmutableKeySetclass BitSetclass BitSet1class BitSet2class BitSetNclass HashSet[A]class ListSet[A]class Set1[A]class Set2[A]class Set3[A]class Set4[A]class ImmutableKeySortedSetclass TreeSet[A]class ValueSettrait SortedSet[A]trait Iterable[A]class AbstractIterable[A]class PriorityQueue[A]class LongMap[V]class SystemPropertiestrait Seq[A]class AbstractSeq[A]class AbstractBuffer[A]class ArrayBuffer[A]class ArrayDeque[A]class Queue[A]class Stack[A]class ListBuffer[A]class UnrolledBuffer[T]class ArraySeq[T]class ofBooleanclass ofByteclass ofCharclass ofDoubleclass ofFloatclass ofIntclass ofLongclass ofRef[T]class ofShortclass ofUnitclass StringBuildertrait Buffer[A]trait IndexedBuffer[A]trait IndexedSeq[T]class AnyAccumulator[A]class DoubleAccumulatorclass IntAccumulatorclass LongAccumulatortrait Set[A]class AbstractSet[A]class BitSetclass HashSet[A]class LinkedHashSet[A]class TreeSet[A]trait SortedSet[A]trait Iterable[A]class AbstractIterable[A]class AbstractSeq[A]class AbstractSet[A]class AbstractView[A]class AbstractSeqView[A]class AbstractIndexedSeqView[A]class ArrayBufferView[A]class Slice[A]class StringViewclass Id[A]class Id[A]class Reverse[A]class Reverse[A]class Appended[A]class Appended[A]class Appended[A]class Concat[A]class Concat[A]class Concat[A]class Drop[A]class Drop[A]class Drop[A]class DropRight[A]class DropRight[A]class DropRight[A]class DropWhile[A]class Elems[A]object Empty.typeclass Fill[A]class Filter[A]class Iterate[A]class PadTo[A]class Prepended[A]class Prepended[A]class Prepended[A]class Single[A]class Tabulate[A]class Take[A]class Take[A]class Take[A]class TakeRight[A]class TakeRight[A]class TakeRight[A]class TakeWhile[A]class Updated[A]class ZipWithIndex[A]trait Seq[A]trait IndexedSeq[A]trait LinearSeq[A]trait Set[A]trait SortedSet[A]trait BitSettrait View[A]trait SeqView[A]trait IndexedSeqView[A]trait BitSetOps[C]trait Iterator[A]class AbstractIterator[A]class GroupedIterator[B]class BufferedLineIteratorclass LineIteratorclass MatchIteratortrait BufferedIterator[A]class Sourceclass BufferedSourceShow all
- Self type
-
IterableOnce[A]
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 the C
parameter passed to IterableOps
are the same. We cannot express this since we lack variance polymorphism. That's why we have to resort at some places to write C[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
- Known subtypes
-
trait Iterable[A]class IntMap[T]class LongMap[T]trait Seq[A]class AbstractSeq[A]class ArraySeq[A]class ofBooleanclass ofByteclass ofCharclass ofDoubleclass ofFloatclass ofIntclass ofLongclass ofRef[T]class ofShortclass ofUnitclass LazyList[A]class List[A]class ::[A]object Nil.typeclass NumericRange[T]class Exclusive[T]class Inclusive[T]class Queue[A]class Rangeclass Exclusiveclass Inclusiveclass Stream[A]class Cons[A]object Empty.typeclass Vector[A]class WrappedStringtrait IndexedSeq[A]trait LinearSeq[A]trait Set[A]class AbstractSet[A]class ImmutableKeySetclass BitSetclass BitSet1class BitSet2class BitSetNclass HashSet[A]class ListSet[A]class Set1[A]class Set2[A]class Set3[A]class Set4[A]class ImmutableKeySortedSetclass TreeSet[A]class ValueSettrait SortedSet[A]trait Iterable[A]class AbstractIterable[A]class PriorityQueue[A]class LongMap[V]class SystemPropertiestrait Seq[A]class AbstractSeq[A]class AbstractBuffer[A]class ArrayBuffer[A]class ArrayDeque[A]class Queue[A]class Stack[A]class ListBuffer[A]class UnrolledBuffer[T]class ArraySeq[T]class ofBooleanclass ofByteclass ofCharclass ofDoubleclass ofFloatclass ofIntclass ofLongclass ofRef[T]class ofShortclass ofUnitclass StringBuildertrait Buffer[A]trait IndexedBuffer[A]trait IndexedSeq[T]class AnyAccumulator[A]class DoubleAccumulatorclass IntAccumulatorclass LongAccumulatortrait Set[A]class AbstractSet[A]class BitSetclass HashSet[A]class LinkedHashSet[A]class TreeSet[A]trait SortedSet[A]trait Iterable[A]class AbstractIterable[A]class AbstractSeq[A]class AbstractSet[A]class AbstractView[A]class AbstractSeqView[A]class AbstractIndexedSeqView[A]class ArrayBufferView[A]class Slice[A]class StringViewclass Id[A]class Id[A]class Reverse[A]class Reverse[A]class Appended[A]class Appended[A]class Appended[A]class Concat[A]class Concat[A]class Concat[A]class Drop[A]class Drop[A]class Drop[A]class DropRight[A]class DropRight[A]class DropRight[A]class DropWhile[A]class Elems[A]object Empty.typeclass Fill[A]class Filter[A]class Iterate[A]class PadTo[A]class Prepended[A]class Prepended[A]class Prepended[A]class Single[A]class Tabulate[A]class Take[A]class Take[A]class Take[A]class TakeRight[A]class TakeRight[A]class TakeRight[A]class TakeWhile[A]class Updated[A]class ZipWithIndex[A]trait Seq[A]trait IndexedSeq[A]trait LinearSeq[A]trait Set[A]trait SortedSet[A]trait BitSettrait View[A]trait SeqView[A]trait IndexedSeqView[A]trait BitSetOps[C]Show all
Attributes
- Companion
- trait
- Source
- Iterable.scala
- Supertypes
- Self type
-
IterableOps.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 a hasNext
method for checking if there is a next element available, and a next
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
and hasNext
.
Both these methods can be called any number of times without having to discard the iterator. Note that even hasNext
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
- Known subtypes
-
class AbstractIterator[A]class GroupedIterator[B]class BufferedLineIteratorclass LineIteratorclass MatchIteratortrait BufferedIterator[A]class Sourceclass BufferedSourceShow all
- Self type
-
Iterator[A]
Attributes
- Companion
- trait
- Source
- Iterator.scala
- Supertypes
- Self type
-
Iterator.type
Decorator representing lazily zipped pairs.
Decorator representing lazily zipped pairs.
Attributes
- Companion
- object
- Source
- LazyZipOps.scala
- Supertypes
Decorator representing lazily zipped triples.
Decorator representing lazily zipped triples.
Attributes
- Companion
- object
- Source
- LazyZipOps.scala
- Supertypes
Decorator representing lazily zipped 4-tuples.
Decorator representing lazily zipped 4-tuples.
Attributes
- Companion
- object
- Source
- LazyZipOps.scala
- Supertypes
Base trait for linearly accessed sequences that have efficient head
and tail
operations.
Base trait for linearly accessed sequences that have efficient head
and tail
operations. Known subclasses: List, LazyList
Attributes
- Companion
- object
- Source
- LinearSeq.scala
- Supertypes
- Known subtypes
Attributes
- Companion
- trait
- Source
- LinearSeq.scala
- Supertypes
-
trait SeqFactory[LinearSeq]trait IterableFactory[LinearSeq]trait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
LinearSeq.type
Base trait for linear Seq operations
Base trait for linear Seq operations
Attributes
- Source
- LinearSeq.scala
- Supertypes
-
trait IterableOnce[A]class Any
- Known subtypes
Attributes
- Companion
- trait
- Source
- Stepper.scala
- Supertypes
- Self type
-
LongStepper.type
Base Map type
Base Map type
Attributes
This object provides a set of operations to create Iterable
values.
Attributes
- Companion
- object
- Source
- Factory.scala
- Supertypes
- Known subtypes
-
object TrieMap.typeobject HashMap.typeobject ListMap.typeobject Map.typeobject SeqMap.typeobject TreeSeqMap.typeobject VectorMap.typeobject HashMap.typeobject LinkedHashMap.typeobject ListMap.typeobject OpenHashMap.typeobject WeakHashMap.typeclass Delegate[C]object Map.typeobject SeqMap.typeobject Map.typeobject SeqMap.typetrait MapViewFactoryobject MapView.typeShow all
Attributes
- Companion
- trait
- Source
- Factory.scala
- Supertypes
- Self type
-
MapFactory.type
This trait provides default implementations for the factory methods fromSpecific
and newSpecificBuilder
that need to be refined when implementing a collection type that refines the CC
and C
type parameters.
This trait provides default implementations for the factory methods fromSpecific
and newSpecificBuilder
that need to be refined when implementing a collection type that refines the CC
and C
type parameters. It is used for maps.
Note that in maps, the CC
type of the map is not the same as the CC
type for the underlying iterable (which is fixed to Map
in MapOps). This trait has therefore two type parameters CC
and WithFilterCC
. The withFilter
method inherited from IterableOps
is overridden with a compatible default implementation.
The default implementations in this trait can be used in the common case when CC[A]
is the same as C
.
Attributes
- Source
- Iterable.scala
- Supertypes
- Known subtypes
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
Attributes
- Companion
- object
- Source
- MapView.scala
- Supertypes
- Known subtypes
-
Show all
Attributes
- Companion
- trait
- Source
- MapView.scala
- Supertypes
-
trait MapViewFactorytrait MapFactory[<none>]trait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
MapView.type
Attributes
- Source
- MapView.scala
- Supertypes
- Known subtypes
-
object MapView.type
Attributes
- Source
- Searching.scala
- Supertypes
- Self type
-
Searching.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
- Known subtypes
-
trait Seq[A]class AbstractSeq[A]class ArraySeq[A]class ofBooleanclass ofByteclass ofCharclass ofDoubleclass ofFloatclass ofIntclass ofLongclass ofRef[T]class ofShortclass ofUnitclass LazyList[A]class List[A]class ::[A]object Nil.typeclass NumericRange[T]class Exclusive[T]class Inclusive[T]class Queue[A]class Rangeclass Exclusiveclass Inclusiveclass Stream[A]class Cons[A]object Empty.typeclass Vector[A]class WrappedStringtrait IndexedSeq[A]trait LinearSeq[A]trait Seq[A]class AbstractSeq[A]class AbstractBuffer[A]class ArrayBuffer[A]class ArrayDeque[A]class Queue[A]class Stack[A]class ListBuffer[A]class UnrolledBuffer[T]class ArraySeq[T]class ofBooleanclass ofByteclass ofCharclass ofDoubleclass ofFloatclass ofIntclass ofLongclass ofRef[T]class ofShortclass ofUnitclass StringBuildertrait Buffer[A]trait IndexedBuffer[A]trait IndexedSeq[T]class AnyAccumulator[A]class DoubleAccumulatorclass IntAccumulatorclass LongAccumulatorclass AbstractSeq[A]trait IndexedSeq[A]trait LinearSeq[A]Show all
This object provides a set of operations to create Iterable
values.
This object provides a set of operations to create Iterable
values.
Attributes
- Companion
- trait
- Source
- Seq.scala
- Supertypes
-
trait SeqFactory[Seq]trait IterableFactory[Seq]trait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
Seq.type
Type parameters
- CC
-
Collection type constructor (e.g.
List
)
Attributes
- Companion
- object
- Source
- Factory.scala
- Supertypes
- Known subtypes
-
object LazyList.typeobject Stream.typeclass AnySeqDelegate[CC]class Delegate[CC]object IndexedSeq.typeobject LinearSeq.typeobject Seq.typeobject Buffer.typeobject IndexedBuffer.typeobject IndexedSeq.typeobject Seq.typeobject IndexedSeq.typeobject LinearSeq.typeobject Seq.typetrait StrictOptimizedSeqFactory[CC]object List.typeobject Queue.typeobject Vector.typeobject ArrayBuffer.typeobject ArrayDeque.typeobject ListBuffer.typeobject Queue.typeobject Stack.typeobject AnyAccumulator.typeShow all
Attributes
- Companion
- trait
- Source
- Factory.scala
- Supertypes
- Self type
-
SeqFactory.type
A generic trait for ordered maps.
A generic trait for ordered maps. Concrete classes have to provide functionality for the abstract methods in SeqMap
.
Note that when checking for equality SeqMap 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
Attributes
- Companion
- trait
- Source
- SeqMap.scala
- Supertypes
- Self type
-
SeqMap.type
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
- Known subtypes
-
class ArraySeq[A]class ofBooleanclass ofByteclass ofCharclass ofDoubleclass ofFloatclass ofIntclass ofLongclass ofRef[T]class ofShortclass ofUnittrait IndexedSeq[A]class NumericRange[T]class Exclusive[T]class Inclusive[T]class Rangeclass Exclusiveclass Inclusiveclass Vector[A]class WrappedStringclass LazyList[A]trait LinearSeq[A]class List[A]class ::[A]object Nil.typeclass Queue[A]class Stream[A]class Cons[A]object Empty.typetrait Seq[A]class AbstractSeq[A]trait Buffer[A]class AbstractBuffer[A]class ArrayBuffer[A]class ArrayDeque[A]class Queue[A]class Stack[A]class ListBuffer[A]class UnrolledBuffer[T]trait IndexedBuffer[A]class ArraySeq[T]class ofBooleanclass ofByteclass ofCharclass ofDoubleclass ofFloatclass ofIntclass ofLongclass ofRef[T]class ofShortclass ofUnittrait IndexedSeq[T]class StringBuildertrait Seq[A]class AbstractSeq[A]class AnyAccumulator[A]class DoubleAccumulatorclass IntAccumulatorclass LongAccumulatortrait IndexedSeq[A]trait IndexedSeqView[A]class AbstractIndexedSeqView[A]class ArrayBufferView[A]class Slice[A]class StringViewclass Appended[A]class Concat[A]class Drop[A]class DropRight[A]class Id[A]class Prepended[A]class Reverse[A]class Take[A]class TakeRight[A]trait LinearSeq[A]trait Seq[A]class AbstractSeq[A]trait SeqView[A]class AbstractSeqView[A]class Id[A]class Reverse[A]class Appended[A]class Concat[A]class Drop[A]class DropRight[A]class Prepended[A]class Take[A]class TakeRight[A]Show all
- Self type
-
Attributes
- Companion
- object
- Source
- SeqView.scala
- Supertypes
-
trait View[A]trait Serializabletrait Iterable[A]trait IterableOnce[A]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class AbstractSeqView[A]class AbstractIndexedSeqView[A]class ArrayBufferView[A]class Slice[A]class StringViewclass Id[A]class Id[A]class Reverse[A]class Reverse[A]trait IndexedSeqView[A]class Appended[A]class Concat[A]class Drop[A]class DropRight[A]class Prepended[A]class Take[A]class TakeRight[A]class Appended[A]class Concat[A]class Drop[A]class DropRight[A]class Prepended[A]class Take[A]class TakeRight[A]Show all
Base trait for set collections.
Base trait for set collections.
Attributes
- Companion
- object
- Source
- Set.scala
- Supertypes
- Known subtypes
-
trait Set[A]class AbstractSet[A]class ImmutableKeySetclass BitSetclass BitSet1class BitSet2class BitSetNclass HashSet[A]class ListSet[A]class Set1[A]class Set2[A]class Set3[A]class Set4[A]class ImmutableKeySortedSetclass TreeSet[A]class ValueSettrait SortedSet[A]trait Set[A]class AbstractSet[A]class BitSetclass HashSet[A]class LinkedHashSet[A]class TreeSet[A]trait SortedSet[A]class AbstractSet[A]trait SortedSet[A]trait BitSetShow all
This object provides a set of operations to create Iterable
values.
Base trait for set operations
Base trait for set operations
Attributes
- Source
- Set.scala
- Supertypes
- Known subtypes
-
trait Set[A]class AbstractSet[A]class ImmutableKeySetclass BitSetclass BitSet1class BitSet2class BitSetNclass HashSet[A]class ListSet[A]class Set1[A]class Set2[A]class Set3[A]class Set4[A]class ImmutableKeySortedSetclass TreeSet[A]class ValueSettrait SortedSet[A]class HashSet[A]class LinkedHashSet[A]trait Set[A]class AbstractSet[A]class BitSetclass TreeSet[A]trait SortedSet[A]trait Set[A]class AbstractSet[A]trait SortedSet[A]trait BitSettrait BitSetOps[C]Show all
Base trait for companion objects of collections that require an implicit Ordering
.
Base trait for companion objects of collections that require an implicit Ordering
.
Type parameters
- CC
-
Collection type constructor (e.g.
SortedSet
)
Attributes
- Companion
- object
- Source
- Factory.scala
- Supertypes
- Known subtypes
Attributes
- Companion
- trait
- Source
- Factory.scala
- Supertypes
- Self type
A Map whose keys are sorted according to a scala.math.Ordering
A Map whose keys are sorted according to a scala.math.Ordering
Attributes
Attributes
- Companion
- trait
- Source
- SortedMap.scala
- Supertypes
-
trait SortedMapFactory[SortedMap]trait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
SortedMap.type
Attributes
- Companion
- object
- Source
- Factory.scala
- Supertypes
- Known subtypes
Attributes
- Companion
- trait
- Source
- Factory.scala
- Supertypes
- Self type
-
SortedMapFactory.type
This trait provides default implementations for the factory methods fromSpecific
and newSpecificBuilder
that need to be refined when implementing a collection type that refines the CC
and C
type parameters.
This trait provides default implementations for the factory methods fromSpecific
and newSpecificBuilder
that need to be refined when implementing a collection type that refines the CC
and C
type parameters. It is used for sorted maps.
Note that in sorted maps, the CC
type of the map is not the same as the CC
type for the underlying map (which is fixed to Map
in SortedMapOps). This trait has therefore three type parameters CC
, WithFilterCC
and UnsortedCC
. The withFilter
method inherited from IterableOps
is overridden with a compatible default implementation.
The default implementations in this trait can be used in the common case when CC[A]
is the same as C
.
Attributes
- Source
- Iterable.scala
- Supertypes
- Known subtypes
-
Show all
- Self type
-
Attributes
- Companion
- object
- Source
- SortedMap.scala
- Supertypes
- Known subtypes
-
Show all
Attributes
- Companion
- trait
- Source
- SortedMap.scala
- Supertypes
- Self type
-
SortedMapOps.type
Base trait for sorted collections
Base trait for sorted collections
Attributes
Base type of sorted sets
Base type of sorted sets
Attributes
- Companion
- object
- Source
- SortedSet.scala
- Supertypes
- Known subtypes
Attributes
- Companion
- trait
- Source
- SortedSet.scala
- Supertypes
-
trait SortedIterableFactory[SortedSet]trait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
SortedSet.type
This trait provides default implementations for the factory methods fromSpecific
and newSpecificBuilder
that need to be refined when implementing a collection type that refines the CC
and C
type parameters.
This trait provides default implementations for the factory methods fromSpecific
and newSpecificBuilder
that need to be refined when implementing a collection type that refines the CC
and C
type parameters. It is used for sorted sets.
Note that in sorted sets, the CC
type of the set is not the same as the CC
type for the underlying iterable (which is fixed to Set
in SortedSetOps). This trait has therefore two type parameters CC
and WithFilterCC
. The withFilter
method inherited from IterableOps
is overridden with a compatible default implementation.
The default implementations in this trait can be used in the common case when CC[A]
is the same as C
.
Attributes
- Source
- Iterable.scala
- Supertypes
-