runeflobakk / motif

A Java library helping you to compose behavior from smaller parts.
http://runeflobakk.github.io/motif
6 stars 0 forks source link

Problematic typing in the Base.when(..) signature #38

Closed runeflobakk closed 10 years ago

runeflobakk commented 10 years ago

<I, O> When<I, O> when(Predicate<? super I> condition, Fn<I, O> fn)

Not possible to use a more specific Predicate than the mapping Fn.