public class NodeValue extends Object implements Comparable<NodeValue>, Serializable
DataSets can use them in different ways.| Modifier and Type | Field and Description | 
|---|---|
protected NodeValueType | 
type  | 
protected Comparable | 
value  | 
| Constructor and Description | 
|---|
NodeValue(boolean isnumeric)
Create a NodeValue indicating whether it is a numeric or non numeric value. 
 | 
NodeValue(Double value)
Create a  
NodeValue using a Double value. | 
NodeValue(String value)
Create a NodeValue as a String. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
compareTo(NodeValue o)  | 
boolean | 
equals(Object o)  | 
NodeValueType | 
getType()
Get the Type of NodeValue (numeric, String, Vector) 
 | 
Comparable | 
getValue()
Get the value of this  
NodeValue | 
int | 
hashCode()
This class is only a representation of its value, so its hash is the same as its value. 
 | 
String | 
toString()  | 
protected Comparable value
protected NodeValueType type
public NodeValue(Double value)
NodeValue using a Double value.value - - the value this NodeValue representspublic NodeValue(boolean isnumeric)
isnumeric - whether this NodeValue is a numeric value (i.e. type double).public NodeValue(String value)
value - The string value this Node containspublic NodeValueType getType()
NodeValuepublic Comparable getValue()
NodeValueNodeValuepublic int compareTo(NodeValue o)
compareTo in interface Comparable<NodeValue>public int hashCode()
Copyright © 2018. All rights reserved.