Package org.hibernate.engine.internal
Interface ManagedTypeHelper.PersistentAttributeInterceptableAction<T>
-
- Enclosing class:
- ManagedTypeHelper
- 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 static interface ManagedTypeHelper.PersistentAttributeInterceptableAction<T>
This interface has been introduced to mitigate JDK-8180450.
Sadly, usingBiConsumerwill trigger a type pollution issue because of generics type-erasure:BiConsumer's actual parameters types on the lambda implemention'sBiConsumer.accept(T, U)are stealthy enforced viacheckcast, messing up with type check cached data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccept(PersistentAttributeInterceptable interceptable, T optionalParam)
-
-
-
Method Detail
-
accept
void accept(PersistentAttributeInterceptable interceptable, T optionalParam)
-
-