final class Reusable[+A] extends AnyRef
A value that has been explicitly paired with a (potentially ad-hoc) Reusability instance.
- A
The type of value.
- Since
1.0.0
- Alphabetic
- By Inheritance
- Reusable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def *>[B](fb: Reusable[B]): Reusable[B]
Combine reusability of this and the argument, and return the value of the argument.
- def <*[B](fb: Reusable[B]): Reusable[A]
Combine reusability of this and the argument, and return the value of this.
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def ap[B](rf: Reusable[(A) => B]): Reusable[B]
Create a new
Reusable[B]
that is reusable so long as thisReusable[A]
and theReusable[A => B]
are. - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- Reusable → AnyRef → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val isReusable: (Reusable[Any]) => Boolean
- def map[B](f: (A) => B): Reusable[B]
WARNING: This does not affect reusability.
WARNING: This does not affect reusability. Only the initial (pre-mapped) values matter when considering reusability.
If you have two reusable values and map them differently, even though the mapped values differ they will still be considered reusable. Any differences as a result of second the mapping will be discarded.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Reusable → AnyRef → Any
- def tuple[B](rb: Reusable[B]): Reusable[(A, B)]
Create a
Reusable[(A, B)]
that is reusable so long as thisReusable[A]
and theReusable[B]
are. - def value: A
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withLazyValue[B](b: => B): Reusable[B]
- def withValue[B](b: B): Reusable[B]
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.