public final class FunctionalInterfaceLogic extends Object
Modifier and Type | Method and Description |
---|---|
static Optional<com.github.javaparser.resolution.MethodUsage> |
getFunctionalMethod(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration typeDeclaration)
Get the functional method defined by the type, if any.
|
static Optional<com.github.javaparser.resolution.MethodUsage> |
getFunctionalMethod(com.github.javaparser.resolution.types.ResolvedType type)
Get the functional method defined by the type, if any.
|
static boolean |
isFunctionalInterfaceType(com.github.javaparser.resolution.types.ResolvedType type) |
public static Optional<com.github.javaparser.resolution.MethodUsage> getFunctionalMethod(com.github.javaparser.resolution.types.ResolvedType type)
public static Optional<com.github.javaparser.resolution.MethodUsage> getFunctionalMethod(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration typeDeclaration)
public static boolean isFunctionalInterfaceType(com.github.javaparser.resolution.types.ResolvedType type)
Copyright © 2007–2019. All rights reserved.