Class FunctionalInterfaces


  • public final class FunctionalInterfaces
    extends Object
    • Method Detail

      • findFrom

        public static Class<?> findFrom​(Type type)
        Searches for a @FunctionalInterface annotated interface in the class hierarchy of the specified type. The first one that is found will be returned. If no such interface can be found, null will be returned.
        Parameters:
        type - some Class, possibly implementing a FunctionalInterface
        Returns:
        the FunctionalInterface implemented by type, or null if type does not implement a FunctionalInterface.
      • functionalMethodOf

        public static Method functionalMethodOf​(Type type)