Package one.microstream.typing
Interface LambdaTypeRecognizer
- All Known Implementing Classes:
LambdaTypeRecognizer.Java8Makeshift
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface LambdaTypeRecognizer
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
LambdaTypeRecognizer.Java8Makeshift
This is a makeshift implementation and by far not a completely safe approach. -
Method Summary
Modifier and Type Method Description boolean
isLambdaType(Class<?> type)
static LambdaTypeRecognizer
Java8Makeshift()
Creates aLambdaTypeRecognizer
instance with stateless makeshift implementation for Java 8 and compatible later versions.static LambdaTypeRecognizer
New()
Creates aLambdaTypeRecognizer
instance with stateless default implementation for the most current approach (JDK version).
-
Method Details
-
isLambdaType
-
New
Creates aLambdaTypeRecognizer
instance with stateless default implementation for the most current approach (JDK version).Currently
Java8Makeshift()
.- Returns:
- a new and stateless instance.
-
Java8Makeshift
Creates aLambdaTypeRecognizer
instance with stateless makeshift implementation for Java 8 and compatible later versions.- Returns:
- a new and stateless instance for Java 8.
-