org.deegree.coverage.rangeset
Enum ValueType
java.lang.Object
java.lang.Enum<ValueType>
org.deegree.coverage.rangeset.ValueType
- All Implemented Interfaces:
- Serializable, Comparable<ValueType>
public enum ValueType
- extends Enum<ValueType>
The ValueType
class defines simple types for single and interval values.
- Version:
- $Revision: 31644 $, $Date: 2011-08-24 22:27:43 +0200 (Wed, 24 Aug 2011) $
- Author:
- Rutger Bezema, last edited by: $Author: mschneider $
Byte
public static final ValueType Byte
Short
public static final ValueType Short
Integer
public static final ValueType Integer
Long
public static final ValueType Long
Double
public static final ValueType Double
Float
public static final ValueType Float
String
public static final ValueType String
Void
public static final ValueType Void
- not known
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 name
NullPointerException
- if the argument is null
fromString
public static ValueType fromString(String type)
- Parameters:
type
-
- Returns:
- the value type of string if the given type is not known.
toString
public String toString()
- Overrides:
toString
in class Enum<ValueType>
isCompatible
public boolean isCompatible(ValueType type)
- Parameters:
type
-
- Returns:
- true if the given types are compatible, e.g. if they are substitutable, byte and short are equals.
Copyright © 2011. All Rights Reserved.