Could you explain that a little bit more? I'm using to Maybe from Haskell and am curious what might be missing from Java's Optional.
I think you can define the types to get around it, but that is messy and a PITA. For example, class OptionalA extends Optional<A>.
The major pain point with generics is that they don't work with primitives.
Is there a particular use case?