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

me.shaftesbury.utils.functional.Case Maven / Gradle / Ivy

There is a newer version: 1.17
Show newest version
package me.shaftesbury.utils.functional;

/**
 * Created with IntelliJ IDEA.
 * User: Bob
 * Date: 04/12/13
 * Time: 22:56
 * To change this template use File | Settings | File Templates.
 */
public final class Case
{
    private final Func check;
    private final Func result;
    public Case(final Func chk,final Func res) {this.check = chk; this.result=res;}
    public final Boolean predicate(final A a) { return check.apply(a); }
    public final B results(final A a) { return result.apply(a); }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy