public enum Compare extends Enum<Compare> implements BiPredicate<Object,Object>
Compare
is a BiPredicate
that determines whether the first argument is ==
, !=
,
>
, >=
, <
, <=
to the second argument.Enum Constant and Description |
---|
eq |
gt |
gte |
inside |
lt |
lte |
neq |
outside |
Modifier and Type | Method and Description |
---|---|
static boolean |
hasCompare(String name) |
abstract Compare |
opposite()
Produce the opposite representation of the current
Compare enum. |
abstract boolean |
test(Object first,
Object second) |
static Compare |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Compare[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
and, negate, or
public static final Compare eq
public static final Compare neq
public static final Compare gt
public static final Compare gte
public static final Compare lt
public static final Compare lte
public static final Compare inside
public static final Compare outside
public static Compare[] values()
for (Compare c : Compare.values()) System.out.println(c);
public static Compare valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract boolean test(Object first, Object second)
test
in interface BiPredicate<Object,Object>
public abstract Compare opposite()
Compare
enum.public static final boolean hasCompare(String name)
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.