Spec-Zone.ru › Scala 2.13 Library

Объект scala.jdk.FunctionWrappers

объект FunctionWrappers

Источник
FunctionWrappers.scala
Линейные надтипы
AnyRef, Any

Члены типа

case class AsJavaBiConsumer[T, U](sf: (T, U) => Unit) extends BiConsumer[T, U] with Product with Serializable

case class AsJavaBiFunction[T, U, R](sf: (T, U) => R) extends BiFunction[T, U, R] with Product with Serializable

case class AsJavaBiPredicate[T, U](sf: (T, U) => Boolean) extends BiPredicate[T, U] with Product with Serializable

case class AsJavaBinaryOperator[T](sf: (T, T) => T) extends BinaryOperator[T] with Product with Serializable

case class AsJavaBooleanSupplier(sf: () => Boolean) extends BooleanSupplier with Product with Serializable

case class AsJavaConsumer[T](sf: (T) => Unit) extends Consumer[T] with Product with Serializable

case class AsJavaDoubleBinaryOperator(sf: (Double, Double) => Double) extends DoubleBinaryOperator with Product with Serializable

case class AsJavaDoubleConsumer(sf: (Double) => Unit) extends DoubleConsumer with Product with Serializable

case class AsJavaDoubleFunction[R](sf: (Double) => R) extends DoubleFunction[R] with Product with Serializable

case class AsJavaDoublePredicate(sf: (Double) => Boolean) extends DoublePredicate with Product with Serializable

case class AsJavaDoubleSupplier(sf: () => Double) extends DoubleSupplier with Product with Serializable

case class AsJavaDoubleToIntFunction(sf: (Double) => Int) extends DoubleToIntFunction with Product with Serializable

case class AsJavaDoubleToLongFunction(sf: (Double) => Long) extends DoubleToLongFunction with Product with Serializable

case class AsJavaDoubleUnaryOperator(sf: (Double) => Double) extends DoubleUnaryOperator with Product with Serializable

case class AsJavaFunction[T, R](sf: (T) => R) extends java.util.function.Function[T, R] with Product with Serializable

case class AsJavaIntBinaryOperator(sf: (Int, Int) => Int) extends IntBinaryOperator with Product with Serializable

case class AsJavaIntConsumer(sf: (Int) => Unit) extends IntConsumer with Product with Serializable

case class AsJavaIntFunction[R](sf: (Int) => R) extends IntFunction[R] with Product with Serializable

case class AsJavaIntPredicate(sf: (Int) => Boolean) extends IntPredicate with Product with Serializable

case class AsJavaIntSupplier(sf: () => Int) extends IntSupplier with Product with Serializable

case class AsJavaIntToDoubleFunction(sf: (Int) => Double) extends IntToDoubleFunction with Product with Serializable

case class AsJavaIntToLongFunction(sf: (Int) => Long) extends IntToLongFunction with Product with Serializable

case class AsJavaIntUnaryOperator(sf: (Int) => Int) extends IntUnaryOperator with Product with Serializable

case class AsJavaLongBinaryOperator(sf: (Long, Long) => Long) extends LongBinaryOperator with Product with Serializable

case class AsJavaLongConsumer(sf: (Long) => Unit) extends LongConsumer with Product with Serializable

case class AsJavaLongFunction[R](sf: (Long) => R) extends LongFunction[R] with Product with Serializable

case class AsJavaLongPredicate(sf: (Long) => Boolean) extends LongPredicate with Product with Serializable

case class AsJavaLongSupplier(sf: () => Long) extends LongSupplier with Product with Serializable

case class AsJavaLongToDoubleFunction(sf: (Long) => Double) extends LongToDoubleFunction with Product with Serializable

case class AsJavaLongToIntFunction(sf: (Long) => Int) extends LongToIntFunction with Product with Serializable

case class AsJavaLongUnaryOperator(sf: (Long) => Long) extends LongUnaryOperator with Product with Serializable

case class AsJavaObjDoubleConsumer[T](sf: (T, Double) => Unit) extends ObjDoubleConsumer[T] with Product with Serializable

case class AsJavaObjIntConsumer[T](sf: (T, Int) => Unit) extends ObjIntConsumer[T] with Product with Serializable

case class AsJavaObjLongConsumer[T](sf: (T, Long) => Unit) extends ObjLongConsumer[T] with Product with Serializable

case class AsJavaPredicate[T](sf: (T) => Boolean) extends Predicate[T] with Product with Serializable

case class AsJavaSupplier[T](sf: () => T) extends Supplier[T] with Product with Serializable

case class AsJavaToDoubleBiFunction[T, U](sf: (T, U) => Double) extends ToDoubleBiFunction[T, U] with Product with Serializable

case class AsJavaToDoubleFunction[T](sf: (T) => Double) extends ToDoubleFunction[T] with Product with Serializable

case class AsJavaToIntBiFunction[T, U](sf: (T, U) => Int) extends ToIntBiFunction[T, U] with Product with Serializable

case class AsJavaToIntFunction[T](sf: (T) => Int) extends ToIntFunction[T] with Product with Serializable

case class AsJavaToLongBiFunction[T, U](sf: (T, U) => Long) extends ToLongBiFunction[T, U] with Product with Serializable

case class AsJavaToLongFunction[T](sf: (T) => Long) extends ToLongFunction[T] with Product with Serializable

case class AsJavaUnaryOperator[T](sf: (T) => T) extends UnaryOperator[T] with Product with Serializable

case class FromJavaBiConsumer[T, U](jf: BiConsumer[T, U]) extends (T, U) => Единица with Product with Serializable

case class FromJavaBiFunction[T, U, R](jf: BiFunction[T, U, R]) extends (T, U) => R with Product with Serializable

case class FromJavaBiPredicate[T, U](jf: BiPredicate[T, U]) extends (T, U) => Boolean with Product with Serializable

case class FromJavaBinaryOperator[T](jf: BinaryOperator[T]) extends (T, T) => T with Product with Serializable

класс-объект FromJavaBooleanSupplier(jf: BooleanSupplier) extends () => Boolean с Product с Serializable

класс-объект FromJavaConsumer[T](jf: Consumer[T]) extends (T) => Единица с Product с Serializable

класс-объект FromJavaDoubleBinaryOperator(jf: DoubleBinaryOperator) extends (Double, Double) => Double с Product с Serializable

класс-объект FromJavaDoubleConsumer(jf: DoubleConsumer) extends (Double) => Единица с Product с Serializable

класс-объект FromJavaDoubleFunction[R](jf: DoubleFunction[R]) extends (Double) => R с Product с Serializable

класс-объект FromJavaDoublePredicate(jf: DoublePredicate) extends (Double) => Boolean с Product с Serializable

класс-объект FromJavaDoubleSupplier(jf: DoubleSupplier) extends () => Double с Product с Serializable

класс-объект FromJavaDoubleToIntFunction(jf: DoubleToIntFunction) extends (Double) => Integer с Product с Serializable

класс-объект FromJavaDoubleToLongFunction(jf: DoubleToLongFunction) extends (Double) => Long с Product с Serializable

класс-объект FromJavaDoubleUnaryOperator(jf: DoubleUnaryOperator) extends (Double) => Double с Product с Serializable

класс-объект FromJavaFunction[T, R](jf: java.util.function.Function[T, R]) extends (T) => R с Product с Serializable

класс-объект FromJavaIntBinaryOperator(jf: IntBinaryOperator) extends (Integer, Integer) => Integer с Product с Serializable

класс-объект FromJavaIntConsumer(jf: IntConsumer) extends (Integer) => Единица с Product с Serializable

case class FromJavaIntFunction[R](jf: IntFunction[R]) extends (Int) => R with Product with Serializable

case class FromJavaIntPredicate(jf: IntPredicate) extends (Int) => Boolean with Product with Serializable

case class FromJavaIntSupplier(jf: IntSupplier) extends () => Int with Product with Serializable

case class FromJavaIntToDoubleFunction(jf: IntToDoubleFunction) extends (Int) => Double with Product with Serializable

case class FromJavaIntToLongFunction(jf: IntToLongFunction) extends (Int) => Long with Product with Serializable

case class FromJavaIntUnaryOperator(jf: IntUnaryOperator) extends (Int) => Int with Product with Serializable

case class FromJavaLongBinaryOperator(jf: LongBinaryOperator) extends (Long, Long) => Long with Product with Serializable

case class FromJavaLongConsumer(jf: LongConsumer) extends (Long) => Единица with Product with Serializable

case class FromJavaLongFunction[R](jf: LongFunction[R]) extends (Long) => R with Product with Serializable

case class FromJavaLongPredicate(jf: LongPredicate) extends (Long) => Boolean with Product with Serializable

case class FromJavaLongSupplier(jf: LongSupplier) extends () => Long with Product with Serializable

case class FromJavaLongToDoubleFunction(jf: LongToDoubleFunction) extends (Long) => Double with Product with Serializable

case class FromJavaLongToIntFunction(jf: LongToIntFunction) extends (Long) => Int with Product with Serializable

case class FromJavaLongUnaryOperator(jf: LongUnaryOperator) extends (Long) => Long with Product with Serializable

case class FromJavaObjDoubleConsumer[T](jf: ObjDoubleConsumer[T]) extends (T, Double) => Unit with Product with Serializable

case class FromJavaObjIntConsumer[T](jf: ObjIntConsumer[T]) extends (T, Int) => Unit with Product with Serializable

case class FromJavaObjLongConsumer[T](jf: ObjLongConsumer[T]) extends (T, Long) => Unit with Product with Serializable

case class FromJavaPredicate[T](jf: Predicate[T]) extends (T) => Boolean with Product with Serializable

case class FromJavaSupplier[T](jf: Supplier[T]) extends () => T with Product with Serializable

case class FromJavaToDoubleBiFunction[T, U](jf: ToDoubleBiFunction[T, U]) extends (T, U) => Double with Product with Serializable

case class FromJavaToDoubleFunction[T](jf: ToDoubleFunction[T]) extends (T) => Double with Product with Serializable

case class FromJavaToIntBiFunction[T, U](jf: ToIntBiFunction[T, U]) extends (T, U) => Int with Product with Serializable

case class FromJavaToIntFunction[T](jf: ToIntFunction[T]) extends (T) => Int with Product with Serializable

case class FromJavaToLongBiFunction[T, U](jf: ToLongBiFunction[T, U]) extends (T, U) => Long with Product with Serializable

case class FromJavaToLongFunction[T](jf: ToLongFunction[T]) extends (T) => Long with Product with Serializable

case class FromJavaUnaryOperator[T](jf: UnaryOperator[T]) extends (T) => T with Product with Serializable

final class RichBiConsumerAsFunction2[T, U] extends AnyVal

final class RichBiFunctionAsFunction2[T, U, R] extends AnyVal

final class RichBiPredicateAsFunction2[T, U] extends AnyVal

final class RichBinaryOperatorAsFunction2[T] extends AnyVal

final class RichBooleanSupplierAsFunction0 extends AnyVal

final class RichConsumerAsFunction1[T] extends AnyVal

final class RichDoubleBinaryOperatorAsFunction2 extends AnyVal

final class RichDoubleConsumerAsFunction1 extends AnyVal

final class RichDoubleFunctionAsFunction1[R] extends AnyVal

final class RichDoublePredicateAsFunction1 extends AnyVal

final class RichDoubleSupplierAsFunction0 extends AnyVal

final class RichDoubleToIntFunctionAsFunction1 extends AnyVal

final class RichDoubleToLongFunctionAsFunction1 extends AnyVal

final class RichDoubleUnaryOperatorAsFunction1 extends AnyVal

final class RichFunction0AsBooleanSupplier extends AnyVal

final class RichFunction0AsDoubleSupplier extends AnyVal

final class RichFunction0AsIntSupplier extends AnyVal

final class RichFunction0AsLongSupplier extends AnyVal

final class RichFunction0AsSupplier[T] extends AnyVal

final class RichFunction1AsConsumer[T] extends AnyVal

final class RichFunction1AsDoubleConsumer extends AnyVal

final class RichFunction1AsDoubleFunction[R] extends AnyVal

final class RichFunction1AsDoublePredicate extends AnyVal

final class RichFunction1AsDoubleToIntFunction extends AnyVal

final class RichFunction1AsDoubleToLongFunction extends AnyVal

final class RichFunction1AsDoubleUnaryOperator extends AnyVal

final class RichFunction1AsFunction[T, R] extends AnyVal

final class RichFunction1AsIntConsumer extends AnyVal

final class RichFunction1AsIntFunction[R] extends AnyVal

final class RichFunction1AsIntPredicate extends AnyVal

final class RichFunction1AsIntToDoubleFunction extends AnyVal

final class RichFunction1AsIntToLongFunction extends AnyVal

final class RichFunction1AsIntUnaryOperator extends AnyVal

final class RichFunction1AsLongConsumer extends AnyVal

final class RichFunction1AsLongFunction[R] extends AnyVal

final class RichFunction1AsLongPredicate extends AnyVal

final class RichFunction1AsLongToDoubleFunction extends AnyVal

final class RichFunction1AsLongToIntFunction extends AnyVal

final class RichFunction1AsLongUnaryOperator extends AnyVal

final class RichFunction1AsPredicate[T] extends AnyVal

final class RichFunction1AsToDoubleFunction[T] extends AnyVal

final class RichFunction1AsToIntFunction[T] extends AnyVal

final class RichFunction1AsToLongFunction[T] extends AnyVal

final class RichFunction1AsUnaryOperator[T] extends AnyVal

final class RichFunction2AsBiConsumer[T, U] extends AnyVal

final class RichFunction2AsBiFunction[T, U, R] extends AnyVal

final class RichFunction2AsBiPredicate[T, U] extends AnyVal

final class RichFunction2AsBinaryOperator[T] extends AnyVal

final class RichFunction2AsDoubleBinaryOperator extends AnyVal

final class RichFunction2AsIntBinaryOperator extends AnyVal

final class RichFunction2AsLongBinaryOperator extends AnyVal

final class RichFunction2AsObjDoubleConsumer[T] extends AnyVal

final class RichFunction2AsObjIntConsumer[T] extends AnyVal

final class RichFunction2AsObjLongConsumer[T] extends AnyVal

final class RichFunction2AsToDoubleBiFunction[T, U] extends AnyVal

final class RichFunction2AsToIntBiFunction[T, U] extends AnyVal

final class RichFunction2AsToLongBiFunction[T, U] extends AnyVal

final class RichFunctionAsFunction1[T, R] extends AnyVal

final class RichIntBinaryOperatorAsFunction2 extends AnyVal

final class RichIntConsumerAsFunction1 extends AnyVal

final class RichIntFunctionAsFunction1[R] extends AnyVal

final class RichIntPredicateAsFunction1 extends AnyVal

final class RichIntSupplierAsFunction0 extends AnyVal

final class RichIntToDoubleFunctionAsFunction1 extends AnyVal

final class RichIntToLongFunctionAsFunction1 extends AnyVal

final class RichIntUnaryOperatorAsFunction1 extends AnyVal

final class RichLongBinaryOperatorAsFunction2 extends AnyVal

final class RichLongConsumerAsFunction1 extends AnyVal

final класс RichLongFunctionAsFunction1[R] extends AnyVal

final класс RichLongPredicateAsFunction1 extends AnyVal

final класс RichLongSupplierAsFunction0 extends AnyVal

final класс RichLongToDoubleFunctionAsFunction1 extends AnyVal

final класс RichLongToIntFunctionAsFunction1 extends AnyVal

final класс RichLongUnaryOperatorAsFunction1 extends AnyVal

final класс RichObjDoubleConsumerAsFunction2[T] extends AnyVal

final класс RichObjIntConsumerAsFunction2[T] extends AnyVal

final класс RichObjLongConsumerAsFunction2[T] extends AnyVal

final класс RichPredicateAsFunction1[T] extends AnyVal

final класс RichSupplierAsFunction0[T] extends AnyVal

final класс RichToDoubleBiFunctionAsFunction2[T, U] extends AnyVal

final класс RichToDoubleFunctionAsFunction1[T] extends AnyVal

final класс RichToIntBiFunctionAsFunction2[T, U] extends AnyVal

final класс RichToIntFunctionAsFunction1[T] extends AnyVal

final класс RichToLongBiFunctionAsFunction2[T, U] extends AnyVal

final класс RichToLongFunctionAsFunction1[T] extends AnyVal

final класс RichUnaryOperatorAsFunction1[T] extends AnyVal

Члены-значения

final def !=(arg0: Any): Boolean

Проверка двух объектов на неравенство.

возвращает

true если !(this == that), иначе false.

Определяющие классы
AnyRef → Any

final def ##(): Int

Эквивалентно x.hashCode за исключением упакованных числовых типов и null. Для чисел возвращает значение хэша, согласованное с равенством значений: если два экземпляра типа значения сравниваются как true, то ## вернёт одно и то же значение хэша для каждого из них. Для null возвращает хэш-код, где null.hashCode вызывает NullPointerException.

возвращает

значение хэша, согласованное с ==

Определяющие классы
AnyRef → Any

final def ==(arg0: Any): Boolean

Выражение x == that эквивалентно if (x eq null) that eq null else x.equals(that).

возвращает

true если объект-получатель эквивалентен аргументу; false в противном случае.

Определяющие классы
AnyRef → Any

final def asInstanceOf[T0]: T0

Приведение объекта-получателя к типу T0.

Обратите внимание, что успех приведения во время выполнения зависит от семантики стирания Scala. Таким образом, выражение 1.asInstanceOf[String] выбросит ClassCastException во время выполнения, в то время как выражение List(1).asInstanceOf[List[String]] не выбросит. В последнем примере, поскольку аргумент типа стирается во время компиляции, невозможно проверить, соответствуют ли содержимое списка запрошенному типу.

возвращает

объект-получатель.

Определяющие классы
Any
Исключения

ClassCastException если объект-получатель не является экземпляром стирания типа T0.

def clone(): AnyRef

Создаёт копию объекта-получателя.

По умолчанию реализация метода clone зависит от платформы.

возвращает

копию объекта-получателя.

Атрибуты
protected[java.lang]
Определяющие классы
AnyRef
Аннотации
@throws(classOf[java.lang.CloneNotSupportedException]) @native()
Примечание

не специфицирован SLS как член AnyRef

final def eq(arg0: AnyRef): Boolean

Проверяет, является ли аргумент (that) ссылкой на объект-получатель (this).

Метод eq реализует отношение эквивалентности на не-null экземплярах AnyRef, и имеет три дополнительных свойства:

    Он согласован: для любых не-null экземпляров x и y типа AnyRef, несколько вызовов x.eq(y) последовательно возвращают true или последовательно возвращают false. Для любого не-null экземпляра x типа AnyRef, x.eq(null) и null.eq(x) возвращают false. null.eq(null) возвращает true.

При переопределении методов equals или hashCode важно обеспечить согласованность их поведения с равенством ссылок. Поэтому, если два объекта являются ссылками друг на друга (o1 eq o2), они должны быть равны друг другу (o1 == o2) и они должны хэшироваться до одного и того же значения (o1.hashCode == o2.hashCode).

возвращает

true если аргумент является ссылкой на объект-получатель; false в противном случае.

Определяющие классы
AnyRef

def equals(arg0: AnyRef): Boolean

Метод равенства для типов ссылок. Реализация по умолчанию делегирует eq.

См. также equals в scala.Any.

возвращает

true если объект-получатель эквивалентен аргументу; false в противном случае.

Определяющие классы
AnyRef → Any

def finalize(): Unit

Вызывается сборщиком мусора для объекта-получателя, когда больше нет ссылок на объект.

Детали о том, когда и если вызывается метод finalize, а также взаимодействие между finalize и нелокальными возвратами и исключениями зависят от платформы.

Атрибуты
protected[java.lang]
Определяющие классы
AnyRef
Аннотации
@throws(classOf[java.lang.Throwable])
Примечание

не специфицирован SLS как член AnyRef

final def getClass(): Class[_ <: AnyRef]

Возвращает представление класса во время выполнения для объекта.

возвращает

объект класса, соответствующий типу во время выполнения получателя.

Определяющие классы
AnyRef → Any
Аннотации
@native()

def hashCode(): Int

Метод hashCode для ссылочных типов. См. hashCode в scala.Any.

возвращает

значение хэш-кода для этого объекта.

Классы-определения
AnyRef → Any
Аннотации
@native()

final def isInstanceOf[T0]: Boolean

Проверка, является ли динамический тип объекта-получателя T0.

Обратите внимание, что результат теста зависит от семантики стирания Scala. Поэтому выражение 1.isInstanceOf[String] вернёт false, а выражение List(1).isInstanceOf[List[String]] вернёт true. В последнем примере, поскольку тип аргумента стирается во время компиляции, невозможно проверить, относятся ли элементы списка к указанному типу.

возвращает

true если объект-получатель является экземпляром стирания типа T0; false в противном случае.

Классы-определения
Any

final def ne(arg0: AnyRef): Boolean

Эквивалентно !(this eq that).

возвращает

true если аргумент не является ссылкой на объект-получатель; false в противном случае.

Классы-определения
AnyRef

final def notify(): Unit

Разбудит один поток, ожидания на мониторе объекта-получателя.

Классы-определения
AnyRef
Аннотации
@native()
Примечание

не определен SLS как член AnyRef

final def notifyAll(): Unit

Разбудит все потоки, ожидающие на мониторе объекта-получателя.

Классы-определения
AnyRef
Аннотации
@native()
Примечание

не определен SLS как член AnyRef

final def synchronized[T0](arg0: => T0): T0

Классы-определения
AnyRef

def toString(): String

Создаёт строковое представление этого объекта. По умолчанию представление зависит от платформы. На платформе Java это конкатенация имени класса, «@» и хэш-кода объекта в шестнадцатеричном формате.

возвращает

строковое представление объекта.

Классы-определения
AnyRef → Any

final def wait(): Unit

Классы-определения
AnyRef
Аннотации
@throws(classOf[java.lang.InterruptedException])

final def wait(arg0: Long, arg1: Int): Unit

Классы-определения
AnyRef
Аннотации
@throws(classOf[java.lang.InterruptedException])

final def wait(arg0: Long): Unit

Классы-определения
AnyRef
Аннотации
@throws(classOf[java.lang.InterruptedException]) @native()

© 2002-2019 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://www.scala-lang.org/api/2.13.0/scala/jdk/FunctionWrappers$.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API