Enum ValueType
- java.lang.Object
-
- java.lang.Enum<ValueType>
-
- me.snowdrop.istio.api.mixer.config.descriptor.ValueType
-
- All Implemented Interfaces:
Serializable,Comparable<ValueType>
public enum ValueType extends Enum<ValueType>
ValueType describes the types that values in the Istio system can take. These are used to describe the type of Attributes at run time, describe the type of the result of evaluating an expression, and to describe the runtime type of fields of other descriptors.- Author:
- Christophe Laprun
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLAn undiscriminated boolean value.DNS_NAMEA DNS name.DOUBLEAn undiscriminated 64-bit floating-point value.DURATIONA span between two points in time.EMAIL_ADDRESSAn email address.INT64An undiscriminated 64-bit signed integer.IP_ADDRESSAn IP address.STRINGAn undiscriminated variable-length string.STRING_MAPA map string - string, typically used by headers.TIMESTAMPA point in time.URIA URI.VALUE_TYPE_UNSPECIFIEDInvalid, default value.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ValueTypevalueOf(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.
-
-
-
Enum Constant Detail
-
VALUE_TYPE_UNSPECIFIED
public static final ValueType VALUE_TYPE_UNSPECIFIED
Invalid, default value.
-
STRING
public static final ValueType STRING
An undiscriminated variable-length string.
-
INT64
public static final ValueType INT64
An undiscriminated 64-bit signed integer.
-
DOUBLE
public static final ValueType DOUBLE
An undiscriminated 64-bit floating-point value.
-
BOOL
public static final ValueType BOOL
An undiscriminated boolean value.
-
TIMESTAMP
public static final ValueType TIMESTAMP
A point in time.
-
IP_ADDRESS
public static final ValueType IP_ADDRESS
An IP address.
-
EMAIL_ADDRESS
public static final ValueType EMAIL_ADDRESS
An email address.
-
URI
public static final ValueType URI
A URI.
-
DNS_NAME
public static final ValueType DNS_NAME
A DNS name.
-
DURATION
public static final ValueType DURATION
A span between two points in time.
-
STRING_MAP
public static final ValueType STRING_MAP
A map string - string, typically used by headers.
-
-
Method Detail
-
values
public static ValueType[] 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 (ValueType c : ValueType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ValueType 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 nameNullPointerException- if the argument is null
-
-