All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.tommyettinger.gand.utils.ObjectPredicate Maven / Gradle / Ivy

There is a newer version: 0.3.1
Show newest version
package com.github.tommyettinger.gand.utils;

/**
 * Represents an operation that accepts a single {@code T}-valued argument and
 * returns a {@code boolean} result.
 * 
* This is identical to {@code Predicate} in Java 8, and is present here so environments * that support lambdas but not Java 8 APIs (such as RoboVM) can use it. *
* This is a functional interface whose functional method is {@link #test(Object)}. */ public interface ObjectPredicate { /** * Evaluates this predicate on the given argument. * * @param value the input argument * @return {@code true} if the input argument matches the predicate, * otherwise {@code false} */ boolean test(T value); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy