Core concept

@FunctionalInterface
interface Transform { R apply(T t); }
Advertisement

How it works

Default methods allowed. inherit from Object allowed.

Advertisement

Trade-offs + gotchas

Callback + strategy patterns.