Example usage for org.apache.commons.collections4 IterableUtils contains

List of usage examples for org.apache.commons.collections4 IterableUtils contains

Introduction

In this page you can find the example usage for org.apache.commons.collections4 IterableUtils contains.

Prototype

public static <E> boolean contains(final Iterable<E> iterable, final Object object) 

Source Link

Document

Checks if the object is contained in the given iterable.

Usage

From source file:samples.ObjectPredicator.java

public static <T> Predicate<Iterable<T>> contains(final T element) {
    return t -> IterableUtils.contains(t, element);
}