public enum Comparators extends Enum<Comparators> implements Comparator
Comparator.| Enum Constant and Description |
|---|
ENDS_WITH |
EQUAL |
EQUAL_IGNORE_CASE |
EXIST |
GREATER_THAN |
GREATER_THAN_OR_EQUAL |
LESS_THAN |
LESS_THAN_OR_EQUAL |
LIKE |
NOT_ENDS_WITH |
NOT_EQUAL |
NOT_LIKE |
NOT_NULL |
NOT_STARTS_WITH |
NULL |
STARTS_WITH |
| Modifier and Type | Method and Description |
|---|---|
javax.persistence.criteria.Predicate |
build(javax.persistence.criteria.CriteriaBuilder cb,
javax.persistence.criteria.Expression<?> x,
Object y) |
static Comparator |
bySymbol(String symbol) |
String |
toString() |
static Comparators |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Comparators[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Comparators GREATER_THAN_OR_EQUAL
public static final Comparators LESS_THAN_OR_EQUAL
public static final Comparators EQUAL
public static final Comparators EQUAL_IGNORE_CASE
public static final Comparators NOT_NULL
public static final Comparators NULL
public static final Comparators EXIST
public static final Comparators NOT_EQUAL
public static final Comparators LIKE
public static final Comparators STARTS_WITH
public static final Comparators NOT_STARTS_WITH
public static final Comparators ENDS_WITH
public static final Comparators NOT_ENDS_WITH
public static final Comparators NOT_LIKE
public static final Comparators LESS_THAN
public static final Comparators GREATER_THAN
public static Comparators[] values()
for (Comparators c : Comparators.values()) System.out.println(c);
public static Comparators 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 String toString()
toString in class Enum<Comparators>public javax.persistence.criteria.Predicate build(javax.persistence.criteria.CriteriaBuilder cb,
javax.persistence.criteria.Expression<?> x,
Object y)
build in interface Comparatorpublic static Comparator bySymbol(String symbol)
Copyright © 2017. All rights reserved.