deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.coverage.rangeset
Class SingleValue<T extends Comparable<T>>

java.lang.Object
  extended by 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 $

Field Summary
 ValueType type
          the type
 T value
          the value
 
Constructor Summary
SingleValue(ValueType type, T value)
           
 
Method Summary
static SingleValue<?> createFromString(String type, String value)
           
static SingleValue<?> createFromValue(String type, Number value)
           
 boolean equals(Object other)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public final T extends Comparable<T> value
the value


type

public final ValueType type
the type

Constructor Detail

SingleValue

public SingleValue(ValueType type,
                   T value)
Parameters:
type - describing the type of the value.
value - the actual value
Method Detail

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

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>