On this page
Object scala.jdk.AnyAccumulator
Supertypes | |
---|---|
Self type |
Classlikes
Source
Concrete methods
Source
A BiConsumer
that adds an element to an AnyAccumulator
, suitable for use with java.util.stream.Stream
's collect
method.
Source
def empty[A]: AnyAccumulator[A]
Source
Source
A BiConsumer
that merges AnyAccumulator
s, suitable for use with java.util.stream.Stream
's collect
method.
Source
Source
A Supplier
of AnyAccumulator
s, suitable for use with java.util.stream.Stream
's collect
method.
Source
A BiConsumer
that adds a Double
to an AnyAccumulator
, suitable for use with java.util.stream.Stream
's collect
method.
Source
A BiConsumer
that adds an Int
to an AnyAccumulator
, suitable for use with java.util.stream.Stream
's collect
method.
Source
A BiConsumer
that adds a Long
to an AnyAccumulator
, suitable for use with java.util.stream.Stream
's collect
method.
Inherited methods
Source
def apply[A](elems: A*): AnyAccumulator[A]
Creates a collection with the specified elements.
Type parameters |
|
---|---|
Value parameters |
|
Returns | a new collection with elements |
Inherited from | IterableFactory |
Source
Concatenates all argument collections into a single collection.
Value parameters |
|
---|---|
Returns | the concatenation of all the collections. |
Inherited from | IterableFactory |
Source
def fill[A](n1: Int, n2: Int, n3: Int, n4: Int, n5: Int)(elem: => A): AnyAccumulator[AnyAccumulator[AnyAccumulator[AnyAccumulator[AnyAccumulator[A]]]]]
Produces a five-dimensional collection containing the results of some element computation a number of times.
Value parameters |
|
---|---|
Returns | A collection that contains the results of |
Inherited from | IterableFactory |
Source
def fill[A](n1: Int, n2: Int, n3: Int, n4: Int)(elem: => A): AnyAccumulator[AnyAccumulator[AnyAccumulator[AnyAccumulator[A]]]]
Produces a four-dimensional collection containing the results of some element computation a number of times.
Value parameters |
|
---|---|
Returns | A collection that contains the results of |
Inherited from | IterableFactory |
Source
def fill[A](n1: Int, n2: Int, n3: Int)(elem: => A): AnyAccumulator[AnyAccumulator[AnyAccumulator[A]]]
Produces a three-dimensional collection containing the results of some element computation a number of times.
Value parameters |
|
---|---|
Returns | A collection that contains the results of |
Inherited from | IterableFactory |
Source
Produces a two-dimensional collection containing the results of some element computation a number of times.
Value parameters |
|
---|---|
Returns | A collection that contains the results of |
Inherited from | IterableFactory |
Source
Produces a collection containing the results of some element computation a number of times.
Value parameters |
|
---|---|
Returns | A collection that contains the results of |
Inherited from | IterableFactory |
Source
Produces a collection containing repeated applications of a function to a start value.
Value parameters |
|
---|---|
Returns | a collection with |
Inherited from | IterableFactory |
Source
Produces a collection containing equally spaced values in some integer interval.
Value parameters |
|
---|---|
Returns | a collection with values |
Inherited from | IterableFactory |
Source
Produces a collection containing a sequence of increasing of integers.
Value parameters |
|
---|---|
Returns | a collection with values |
Inherited from | IterableFactory |
Source
def tabulate[A](n1: Int, n2: Int, n3: Int, n4: Int, n5: Int)(f: (Int, Int, Int, Int, Int) => A): AnyAccumulator[AnyAccumulator[AnyAccumulator[AnyAccumulator[AnyAccumulator[A]]]]]
Produces a five-dimensional collection containing values of a given function over ranges of integer values starting from 0.
Value parameters |
|
---|---|
Returns | A collection consisting of elements |
Inherited from | IterableFactory |
Source
def tabulate[A](n1: Int, n2: Int, n3: Int, n4: Int)(f: (Int, Int, Int, Int) => A): AnyAccumulator[AnyAccumulator[AnyAccumulator[AnyAccumulator[A]]]]
Produces a four-dimensional collection containing values of a given function over ranges of integer values starting from 0.
Value parameters |
|
---|---|
Returns | A collection consisting of elements |
Inherited from | IterableFactory |
Source
def tabulate[A](n1: Int, n2: Int, n3: Int)(f: (Int, Int, Int) => A): AnyAccumulator[AnyAccumulator[AnyAccumulator[A]]]
Produces a three-dimensional collection containing values of a given function over ranges of integer values starting from 0.
Value parameters |
|
---|---|
Returns | A collection consisting of elements |
Inherited from | IterableFactory |
Source
Produces a two-dimensional collection containing values of a given function over ranges of integer values starting from 0.
Value parameters |
|
---|---|
Returns | A collection consisting of elements |
Inherited from | IterableFactory |
Source
Produces a collection containing values of a given function over a range of integer values starting from 0.
Value parameters |
|
---|---|
Returns | A collection consisting of elements |
Inherited from | IterableFactory |
Source
Inherited from | SeqFactory |
---|
Source
Produces a collection that uses a function f
to produce elements of type A
and update an internal state of type S
.
Type parameters |
|
---|---|
Value parameters |
|
Returns | a collection that produces elements using |
Inherited from | IterableFactory |
Inherited implicits
Source
Inherited from | IterableFactory |
---|
© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.1.1/scala/jdk/AnyAccumulator$.html