On 12 April 2015 at 21:26, Benedikt Ritter <benerit...@gmail.com> wrote:
>
>
> Send from my mobile device
>
>> Am 12.04.2015 um 13:19 schrieb Kristian Rosenvold <krosenv...@apache.org>:
>>
>> If think later (in 2025 :-) you just make interface ThreadPredicate
>> extend java.util.function.Predicate.
>
> Well, isn't that exactly what I suggested? :o)

There is no need to change the interface or any call signatures. Ie,
it can stay as ThreadPredicate (and already be useful by Java-8
infact). Even if it never extends java.util.function.Predicate, it is
recognised by JDK-8 as a FunctionalInterface because it only has one
abstract method. The only caveat is that it must always have one
abstract method, so it can't be updated for any Java-7 users with
other methods that they may find useful, as there won't be a default
implementation in the Java-7 interface for any new methods and it will
no longer meet the contract for FunctionalInterface.

Cheers,

Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to