trait Priority0FunctionExtensions extends Priority1FunctionExtensions
Ordering
- Alphabetic
- By Inheritance
Inherited
- Priority0FunctionExtensions
- Priority1FunctionExtensions
- Priority2FunctionExtensions
- Priority3FunctionExtensions
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Value Members
- implicit def enrichAsJavaBiConsumer[T, U](sf: (T, U) => Unit): RichFunction2AsBiConsumer[T, U]
- Definition Classes
- Priority2FunctionExtensions
- Annotations
- @inline()
- implicit def enrichAsJavaBiFunction[T, U, R](sf: (T, U) => R): RichFunction2AsBiFunction[T, U, R]
- Definition Classes
- Priority3FunctionExtensions
- Annotations
- @inline()
- implicit def enrichAsJavaBiPredicate[T, U](sf: (T, U) => Boolean): RichFunction2AsBiPredicate[T, U]
- Definition Classes
- Priority2FunctionExtensions
- Annotations
- @inline()
- implicit def enrichAsJavaBinaryOperator[T, A1, A2](sf: (T, A1) => A2)(implicit evA1: =:=[A1, T], evA2: =:=[A2, T]): RichFunction2AsBinaryOperator[T]
- Definition Classes
- Priority1FunctionExtensions
- Annotations
- @inline()
- implicit def enrichAsJavaBooleanSupplier(sf: () => Boolean): RichFunction0AsBooleanSupplier
- Annotations
- @inline()
- implicit def enrichAsJavaConsumer[T](sf: (T) => Unit): RichFunction1AsConsumer[T]
- Definition Classes
- Priority1FunctionExtensions
- Annotations
- @inline()
- implicit def enrichAsJavaDoubleBinaryOperator[A0, A1](sf: (A0, A1) => Double)(implicit evA0: =:=[A0, Double], evA1: =:=[A1, Double]): RichFunction2AsDoubleBinaryOperator
- Annotations
- @inline()
- implicit def enrichAsJavaDoubleConsumer[A0](sf: (A0) => Unit)(implicit evA0: =:=[A0, Double]): RichFunction1AsDoubleConsumer
- Annotations
- @inline()
- implicit def enrichAsJavaDoubleFunction[A0, R](sf: (A0) => R)(implicit evA0: =:=[A0, Double]): RichFunction1AsDoubleFunction[R]
- Definition Classes
- Priority1FunctionExtensions
- Annotations
- @inline()
- implicit def enrichAsJavaDoublePredicate[A0](sf: (A0) => Boolean)(implicit evA0: =:=[A0, Double]): RichFunction1AsDoublePredicate
- Annotations
- @inline()
- implicit def enrichAsJavaDoubleSupplier(sf: () => Double): RichFunction0AsDoubleSupplier
- Annotations
- @inline()
- implicit def enrichAsJavaDoubleToIntFunction[A0](sf: (A0) => Int)(implicit evA0: =:=[A0, Double]): RichFunction1AsDoubleToIntFunction
- Annotations
- @inline()
- implicit def enrichAsJavaDoubleToLongFunction[A0](sf: (A0) => Long)(implicit evA0: =:=[A0, Double]): RichFunction1AsDoubleToLongFunction
- Annotations
- @inline()
- implicit def enrichAsJavaDoubleUnaryOperator[A0](sf: (A0) => Double)(implicit evA0: =:=[A0, Double]): RichFunction1AsDoubleUnaryOperator
- Annotations
- @inline()
- implicit def enrichAsJavaFunction[T, R](sf: (T) => R): RichFunction1AsFunction[T, R]
- Definition Classes
- Priority2FunctionExtensions
- Annotations
- @inline()
- implicit def enrichAsJavaIntBinaryOperator[A0, A1](sf: (A0, A1) => Int)(implicit evA0: =:=[A0, Int], evA1: =:=[A1, Int]): RichFunction2AsIntBinaryOperator
- Annotations
- @inline()
- implicit def enrichAsJavaIntConsumer[A0](sf: (A0) => Unit)(implicit evA0: =:=[A0, Int]): RichFunction1AsIntConsumer
- Annotations
- @inline()
- implicit def enrichAsJavaIntFunction[A0, R](sf: (A0) => R)(implicit evA0: =:=[A0, Int]): RichFunction1AsIntFunction[R]
- Definition Classes
- Priority1FunctionExtensions
- Annotations
- @inline()
- implicit def enrichAsJavaIntPredicate[A0](sf: (A0) => Boolean)(implicit evA0: =:=[A0, Int]): RichFunction1AsIntPredicate
- Annotations
- @inline()
- implicit def enrichAsJavaIntSupplier(sf: () => Int): RichFunction0AsIntSupplier
- Annotations
- @inline()
- implicit def enrichAsJavaIntToDoubleFunction[A0](sf: (A0) => Double)(implicit evA0: =:=[A0, Int]): RichFunction1AsIntToDoubleFunction
- Annotations
- @inline()
- implicit def enrichAsJavaIntToLongFunction[A0](sf: (A0) => Long)(implicit evA0: =:=[A0, Int]): RichFunction1AsIntToLongFunction
- Annotations
- @inline()
- implicit def enrichAsJavaIntUnaryOperator[A0](sf: (A0) => Int)(implicit evA0: =:=[A0, Int]): RichFunction1AsIntUnaryOperator
- Annotations
- @inline()
- implicit def enrichAsJavaLongBinaryOperator[A0, A1](sf: (A0, A1) => Long)(implicit evA0: =:=[A0, Long], evA1: =:=[A1, Long]): RichFunction2AsLongBinaryOperator
- Annotations
- @inline()
- implicit def enrichAsJavaLongConsumer[A0](sf: (A0) => Unit)(implicit evA0: =:=[A0, Long]): RichFunction1AsLongConsumer
- Annotations
- @inline()
- implicit def enrichAsJavaLongFunction[A0, R](sf: (A0) => R)(implicit evA0: =:=[A0, Long]): RichFunction1AsLongFunction[R]
- Definition Classes
- Priority1FunctionExtensions
- Annotations
- @inline()
- implicit def enrichAsJavaLongPredicate[A0](sf: (A0) => Boolean)(implicit evA0: =:=[A0, Long]): RichFunction1AsLongPredicate
- Annotations
- @inline()
- implicit def enrichAsJavaLongSupplier(sf: () => Long): RichFunction0AsLongSupplier
- Annotations
- @inline()
- implicit def enrichAsJavaLongToDoubleFunction[A0](sf: (A0) => Double)(implicit evA0: =:=[A0, Long]): RichFunction1AsLongToDoubleFunction
- Annotations
- @inline()
- implicit def enrichAsJavaLongToIntFunction[A0](sf: (A0) => Int)(implicit evA0: =:=[A0, Long]): RichFunction1AsLongToIntFunction
- Annotations
- @inline()
- implicit def enrichAsJavaLongUnaryOperator[A0](sf: (A0) => Long)(implicit evA0: =:=[A0, Long]): RichFunction1AsLongUnaryOperator
- Annotations
- @inline()
- implicit def enrichAsJavaObjDoubleConsumer[T, A1](sf: (T, A1) => Unit)(implicit evA1: =:=[A1, Double]): RichFunction2AsObjDoubleConsumer[T]
- Definition Classes
- Priority1FunctionExtensions
- Annotations
- @inline()
- implicit def enrichAsJavaObjIntConsumer[T, A1](sf: (T, A1) => Unit)(implicit evA1: =:=[A1, Int]): RichFunction2AsObjIntConsumer[T]
- Definition Classes
- Priority1FunctionExtensions
- Annotations
- @inline()
- implicit def enrichAsJavaObjLongConsumer[T, A1](sf: (T, A1) => Unit)(implicit evA1: =:=[A1, Long]): RichFunction2AsObjLongConsumer[T]
- Definition Classes
- Priority1FunctionExtensions
- Annotations
- @inline()
- implicit def enrichAsJavaPredicate[T](sf: (T) => Boolean): RichFunction1AsPredicate[T]
- Definition Classes
- Priority1FunctionExtensions
- Annotations
- @inline()
- implicit def enrichAsJavaSupplier[T](sf: () => T): RichFunction0AsSupplier[T]
- Definition Classes
- Priority1FunctionExtensions
- Annotations
- @inline()
- implicit def enrichAsJavaToDoubleBiFunction[T, U](sf: (T, U) => Double): RichFunction2AsToDoubleBiFunction[T, U]
- Definition Classes
- Priority2FunctionExtensions
- Annotations
- @inline()
- implicit def enrichAsJavaToDoubleFunction[T](sf: (T) => Double): RichFunction1AsToDoubleFunction[T]
- Definition Classes
- Priority1FunctionExtensions
- Annotations
- @inline()
- implicit def enrichAsJavaToIntBiFunction[T, U](sf: (T, U) => Int): RichFunction2AsToIntBiFunction[T, U]
- Definition Classes
- Priority2FunctionExtensions
- Annotations
- @inline()
- implicit def enrichAsJavaToIntFunction[T](sf: (T) => Int): RichFunction1AsToIntFunction[T]
- Definition Classes
- Priority1FunctionExtensions
- Annotations
- @inline()
- implicit def enrichAsJavaToLongBiFunction[T, U](sf: (T, U) => Long): RichFunction2AsToLongBiFunction[T, U]
- Definition Classes
- Priority2FunctionExtensions
- Annotations
- @inline()
- implicit def enrichAsJavaToLongFunction[T](sf: (T) => Long): RichFunction1AsToLongFunction[T]
- Definition Classes
- Priority1FunctionExtensions
- Annotations
- @inline()
- implicit def enrichAsJavaUnaryOperator[T, A1](sf: (T) => A1)(implicit evA1: =:=[A1, T]): RichFunction1AsUnaryOperator[T]
- Definition Classes
- Priority1FunctionExtensions
- Annotations
- @inline()
- implicit def enrichAsScalaFromBiConsumer[T, U](jf: BiConsumer[T, U]): RichBiConsumerAsFunction2[T, U]
- Annotations
- @inline()
- implicit def enrichAsScalaFromBiFunction[T, U, R](jf: BiFunction[T, U, R]): RichBiFunctionAsFunction2[T, U, R]
- Annotations
- @inline()
- implicit def enrichAsScalaFromBiPredicate[T, U](jf: BiPredicate[T, U]): RichBiPredicateAsFunction2[T, U]
- Annotations
- @inline()
- implicit def enrichAsScalaFromBinaryOperator[T](jf: BinaryOperator[T]): RichBinaryOperatorAsFunction2[T]
- Annotations
- @inline()
- implicit def enrichAsScalaFromBooleanSupplier(jf: BooleanSupplier): RichBooleanSupplierAsFunction0
- Annotations
- @inline()
- implicit def enrichAsScalaFromConsumer[T](jf: Consumer[T]): RichConsumerAsFunction1[T]
- Annotations
- @inline()
- implicit def enrichAsScalaFromDoubleBinaryOperator(jf: DoubleBinaryOperator): RichDoubleBinaryOperatorAsFunction2
- Annotations
- @inline()
- implicit def enrichAsScalaFromDoubleConsumer(jf: DoubleConsumer): RichDoubleConsumerAsFunction1
- Annotations
- @inline()
- implicit def enrichAsScalaFromDoubleFunction[R](jf: DoubleFunction[R]): RichDoubleFunctionAsFunction1[R]
- Annotations
- @inline()
- implicit def enrichAsScalaFromDoublePredicate(jf: DoublePredicate): RichDoublePredicateAsFunction1
- Annotations
- @inline()
- implicit def enrichAsScalaFromDoubleSupplier(jf: DoubleSupplier): RichDoubleSupplierAsFunction0
- Annotations
- @inline()
- implicit def enrichAsScalaFromDoubleToIntFunction(jf: DoubleToIntFunction): RichDoubleToIntFunctionAsFunction1
- Annotations
- @inline()
- implicit def enrichAsScalaFromDoubleToLongFunction(jf: DoubleToLongFunction): RichDoubleToLongFunctionAsFunction1
- Annotations
- @inline()
- implicit def enrichAsScalaFromDoubleUnaryOperator(jf: DoubleUnaryOperator): RichDoubleUnaryOperatorAsFunction1
- Annotations
- @inline()
- implicit def enrichAsScalaFromFunction[T, R](jf: java.util.function.Function[T, R]): RichFunctionAsFunction1[T, R]
- Annotations
- @inline()
- implicit def enrichAsScalaFromIntBinaryOperator(jf: IntBinaryOperator): RichIntBinaryOperatorAsFunction2
- Annotations
- @inline()
- implicit def enrichAsScalaFromIntConsumer(jf: IntConsumer): RichIntConsumerAsFunction1
- Annotations
- @inline()
- implicit def enrichAsScalaFromIntFunction[R](jf: IntFunction[R]): RichIntFunctionAsFunction1[R]
- Annotations
- @inline()
- implicit def enrichAsScalaFromIntPredicate(jf: IntPredicate): RichIntPredicateAsFunction1
- Annotations
- @inline()
- implicit def enrichAsScalaFromIntSupplier(jf: IntSupplier): RichIntSupplierAsFunction0
- Annotations
- @inline()
- implicit def enrichAsScalaFromIntToDoubleFunction(jf: IntToDoubleFunction): RichIntToDoubleFunctionAsFunction1
- Annotations
- @inline()
- implicit def enrichAsScalaFromIntToLongFunction(jf: IntToLongFunction): RichIntToLongFunctionAsFunction1
- Annotations
- @inline()
- implicit def enrichAsScalaFromIntUnaryOperator(jf: IntUnaryOperator): RichIntUnaryOperatorAsFunction1
- Annotations
- @inline()
- implicit def enrichAsScalaFromLongBinaryOperator(jf: LongBinaryOperator): RichLongBinaryOperatorAsFunction2
- Annotations
- @inline()
- implicit def enrichAsScalaFromLongConsumer(jf: LongConsumer): RichLongConsumerAsFunction1
- Annotations
- @inline()
- implicit def enrichAsScalaFromLongFunction[R](jf: LongFunction[R]): RichLongFunctionAsFunction1[R]
- Annotations
- @inline()
- implicit def enrichAsScalaFromLongPredicate(jf: LongPredicate): RichLongPredicateAsFunction1
- Annotations
- @inline()
- implicit def enrichAsScalaFromLongSupplier(jf: LongSupplier): RichLongSupplierAsFunction0
- Annotations
- @inline()
- implicit def enrichAsScalaFromLongToDoubleFunction(jf: LongToDoubleFunction): RichLongToDoubleFunctionAsFunction1
- Annotations
- @inline()
- implicit def enrichAsScalaFromLongToIntFunction(jf: LongToIntFunction): RichLongToIntFunctionAsFunction1
- Annotations
- @inline()
- implicit def enrichAsScalaFromLongUnaryOperator(jf: LongUnaryOperator): RichLongUnaryOperatorAsFunction1
- Annotations
- @inline()
- implicit def enrichAsScalaFromObjDoubleConsumer[T](jf: ObjDoubleConsumer[T]): RichObjDoubleConsumerAsFunction2[T]
- Annotations
- @inline()
- implicit def enrichAsScalaFromObjIntConsumer[T](jf: ObjIntConsumer[T]): RichObjIntConsumerAsFunction2[T]
- Annotations
- @inline()
- implicit def enrichAsScalaFromObjLongConsumer[T](jf: ObjLongConsumer[T]): RichObjLongConsumerAsFunction2[T]
- Annotations
- @inline()
- implicit def enrichAsScalaFromPredicate[T](jf: Predicate[T]): RichPredicateAsFunction1[T]
- Annotations
- @inline()
- implicit def enrichAsScalaFromSupplier[T](jf: Supplier[T]): RichSupplierAsFunction0[T]
- Annotations
- @inline()
- implicit def enrichAsScalaFromToDoubleBiFunction[T, U](jf: ToDoubleBiFunction[T, U]): RichToDoubleBiFunctionAsFunction2[T, U]
- Annotations
- @inline()
- implicit def enrichAsScalaFromToDoubleFunction[T](jf: ToDoubleFunction[T]): RichToDoubleFunctionAsFunction1[T]
- Annotations
- @inline()
- implicit def enrichAsScalaFromToIntBiFunction[T, U](jf: ToIntBiFunction[T, U]): RichToIntBiFunctionAsFunction2[T, U]
- Annotations
- @inline()
- implicit def enrichAsScalaFromToIntFunction[T](jf: ToIntFunction[T]): RichToIntFunctionAsFunction1[T]
- Annotations
- @inline()
- implicit def enrichAsScalaFromToLongBiFunction[T, U](jf: ToLongBiFunction[T, U]): RichToLongBiFunctionAsFunction2[T, U]
- Annotations
- @inline()
- implicit def enrichAsScalaFromToLongFunction[T](jf: ToLongFunction[T]): RichToLongFunctionAsFunction1[T]
- Annotations
- @inline()
- implicit def enrichAsScalaFromUnaryOperator[T](jf: UnaryOperator[T]): RichUnaryOperatorAsFunction1[T]
- Annotations
- @inline()
This is the documentation for the Scala standard library.
Package structure
The scala package contains core types like
Int
,Float
,Array
orOption
which are accessible in all Scala compilation units without explicit qualification or imports.Notable packages include:
scala.collection
and its sub-packages contain Scala's collections frameworkscala.collection.immutable
- Immutable, sequential data-structures such asVector
,List
,Range
,HashMap
orHashSet
scala.collection.mutable
- Mutable, sequential data-structures such asArrayBuffer
,StringBuilder
,HashMap
orHashSet
scala.collection.concurrent
- Mutable, concurrent data-structures such asTrieMap
scala.concurrent
- Primitives for concurrent programming such asFutures
andPromises
scala.io
- Input and output operationsscala.math
- Basic math functions and additional numeric types likeBigInt
andBigDecimal
scala.sys
- Interaction with other processes and the operating systemscala.util.matching
- Regular expressionsOther packages exist. See the complete list on the right.
Additional parts of the standard library are shipped as separate libraries. These include:
scala.reflect
- Scala's reflection API (scala-reflect.jar)scala.xml
- XML parsing, manipulation, and serialization (scala-xml.jar)scala.collection.parallel
- Parallel collections (scala-parallel-collections.jar)scala.util.parsing
- Parser combinators (scala-parser-combinators.jar)scala.swing
- A convenient wrapper around Java's GUI framework called Swing (scala-swing.jar)Automatic imports
Identifiers in the scala package and the
scala.Predef
object are always in scope by default.Some of these identifiers are type aliases provided as shortcuts to commonly used classes. For example,
List
is an alias forscala.collection.immutable.List
.Other aliases refer to classes provided by the underlying platform. For example, on the JVM,
String
is an alias forjava.lang.String
.