001    // License: GPL. For details, see LICENSE file.
002    package org.openstreetmap.josm.tools;
003    
004    // Used to identify objects that fulfill a certain condition, e.g. when filtering a collection
005    public interface Predicate<T> {
006        // @return whether the object passes the test or not
007        public boolean evaluate(T object);
008    }