blob: 6da1f6d6d7d13d93ac048cf31af8e4427195e0da (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.objects;
/**
* A predicate that is able to say either true or false when presented with a
* generic object.
*
* @author Simon Thoresen Hult
*/
public interface ObjectPredicate {
/**
* Apply this predicate to the given object.
*
* @param obj The object to check.
* @return True or false.
*/
boolean check(Object obj);
}
|