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

com.softicar.platform.common.core.interfaces.Predicates Maven / Gradle / Ivy

Go to download

The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.

There is a newer version: 50.0.0
Show newest version
package com.softicar.platform.common.core.interfaces;

import java.util.function.Predicate;

public class Predicates {

	private static final Predicate ALWAYS = x -> true;
	private static final Predicate NEVER = x -> false;

	@SuppressWarnings("unchecked")
	public static  Predicate always() {

		return (Predicate) ALWAYS;
	}

	@SuppressWarnings("unchecked")
	public static  Predicate never() {

		return (Predicate) NEVER;
	}
}