public final class LambdaUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
getTarget(java.lang.invoke.SerializedLambda l)
Get target of the method reference that was converted to a lambda.
|
static java.lang.invoke.SerializedLambda |
toSerializedLambda(java.lang.Object lambda)
Unfortunate sorcery to reflect on lambda.
|
public static java.lang.Object getTarget(java.lang.invoke.SerializedLambda l)
l
- lambda expression that could be a method reference.public static java.lang.invoke.SerializedLambda toSerializedLambda(java.lang.Object lambda)
Functions
is needed as all its functions are serializable.lambda
- lambda that potentially implements Serializable
.SerializedLambda
form or null if its function doesn't implement
Serializable.