Class ShortPredicates
- java.lang.Object
-
- org.eclipse.collections.impl.block.factory.primitive.ShortPredicates
-
public final class ShortPredicates extends java.lang.Object
Provides a set of common predicates for short values. This file was automatically generated from template file primitivePredicates.stg.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
ShortPredicates.AlwaysFalseShortPredicate
private static class
ShortPredicates.AlwaysTrueShortPredicate
private static class
ShortPredicates.AndShortPredicate
private static class
ShortPredicates.EqualsShortPredicate
private static class
ShortPredicates.GreaterThanShortPredicate
private static class
ShortPredicates.LessThanShortPredicate
private static class
ShortPredicates.NotShortPredicate
private static class
ShortPredicates.OrShortPredicate
private static class
ShortPredicates.ShortIsEvenPredicate
private static class
ShortPredicates.ShortIsOddPredicate
-
Field Summary
Fields Modifier and Type Field Description private static ShortPredicate
ALWAYS_FALSE
private static ShortPredicate
ALWAYS_TRUE
private static ShortPredicates.ShortIsEvenPredicate
IS_EVEN
private static ShortPredicates.ShortIsOddPredicate
IS_ODD
-
Constructor Summary
Constructors Modifier Constructor Description private
ShortPredicates()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ShortPredicate
alwaysFalse()
static ShortPredicate
alwaysTrue()
static ShortPredicate
and(ShortPredicate one, ShortPredicate two)
static ShortPredicate
equal(short expected)
static ShortPredicate
greaterThan(short expected)
static ShortPredicate
isEven()
static ShortPredicate
isOdd()
static ShortPredicate
lessThan(short expected)
static ShortPredicate
not(ShortPredicate negate)
static ShortPredicate
or(ShortPredicate one, ShortPredicate two)
-
-
-
Field Detail
-
IS_EVEN
private static final ShortPredicates.ShortIsEvenPredicate IS_EVEN
-
IS_ODD
private static final ShortPredicates.ShortIsOddPredicate IS_ODD
-
ALWAYS_TRUE
private static final ShortPredicate ALWAYS_TRUE
-
ALWAYS_FALSE
private static final ShortPredicate ALWAYS_FALSE
-
-
Method Detail
-
equal
public static ShortPredicate equal(short expected)
-
lessThan
public static ShortPredicate lessThan(short expected)
-
greaterThan
public static ShortPredicate greaterThan(short expected)
-
isEven
public static ShortPredicate isEven()
-
isOdd
public static ShortPredicate isOdd()
-
alwaysTrue
public static ShortPredicate alwaysTrue()
-
alwaysFalse
public static ShortPredicate alwaysFalse()
-
and
public static ShortPredicate and(ShortPredicate one, ShortPredicate two)
-
or
public static ShortPredicate or(ShortPredicate one, ShortPredicate two)
-
not
public static ShortPredicate not(ShortPredicate negate)
-
-