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

Last change on this file since 8233 was 7509, checked in by stoecker, 10 years ago

remove tabs

  • Property svn:eol-style set to native
File size: 517 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.tools;
3
4/**
5 * Used to identify objects that fulfill a certain condition, e.g. when filtering a collection.
6 *
7 * @param <T> The objects type
8 * @since 3177
9 */
10public interface Predicate<T> {
11
12 /**
13 * Determines whether the object passes the test or not
14 * @param object The object to evaluate
15 * @return {@code true} if the object passes the test, {@code false} otherwise
16 */
17 public boolean evaluate(T object);
18}
Note: See TracBrowser for help on using the repository browser.