- java.lang.Object
-
- org.scijava.types.infer.FunctionalInterfaces
-
public final class FunctionalInterfaces extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Class<?>findFrom(Type type)Searches for a@FunctionalInterfaceannotated interface in the class hierarchy of the specified type.static MethodfunctionalMethodOf(Type type)
-
-
-
Method Detail
-
findFrom
public static Class<?> findFrom(Type type)
Searches for a@FunctionalInterfaceannotated 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- someClass, possibly implementing aFunctionalInterface- Returns:
- the
FunctionalInterfaceimplemented bytype, ornulliftypedoes not implement aFunctionalInterface.
-
-