source: josm/trunk/src/org/openstreetmap/josm/tools/Predicate.java @ 5241

Revision 3177, 312 bytes checked in by bastiK, 2 years ago (diff)

Filter: improved selection handling. (Don't allow to select filtered or disabled objects by clicking on them. Don't connect to hidden ways in add mode.)

  • Property svn:eol-style set to native
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.tools;
3
4// Used to identify objects that fulfill a certain condition, e.g. when filtering a collection
5public interface Predicate<T> {
6    // @return whether the object passes the test or not
7    public boolean evaluate(T object);
8}
Note: See TracBrowser for help on using the repository browser.