Ignore:
Timestamp:
2016-07-21T02:15:38+02:00 (8 years ago)
Author:
Don-vip
Message:

see #11390, fix #12908 - Java 8: Move to java Predicates (patch by michael2402) - gsoc-core

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Predicate.java

    r8512 r10582  
    77 * @param <T> The objects type
    88 * @since 3177
     9 * @deprecated Use {@link java.util.function.Predicate} instead.
    910 */
    10 public interface Predicate<T> {
     11@Deprecated
     12@FunctionalInterface
     13public interface Predicate<T> extends java.util.function.Predicate<T> {
    1114
    1215    /**
     
    1619     */
    1720    boolean evaluate(T object);
     21
     22    @Override
     23    default boolean test(T t) {
     24        return evaluate(t);
     25    }
    1826}
Note: See TracChangeset for help on using the changeset viewer.