Last change
on this file since 10062 was 8512, checked in by Don-vip, 9 years ago |
checkstyle: redundant modifiers
|
-
Property svn:eol-style
set to
native
|
File size:
510 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package 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 | */
|
---|
10 | public 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 | boolean evaluate(T object);
|
---|
18 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.