Public Member Functions | |
SetNode (double key, T data) | |
Constructs a node with the given key and data. | |
T | getData () |
Returns the data for this node. | |
double | getKey () |
Returns the cached key for this node. | |
void | setKey (double newKey) |
Sets the key for this node to the new key. | |
String | toString () |
Returns a string representation of this node. | |
Private Attributes | |
double | nodeKey |
The cached key value for this node. | |
T | nodeData |
The data for this node. |
edu.cmu.hcii.calo.model.sorting.MutableSortedSet< E >.SetNode< T >.SetNode | ( | double | key, | |
T | data | |||
) |
Constructs a node with the given key and data.
key | the key | |
data | the data |
T edu.cmu.hcii.calo.model.sorting.MutableSortedSet< E >.SetNode< T >.getData | ( | ) |
Returns the data for this node.
double edu.cmu.hcii.calo.model.sorting.MutableSortedSet< E >.SetNode< T >.getKey | ( | ) |
Returns the cached key for this node.
void edu.cmu.hcii.calo.model.sorting.MutableSortedSet< E >.SetNode< T >.setKey | ( | double | newKey | ) |
Sets the key for this node to the new key.
newKey | the new key |
String edu.cmu.hcii.calo.model.sorting.MutableSortedSet< E >.SetNode< T >.toString | ( | ) |
Returns a string representation of this node.
Useful for debugging.
double edu.cmu.hcii.calo.model.sorting.MutableSortedSet< E >.SetNode< T >.nodeKey [private] |
The cached key value for this node.
T edu.cmu.hcii.calo.model.sorting.MutableSortedSet< E >.SetNode< T >.nodeData [private] |
The data for this node.