class
PrettyFunction0[A] extends () ⇒ A
Instance Constructors
-
new
PrettyFunction0(result: A)
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
def
apply(): A
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(o: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from () ⇒ A
Inherited from AnyRef
Inherited from Any
A nullary (zero-parameter) "function" that is a bit friendlier to testing.
This is a variant of
() => A
-- that is, a function that takes no parameters and returns an A. In practice, that isn't quite true: where() => A
is lazy (it is not evaluated until you call it), this one is strict (you pass the result in as a parameter).In exchange, this is more usable and reproducible for test environments. Its
hashCode
andequals
are based on those of the passed-in value (so they are consistent and reproducible), and itstoString
nicely displays the result that will always be returned.the type that is returned by this function