object fnOutput
Convenience methods that help you create I => Reusable[O]
functions.
The reason this is more convenient than the underlying methods is that this makes it easier to create and share a single Reusability instance at the function definition site, before it's used.
Also note, that it's important that the functions you provide are pure. If you don't always return the same output given the same input, then you can expect different outputs to be discarded or "lost".
- Since
1.5.0
- Alphabetic
- By Inheritance
- fnOutput
- 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
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def always[I, O](f: (I) => O): (I) => Reusable[O]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def byRef[I <: AnyRef, O](f: (I) => O): (I) => Reusable[O]
Compare by reference.
Compare by reference. Reuse if both values are the same instance.
- def byRefOr_==[I <: AnyRef, O](f: (I) => O): (I) => Reusable[O]
Compare by reference and if different, compare using universal equality (Scala's == operator).
- def by_==[I, O](f: (I) => O): (I) => Reusable[O]
Compare using universal equality (Scala's == operator).
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def const[I, O](f: (I) => O, isReusable: Boolean): (I) => Reusable[O]
Use constant reusability (i.e.
Use constant reusability (i.e. always-reuse or never-reuse)
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def explicitly[I, O](r: Reusability[I])(f: (I) => O)(implicit arg0: ClassTag[I]): (I) => Reusable[O]
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def implicitly[I, O](f: (I) => O)(implicit arg0: ClassTag[I], arg1: Reusability[I]): (I) => Reusable[O]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def never[I, O](f: (I) => O): (I) => Reusable[O]
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()