Class FunctionalInterfaceLogic


  • public final class FunctionalInterfaceLogic
    extends Object
    Author:
    Federico Tomassetti
    • Method Detail

      • getFunctionalMethod

        public 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.
      • getFunctionalMethod

        public 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.
      • isFunctionalInterfaceType

        public static boolean isFunctionalInterfaceType​(com.github.javaparser.resolution.types.ResolvedType type)