Example usage for com.badlogic.gdx.utils Predicate Predicate

List of usage examples for com.badlogic.gdx.utils Predicate Predicate

Introduction

In this page you can find the example usage for com.badlogic.gdx.utils Predicate Predicate.

Prototype

Predicate

Source Link

Usage

From source file:com.vlaaad.common.util.Predicates.java

License:Open Source License

public static <T> Predicate<T> eq(final T value) {
    return new Predicate<T>() {
        @Override/*w  ww .  j a v  a2s . c  om*/
        public boolean evaluate(T arg0) {
            return arg0 == value;
        }
    };
}