public enum ComparisonOperator extends Enum<ComparisonOperator> implements Operator
Enum Constant and Description |
---|
EQUALS
The equal operator.
|
GT
The greater than operator.
|
GTE
The greater than or equal operator.
|
LT
The less than operator.
|
LTE
The less than or equal operator.
|
NE
The not equal operator.
|
Modifier and Type | Method and Description |
---|---|
String |
getToken()
The token for the operator that can be sent to the server.
|
Version |
getVersion()
Returns the first MongoDB version to support the operator.
|
static ComparisonOperator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ComparisonOperator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ComparisonOperator EQUALS
public static final ComparisonOperator GT
public static final ComparisonOperator GTE
public static final ComparisonOperator LT
public static final ComparisonOperator LTE
public static final ComparisonOperator NE
public static ComparisonOperator[] values()
for (ComparisonOperator c : ComparisonOperator.values()) System.out.println(c);
public static ComparisonOperator 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 getToken()
public Version getVersion()
getVersion
in interface Operator
null
then the version is not known and can be
assumed to be all currently supported versions.Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.