implicit final class RichActionResult extends AnyVal
Extension to ActionResult which allows to extract parameters and results.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- RichActionResult
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new RichActionResult(event: ActionResult)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val event: ActionResult
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
getParam[T](name: String, check: (T) ⇒ Boolean = (_: T) => true, msg: String = "")(implicit ex: (Value) ⇒ T): T
Extracts a parameter of the specified type, optionally checking if it is valid.
Extracts a parameter of the specified type, optionally checking if it is valid.
- name
parameter name.
- check
function which checks if the parameter value is valid. If it returns
false
,IllegalArgumentException
is thrown.- msg
message to pass to the exception, if the value fails validation.
- returns
the parameter value.
- Exceptions thrown
IllegalArgumentException
if the parameter value fails validation.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
toString(): String
- Definition Classes
- Any