Packages

o

scala.jdk

FunctionWrappers

object FunctionWrappers

Source
FunctionWrappers.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FunctionWrappers
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class AsJavaBiConsumer[T, U](sf: (T, U) => Unit) extends BiConsumer[T, U] with Product with Serializable
  2. case class AsJavaBiFunction[T, U, R](sf: (T, U) => R) extends BiFunction[T, U, R] with Product with Serializable
  3. case class AsJavaBiPredicate[T, U](sf: (T, U) => Boolean) extends BiPredicate[T, U] with Product with Serializable
  4. case class AsJavaBinaryOperator[T](sf: (T, T) => T) extends BinaryOperator[T] with Product with Serializable
  5. case class AsJavaBooleanSupplier(sf: () => Boolean) extends BooleanSupplier with Product with Serializable
  6. case class AsJavaConsumer[T](sf: (T) => Unit) extends Consumer[T] with Product with Serializable
  7. case class AsJavaDoubleBinaryOperator(sf: (Double, Double) => Double) extends DoubleBinaryOperator with Product with Serializable
  8. case class AsJavaDoubleConsumer(sf: (Double) => Unit) extends DoubleConsumer with Product with Serializable
  9. case class AsJavaDoubleFunction[R](sf: (Double) => R) extends DoubleFunction[R] with Product with Serializable
  10. case class AsJavaDoublePredicate(sf: (Double) => Boolean) extends DoublePredicate with Product with Serializable
  11. case class AsJavaDoubleSupplier(sf: () => Double) extends DoubleSupplier with Product with Serializable
  12. case class AsJavaDoubleToIntFunction(sf: (Double) => Int) extends DoubleToIntFunction with Product with Serializable
  13. case class AsJavaDoubleToLongFunction(sf: (Double) => Long) extends DoubleToLongFunction with Product with Serializable
  14. case class AsJavaDoubleUnaryOperator(sf: (Double) => Double) extends DoubleUnaryOperator with Product with Serializable
  15. case class AsJavaFunction[T, R](sf: (T) => R) extends java.util.function.Function[T, R] with Product with Serializable
  16. case class AsJavaIntBinaryOperator(sf: (Int, Int) => Int) extends IntBinaryOperator with Product with Serializable
  17. case class AsJavaIntConsumer(sf: (Int) => Unit) extends IntConsumer with Product with Serializable
  18. case class AsJavaIntFunction[R](sf: (Int) => R) extends IntFunction[R] with Product with Serializable
  19. case class AsJavaIntPredicate(sf: (Int) => Boolean) extends IntPredicate with Product with Serializable
  20. case class AsJavaIntSupplier(sf: () => Int) extends IntSupplier with Product with Serializable
  21. case class AsJavaIntToDoubleFunction(sf: (Int) => Double) extends IntToDoubleFunction with Product with Serializable
  22. case class AsJavaIntToLongFunction(sf: (Int) => Long) extends IntToLongFunction with Product with Serializable
  23. case class AsJavaIntUnaryOperator(sf: (Int) => Int) extends IntUnaryOperator with Product with Serializable
  24. case class AsJavaLongBinaryOperator(sf: (Long, Long) => Long) extends LongBinaryOperator with Product with Serializable
  25. case class AsJavaLongConsumer(sf: (Long) => Unit) extends LongConsumer with Product with Serializable
  26. case class AsJavaLongFunction[R](sf: (Long) => R) extends LongFunction[R] with Product with Serializable
  27. case class AsJavaLongPredicate(sf: (Long) => Boolean) extends LongPredicate with Product with Serializable
  28. case class AsJavaLongSupplier(sf: () => Long) extends LongSupplier with Product with Serializable
  29. case class AsJavaLongToDoubleFunction(sf: (Long) => Double) extends LongToDoubleFunction with Product with Serializable
  30. case class AsJavaLongToIntFunction(sf: (Long) => Int) extends LongToIntFunction with Product with Serializable
  31. case class AsJavaLongUnaryOperator(sf: (Long) => Long) extends LongUnaryOperator with Product with Serializable
  32. case class AsJavaObjDoubleConsumer[T](sf: (T, Double) => Unit) extends ObjDoubleConsumer[T] with Product with Serializable
  33. case class AsJavaObjIntConsumer[T](sf: (T, Int) => Unit) extends ObjIntConsumer[T] with Product with Serializable
  34. case class AsJavaObjLongConsumer[T](sf: (T, Long) => Unit) extends ObjLongConsumer[T] with Product with Serializable
  35. case class AsJavaPredicate[T](sf: (T) => Boolean) extends Predicate[T] with Product with Serializable
  36. case class AsJavaSupplier[T](sf: () => T) extends Supplier[T] with Product with Serializable
  37. case class AsJavaToDoubleBiFunction[T, U](sf: (T, U) => Double) extends ToDoubleBiFunction[T, U] with Product with Serializable
  38. case class AsJavaToDoubleFunction[T](sf: (T) => Double) extends ToDoubleFunction[T] with Product with Serializable
  39. case class AsJavaToIntBiFunction[T, U](sf: (T, U) => Int) extends ToIntBiFunction[T, U] with Product with Serializable
  40. case class AsJavaToIntFunction[T](sf: (T) => Int) extends ToIntFunction[T] with Product with Serializable
  41. case class AsJavaToLongBiFunction[T, U](sf: (T, U) => Long) extends ToLongBiFunction[T, U] with Product with Serializable
  42. case class AsJavaToLongFunction[T](sf: (T) => Long) extends ToLongFunction[T] with Product with Serializable
  43. case class AsJavaUnaryOperator[T](sf: (T) => T) extends UnaryOperator[T] with Product with Serializable
  44. case class FromJavaBiConsumer[T, U](jf: BiConsumer[T, U]) extends (T, U) => Unit with Product with Serializable
  45. case class FromJavaBiFunction[T, U, R](jf: BiFunction[T, U, R]) extends (T, U) => R with Product with Serializable
  46. case class FromJavaBiPredicate[T, U](jf: BiPredicate[T, U]) extends (T, U) => Boolean with Product with Serializable
  47. case class FromJavaBinaryOperator[T](jf: BinaryOperator[T]) extends (T, T) => T with Product with Serializable
  48. case class FromJavaBooleanSupplier(jf: BooleanSupplier) extends () => Boolean with Product with Serializable
  49. case class FromJavaConsumer[T](jf: Consumer[T]) extends (T) => Unit with Product with Serializable
  50. case class FromJavaDoubleBinaryOperator(jf: DoubleBinaryOperator) extends (Double, Double) => Double with Product with Serializable
  51. case class FromJavaDoubleConsumer(jf: DoubleConsumer) extends (Double) => Unit with Product with Serializable
  52. case class FromJavaDoubleFunction[R](jf: DoubleFunction[R]) extends (Double) => R with Product with Serializable
  53. case class FromJavaDoublePredicate(jf: DoublePredicate) extends (Double) => Boolean with Product with Serializable
  54. case class FromJavaDoubleSupplier(jf: DoubleSupplier) extends () => Double with Product with Serializable
  55. case class FromJavaDoubleToIntFunction(jf: DoubleToIntFunction) extends (Double) => Int with Product with Serializable
  56. case class FromJavaDoubleToLongFunction(jf: DoubleToLongFunction) extends (Double) => Long with Product with Serializable
  57. case class FromJavaDoubleUnaryOperator(jf: DoubleUnaryOperator) extends (Double) => Double with Product with Serializable
  58. case class FromJavaFunction[T, R](jf: java.util.function.Function[T, R]) extends (T) => R with Product with Serializable
  59. case class FromJavaIntBinaryOperator(jf: IntBinaryOperator) extends (Int, Int) => Int with Product with Serializable
  60. case class FromJavaIntConsumer(jf: IntConsumer) extends (Int) => Unit with Product with Serializable
  61. case class FromJavaIntFunction[R](jf: IntFunction[R]) extends (Int) => R with Product with Serializable
  62. case class FromJavaIntPredicate(jf: IntPredicate) extends (Int) => Boolean with Product with Serializable
  63. case class FromJavaIntSupplier(jf: IntSupplier) extends () => Int with Product with Serializable
  64. case class FromJavaIntToDoubleFunction(jf: IntToDoubleFunction) extends (Int) => Double with Product with Serializable
  65. case class FromJavaIntToLongFunction(jf: IntToLongFunction) extends (Int) => Long with Product with Serializable
  66. case class FromJavaIntUnaryOperator(jf: IntUnaryOperator) extends (Int) => Int with Product with Serializable
  67. case class FromJavaLongBinaryOperator(jf: LongBinaryOperator) extends (Long, Long) => Long with Product with Serializable
  68. case class FromJavaLongConsumer(jf: LongConsumer) extends (Long) => Unit with Product with Serializable
  69. case class FromJavaLongFunction[R](jf: LongFunction[R]) extends (Long) => R with Product with Serializable
  70. case class FromJavaLongPredicate(jf: LongPredicate) extends (Long) => Boolean with Product with Serializable
  71. case class FromJavaLongSupplier(jf: LongSupplier) extends () => Long with Product with Serializable
  72. case class FromJavaLongToDoubleFunction(jf: LongToDoubleFunction) extends (Long) => Double with Product with Serializable
  73. case class FromJavaLongToIntFunction(jf: LongToIntFunction) extends (Long) => Int with Product with Serializable
  74. case class FromJavaLongUnaryOperator(jf: LongUnaryOperator) extends (Long) => Long with Product with Serializable
  75. case class FromJavaObjDoubleConsumer[T](jf: ObjDoubleConsumer[T]) extends (T, Double) => Unit with Product with Serializable
  76. case class FromJavaObjIntConsumer[T](jf: ObjIntConsumer[T]) extends (T, Int) => Unit with Product with Serializable
  77. case class FromJavaObjLongConsumer[T](jf: ObjLongConsumer[T]) extends (T, Long) => Unit with Product with Serializable
  78. case class FromJavaPredicate[T](jf: Predicate[T]) extends (T) => Boolean with Product with Serializable
  79. case class FromJavaSupplier[T](jf: Supplier[T]) extends () => T with Product with Serializable
  80. case class FromJavaToDoubleBiFunction[T, U](jf: ToDoubleBiFunction[T, U]) extends (T, U) => Double with Product with Serializable
  81. case class FromJavaToDoubleFunction[T](jf: ToDoubleFunction[T]) extends (T) => Double with Product with Serializable
  82. case class FromJavaToIntBiFunction[T, U](jf: ToIntBiFunction[T, U]) extends (T, U) => Int with Product with Serializable
  83. case class FromJavaToIntFunction[T](jf: ToIntFunction[T]) extends (T) => Int with Product with Serializable
  84. case class FromJavaToLongBiFunction[T, U](jf: ToLongBiFunction[T, U]) extends (T, U) => Long with Product with Serializable
  85. case class FromJavaToLongFunction[T](jf: ToLongFunction[T]) extends (T) => Long with Product with Serializable
  86. case class FromJavaUnaryOperator[T](jf: UnaryOperator[T]) extends (T) => T with Product with Serializable
  87. final class RichBiConsumerAsFunction2[T, U] extends AnyVal
  88. final class RichBiFunctionAsFunction2[T, U, R] extends AnyVal
  89. final class RichBiPredicateAsFunction2[T, U] extends AnyVal
  90. final class RichBinaryOperatorAsFunction2[T] extends AnyVal
  91. final class RichBooleanSupplierAsFunction0 extends AnyVal
  92. final class RichConsumerAsFunction1[T] extends AnyVal
  93. final class RichDoubleBinaryOperatorAsFunction2 extends AnyVal
  94. final class RichDoubleConsumerAsFunction1 extends AnyVal
  95. final class RichDoubleFunctionAsFunction1[R] extends AnyVal
  96. final class RichDoublePredicateAsFunction1 extends AnyVal
  97. final class RichDoubleSupplierAsFunction0 extends AnyVal
  98. final class RichDoubleToIntFunctionAsFunction1 extends AnyVal
  99. final class RichDoubleToLongFunctionAsFunction1 extends AnyVal
  100. final class RichDoubleUnaryOperatorAsFunction1 extends AnyVal
  101. final class RichFunction0AsBooleanSupplier extends AnyVal
  102. final class RichFunction0AsDoubleSupplier extends AnyVal
  103. final class RichFunction0AsIntSupplier extends AnyVal
  104. final class RichFunction0AsLongSupplier extends AnyVal
  105. final class RichFunction0AsSupplier[T] extends AnyVal
  106. final class RichFunction1AsConsumer[T] extends AnyVal
  107. final class RichFunction1AsDoubleConsumer extends AnyVal
  108. final class RichFunction1AsDoubleFunction[R] extends AnyVal
  109. final class RichFunction1AsDoublePredicate extends AnyVal
  110. final class RichFunction1AsDoubleToIntFunction extends AnyVal
  111. final class RichFunction1AsDoubleToLongFunction extends AnyVal
  112. final class RichFunction1AsDoubleUnaryOperator extends AnyVal
  113. final class RichFunction1AsFunction[T, R] extends AnyVal
  114. final class RichFunction1AsIntConsumer extends AnyVal
  115. final class RichFunction1AsIntFunction[R] extends AnyVal
  116. final class RichFunction1AsIntPredicate extends AnyVal
  117. final class RichFunction1AsIntToDoubleFunction extends AnyVal
  118. final class RichFunction1AsIntToLongFunction extends AnyVal
  119. final class RichFunction1AsIntUnaryOperator extends AnyVal
  120. final class RichFunction1AsLongConsumer extends AnyVal
  121. final class RichFunction1AsLongFunction[R] extends AnyVal
  122. final class RichFunction1AsLongPredicate extends AnyVal
  123. final class RichFunction1AsLongToDoubleFunction extends AnyVal
  124. final class RichFunction1AsLongToIntFunction extends AnyVal
  125. final class RichFunction1AsLongUnaryOperator extends AnyVal
  126. final class RichFunction1AsPredicate[T] extends AnyVal
  127. final class RichFunction1AsToDoubleFunction[T] extends AnyVal
  128. final class RichFunction1AsToIntFunction[T] extends AnyVal
  129. final class RichFunction1AsToLongFunction[T] extends AnyVal
  130. final class RichFunction1AsUnaryOperator[T] extends AnyVal
  131. final class RichFunction2AsBiConsumer[T, U] extends AnyVal
  132. final class RichFunction2AsBiFunction[T, U, R] extends AnyVal
  133. final class RichFunction2AsBiPredicate[T, U] extends AnyVal
  134. final class RichFunction2AsBinaryOperator[T] extends AnyVal
  135. final class RichFunction2AsDoubleBinaryOperator extends AnyVal
  136. final class RichFunction2AsIntBinaryOperator extends AnyVal
  137. final class RichFunction2AsLongBinaryOperator extends AnyVal
  138. final class RichFunction2AsObjDoubleConsumer[T] extends AnyVal
  139. final class RichFunction2AsObjIntConsumer[T] extends AnyVal
  140. final class RichFunction2AsObjLongConsumer[T] extends AnyVal
  141. final class RichFunction2AsToDoubleBiFunction[T, U] extends AnyVal
  142. final class RichFunction2AsToIntBiFunction[T, U] extends AnyVal
  143. final class RichFunction2AsToLongBiFunction[T, U] extends AnyVal
  144. final class RichFunctionAsFunction1[T, R] extends AnyVal
  145. final class RichIntBinaryOperatorAsFunction2 extends AnyVal
  146. final class RichIntConsumerAsFunction1 extends AnyVal
  147. final class RichIntFunctionAsFunction1[R] extends AnyVal
  148. final class RichIntPredicateAsFunction1 extends AnyVal
  149. final class RichIntSupplierAsFunction0 extends AnyVal
  150. final class RichIntToDoubleFunctionAsFunction1 extends AnyVal
  151. final class RichIntToLongFunctionAsFunction1 extends AnyVal
  152. final class RichIntUnaryOperatorAsFunction1 extends AnyVal
  153. final class RichLongBinaryOperatorAsFunction2 extends AnyVal
  154. final class RichLongConsumerAsFunction1 extends AnyVal
  155. final class RichLongFunctionAsFunction1[R] extends AnyVal
  156. final class RichLongPredicateAsFunction1 extends AnyVal
  157. final class RichLongSupplierAsFunction0 extends AnyVal
  158. final class RichLongToDoubleFunctionAsFunction1 extends AnyVal
  159. final class RichLongToIntFunctionAsFunction1 extends AnyVal
  160. final class RichLongUnaryOperatorAsFunction1 extends AnyVal
  161. final class RichObjDoubleConsumerAsFunction2[T] extends AnyVal
  162. final class RichObjIntConsumerAsFunction2[T] extends AnyVal
  163. final class RichObjLongConsumerAsFunction2[T] extends AnyVal
  164. final class RichPredicateAsFunction1[T] extends AnyVal
  165. final class RichSupplierAsFunction0[T] extends AnyVal
  166. final class RichToDoubleBiFunctionAsFunction2[T, U] extends AnyVal
  167. final class RichToDoubleFunctionAsFunction1[T] extends AnyVal
  168. final class RichToIntBiFunctionAsFunction2[T, U] extends AnyVal
  169. final class RichToIntFunctionAsFunction1[T] extends AnyVal
  170. final class RichToLongBiFunctionAsFunction2[T, U] extends AnyVal
  171. final class RichToLongFunctionAsFunction1[T] extends AnyVal
  172. final class RichUnaryOperatorAsFunction1[T] extends AnyVal

Value Members

  1. final def !=(arg0: Any): Boolean

    Test two objects for inequality.

    Test two objects for inequality.

    returns

    true if !(this == that), false otherwise.

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Equivalent to x.hashCode except for boxed numeric types and null.

    Equivalent to x.hashCode except for boxed numeric types and null. For numerics, it returns a hash value which is consistent with value equality: if two value type instances compare as true, then ## will produce the same hash value for each of them. For null returns a hashcode where null.hashCode throws a NullPointerException.

    returns

    a hash value consistent with ==

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    The expression x == that is equivalent to if (x eq null) that eq null else x.equals(that).

    The expression x == that is equivalent to if (x eq null) that eq null else x.equals(that).

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Cast the receiver object to be of type T0.

    Cast the receiver object to be of type T0.

    Note that the success of a cast at runtime is modulo Scala's erasure semantics. Therefore the expression 1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expression List(1).asInstanceOf[List[String]] will not. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested type.

    returns

    the receiver object.

    Definition Classes
    Any
    Exceptions thrown

    ClassCastException if the receiver object is not an instance of the erasure of type T0.

  5. def clone(): AnyRef

    Create a copy of the receiver object.

    Create a copy of the receiver object.

    The default implementation of the clone method is platform dependent.

    returns

    a copy of the receiver object.

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
    Note

    not specified by SLS as a member of AnyRef

  6. final def eq(arg0: AnyRef): Boolean

    Tests whether the argument (that) is a reference to the receiver object (this).

    Tests whether the argument (that) is a reference to the receiver object (this).

    The eq method implements an equivalence relation on non-null instances of AnyRef, and has three additional properties:

    • It is consistent: for any non-null instances x and y of type AnyRef, multiple invocations of x.eq(y) consistently returns true or consistently returns false.
    • For any non-null instance x of type AnyRef, x.eq(null) and null.eq(x) returns false.
    • null.eq(null) returns true.

    When overriding the equals or hashCode methods, it is important to ensure that their behavior is consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2), they should be equal to each other (o1 == o2) and they should hash to the same value (o1.hashCode == o2.hashCode).

    returns

    true if the argument is a reference to the receiver object; false otherwise.

    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean

    The equality method for reference types.

    The equality method for reference types. Default implementation delegates to eq.

    See also equals in scala.Any.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Called by the garbage collector on the receiver object when there are no more references to the object.

    Called by the garbage collector on the receiver object when there are no more references to the object.

    The details of when and if the finalize method is invoked, as well as the interaction between finalize and non-local returns and exceptions, are all platform dependent.

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
    Note

    not specified by SLS as a member of AnyRef

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

    Returns the runtime class representation of the object.

    Returns the runtime class representation of the object.

    returns

    a class object corresponding to the runtime type of the receiver.

    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int

    The hashCode method for reference types.

    The hashCode method for reference types. See hashCode in scala.Any.

    returns

    the hash code value for this object.

    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean

    Test whether the dynamic type of the receiver object is T0.

    Test whether the dynamic type of the receiver object is T0.

    Note that the result of the test is modulo Scala's erasure semantics. Therefore the expression 1.isInstanceOf[String] will return false, while the expression List(1).isInstanceOf[List[String]] will return true. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the specified type.

    returns

    true if the receiver object is an instance of erasure of type T0; false otherwise.

    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Equivalent to !(this eq that).

    Equivalent to !(this eq that).

    returns

    true if the argument is not a reference to the receiver object; false otherwise.

    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Definition Classes
    AnyRef
    Annotations
    @native()
    Note

    not specified by SLS as a member of AnyRef

  14. final def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

    Wakes up all threads that are waiting on the receiver object's monitor.

    Definition Classes
    AnyRef
    Annotations
    @native()
    Note

    not specified by SLS as a member of AnyRef

  15. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  16. def toString(): String

    Creates a String representation of this object.

    Creates a String representation of this object. The default representation is platform dependent. On the java platform it is the concatenation of the class name, "@", and the object's hashcode in hexadecimal.

    returns

    a String representation of the object.

    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped