com.vmware.vise.data.query
Enum Comparator
java.lang.Object
java.lang.Enum<Comparator>
com.vmware.vise.data.query.Comparator
- All Implemented Interfaces:
- Serializable, Comparable<Comparator>
public enum Comparator
- extends Enum<Comparator>
Defines the allowable comparisons to be done
Eg. For comparing property values in PropertyConstraints
- Author:
- VMware
Method Summary |
static Comparator |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Comparator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
EQUALS
public static final Comparator EQUALS
EQUALS_ANY_OF
public static final Comparator EQUALS_ANY_OF
NOT_EQUALS
public static final Comparator NOT_EQUALS
GREATER
public static final Comparator GREATER
SMALLER
public static final Comparator SMALLER
STARTS_WITH
public static final Comparator STARTS_WITH
ENDS_WITH
public static final Comparator ENDS_WITH
CONTAINS
public static final Comparator CONTAINS
CONTAINS_ANY_OF
public static final Comparator CONTAINS_ANY_OF
MATCHES
public static final Comparator MATCHES
TEXTUALLY_MATCHES
public static final Comparator TEXTUALLY_MATCHES
RANGES_BETWEEN
public static final Comparator RANGES_BETWEEN
values
public static Comparator[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Comparator c : Comparator.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Comparator valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
Copyright @ 2012 VMware, Inc. All rights reserved.