public final class MiscProjections
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
argToResult(java.lang.Object arg)
Identity function
|
static <T> T |
argumentToResult(T arg)
Identity function
|
static void |
empty()
Returns an action with an empty body
|
static java.lang.Void |
emptyFunc()
Returns a no-argument function with an empty body
|
static void |
throwDetailed(java.lang.Object obj,
java.lang.Throwable _e)
Action that throws the specified exception when being invoked.
|
static java.lang.Void |
throwDetailedFunc(java.lang.Object obj,
java.lang.Throwable _e)
Action that throws the specified exception when being invoked.
|
static void |
throwException(java.lang.Throwable _e)
Action that throws the specified exception when being invoked.
|
static java.lang.Void |
throwExceptionFunc(java.lang.Throwable _e)
Action that throws the specified exception when being invoked.
|
public static java.lang.Object argToResult(java.lang.Object arg)
public static <T> T argumentToResult(T arg)
public static void empty()
public static java.lang.Void emptyFunc()
public static void throwException(java.lang.Throwable _e)
java.lang.Throwable
- When the action is calledpublic static void throwDetailed(java.lang.Object obj, java.lang.Throwable _e)
java.lang.Throwable
- When the action is calledpublic static java.lang.Void throwExceptionFunc(java.lang.Throwable _e)
java.lang.Throwable
- When the action is calledpublic static java.lang.Void throwDetailedFunc(java.lang.Object obj, java.lang.Throwable _e)
java.lang.Throwable
- When the action is called