final
class
Caller[+A] extends AnyVal
Instance Constructors
-
new
Caller(value: A)
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
+(other: String): String
-
def
->[B](y: B): (Caller[A], B)
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
-
-
def
ensuring(cond: Boolean, msg: ⇒ Any): Caller[A]
-
-
def
formatted(fmtstr: String): String
-
def
getClass(): Class[_ <: AnyVal]
-
final
def
isInstanceOf[T0]: Boolean
-
def
toString(): String
-
val
value: A
-
def
→[B](y: B): (Caller[A], B)
Inherited by implicit conversion any2stringadd from
Caller[A] to any2stringadd[Caller[A]]
Inherited by implicit conversion StringFormat from
Caller[A] to StringFormat[Caller[A]]
Inherited by implicit conversion Ensuring from
Caller[A] to Ensuring[Caller[A]]
Inherited by implicit conversion ArrowAssoc from
Caller[A] to ArrowAssoc[Caller[A]]
An implicit value that points to the function caller.
Usage
Getting the caller for logging or something
Restricting who you can be called from
Getting calling class or classloader, e.g. for loading resources, without needing to worry about properly setting up and tearing down the Context ClassLoader
Authors:
Li Haoyi
杨博 (Yang Bo) <[email protected]>