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
- All
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( ... ) @native() @HotSpotIntrinsicCandidate()
-
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: Any): Boolean
- Definition Classes
- AnyRef → Any
- def explicitly[I, O](r: Reusability[I])(f: (I) ⇒ O)(implicit arg0: ClassTag[I]): (I) ⇒ Reusable[O]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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() @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
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
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.