Last change
on this file since 8127 was 7509, checked in by stoecker, 10 years ago |
remove tabs
|
-
Property svn:eol-style
set to
native
|
File size:
517 bytes
|
Rev | Line | |
---|
[3177] | 1 | // License: GPL. For details, see LICENSE file.
|
---|
| 2 | package org.openstreetmap.josm.tools;
|
---|
| 3 |
|
---|
[6452] | 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 | */
|
---|
[3177] | 10 | public interface Predicate<T> {
|
---|
[7509] | 11 |
|
---|
[6452] | 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 | */
|
---|
[3177] | 17 | public boolean evaluate(T object);
|
---|
| 18 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.