Package ch.rfin.util
Class Predicates.Primitive
java.lang.Object
ch.rfin.util.Predicates.Primitive
- Enclosing class:
- Predicates
public static class Predicates.Primitive
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description Primitive() -
Method Summary
Modifier and Type Method Description static java.util.function.IntPredicateatLeast(int n)static java.util.function.IntPredicateatMost(int n)static java.util.function.IntPredicatebetween(int min, int max)static java.util.function.IntPredicategreaterThan(int n)static java.util.function.IntPredicatelessThan(int n)static java.util.function.IntPredicatenegative()static booleannegative(int n)static java.util.function.IntPredicateoutside(int min, int max)static java.util.function.IntPredicatepositive()static booleanpositive(int n)static java.util.function.IntPredicatezero()static booleanzero(int n)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Primitive
public Primitive()
-
-
Method Details
-
zero
public static boolean zero(int n) -
positive
public static boolean positive(int n) -
negative
public static boolean negative(int n) -
zero
public static java.util.function.IntPredicate zero() -
positive
public static java.util.function.IntPredicate positive() -
negative
public static java.util.function.IntPredicate negative() -
lessThan
public static java.util.function.IntPredicate lessThan(int n) -
atMost
public static java.util.function.IntPredicate atMost(int n) -
greaterThan
public static java.util.function.IntPredicate greaterThan(int n) -
atLeast
public static java.util.function.IntPredicate atLeast(int n) -
between
public static java.util.function.IntPredicate between(int min, int max) -
outside
public static java.util.function.IntPredicate outside(int min, int max)
-