Predicate

From NovaOrdis Knowledge Base
Revision as of 19:46, 29 March 2018 by Ovidiu (talk | contribs) (→‎Overview)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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);

    ...
}

Primitive Type Predicates

Composition Methods

The precedence of methods and() and or() is managed from left to right using their positions in the chain.