public enum ValueType extends Enum<ValueType>
Enum Constant and Description |
---|
ANY
Deprecated.
|
DATE |
DOUBLE |
GEOPOINT |
IP |
LONG |
NUMBER |
NUMERIC |
STRING |
Modifier and Type | Method and Description |
---|---|
boolean |
compatibleWith(IndexFieldData fieldData) |
ValueFormat |
defaultFormat() |
String |
description() |
Class<? extends ValuesSource> |
getValuesSourceType() |
boolean |
isA(ValueType valueType) |
boolean |
isFloatingPoint() |
boolean |
isGeoPoint() |
boolean |
isNotA(ValueType valueType) |
boolean |
isNumeric() |
static ValueType |
resolveForScript(String type) |
String |
toString() |
static ValueType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ValueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Deprecated public static final ValueType ANY
public static final ValueType STRING
public static final ValueType LONG
public static final ValueType DOUBLE
public static final ValueType NUMBER
public static final ValueType DATE
public static final ValueType IP
public static final ValueType NUMERIC
public static final ValueType GEOPOINT
public static ValueType[] values()
for (ValueType c : ValueType.values()) System.out.println(c);
public static ValueType 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 description()
public Class<? extends ValuesSource> getValuesSourceType()
public boolean compatibleWith(IndexFieldData fieldData)
public boolean isA(ValueType valueType)
public boolean isNotA(ValueType valueType)
public ValueFormat defaultFormat()
public boolean isNumeric()
public boolean isFloatingPoint()
public boolean isGeoPoint()
Copyright © 2009–2015. All rights reserved.