JavaMoney / javamoney-lib

JavaMoney financial libraries, extending and complementing JSR 354
Apache License 2.0
141 stars 69 forks source link

Fix Predicate redundancy #4

Closed keilw closed 10 years ago

keilw commented 10 years ago

The Predicate interface is a skinned-down clone of Java 8 functional interface java.util.function.Predicate.

Should be resolved by renaming this element to MonetaryPredicate. Using an identical method signature (only test() method so far) allowing seamless integration of Java 8 Lambdas (MonetaryPredicate extends Predicate) and eventual elimination of this part of JavaMoney without affecting third party codebase. i.E. classes like MonetaryCalculations would then use java.util.function.Predicate instead of MonetaryPredicate.