Predicate: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 12: Line 12:


<syntaxhighlight lang='java'>
<syntaxhighlight lang='java'>
@FunctionalInterface
public interface Predicate<T> {
    boolean test​(T t);
    ...
}
</syntaxhighlight>
</syntaxhighlight>


=Composition Methods=
=Composition Methods=

Revision as of 19:04, 26 March 2018

External

Internal

Overview

A predicate is a function that evaluates an argument and returns a boolean.

@FunctionalInterface
public interface Predicate<T> {

    boolean test(T t);
    ...
}

Composition Methods