Effect
@nowarn("msg=@SerialVersionUID has no effect") @SerialVersionUID(1L)
An executable piece of code that takes no parameters and doesn't return any value.
Serializable
is needed to be able to grab line number for Java 8 lambdas.
Supports throwing Exception
in the apply, which the java.util.function.Effect
counterpart does not.
- Source:
- Function.scala
trait Serializable
class Object
trait Matchable
class Any