org.deegree.coverage.rangeset
Class SingleValue<T extends Comparable<T>>
java.lang.Object
org.deegree.coverage.rangeset.SingleValue<T>
- Type Parameters:
T - type of the value
public class SingleValue<T extends Comparable<T>>
- extends Object
The SingleValue denotes a single typed value in a range set.
- Version:
- $Revision: 19041 $, $Date: 2009-08-11 17:04:57 +0200 (Di, 11 Aug 2009) $
- Author:
- Rutger Bezema, last edited by: $Author: rbezema $
value
public final T extends Comparable<T> value
- the value
type
public final ValueType type
- the type
SingleValue
public SingleValue(ValueType type,
T value)
- Parameters:
type - describing the type of the value.value - the actual value
equals
public boolean equals(Object other)
- Overrides:
equals in class Object
- Parameters:
other - to test against
- Returns:
- true if the given singlevalue matches this one, e.g. the value and types are equal.
createFromValue
public static SingleValue<?> createFromValue(String type,
Number value)
throws NumberFormatException
- Parameters:
type - value -
- Returns:
- the typed SingleValue.
- Throws:
NumberFormatException
createFromString
public static SingleValue<?> createFromString(String type,
String value)
throws NumberFormatException
- Parameters:
type - value -
- Returns:
- the typed SingleValue.
- Throws:
NumberFormatException
toString
public String toString()
- Overrides:
toString in class Object
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org]]>