001// License: GPL. For details, see LICENSE file.
002package org.openstreetmap.josm.tools;
003
004/**
005 * Used to identify objects that fulfill a certain condition, e.g. when filtering a collection.
006 *
007 * @param <T> The objects type
008 * @since 3177
009 */
010public interface Predicate<T> {
011
012    /**
013     * Determines whether the object passes the test or not
014     * @param object The object to evaluate
015     * @return {@code true} if the object passes the test, {@code false} otherwise
016     */
017    boolean evaluate(T object);
018}