NodeTriplet\<T\> class (Nixill.Collections)
The NodeTriplet<T> class is a class instantiated by the following methods:
AVLTreeDictionary<K, V>.EntriesAround(K key)creates aNodeTriplet<KeyValuePair<K, V>>.AVLTreeDictionary<K, V>.KeysAround(K key)creates aNodeTriplet<K>.AVLTreeSet<T>.SearchAround(T value)creates aNodeTriplet<T>.
When created, it will contain:
- A lesser value, if the set/dictionary has a value/key lower than the one provided.
- An equal value, if the set/dictionary has a value/key equal to the one provided.
- A higher value, if the set/dictionary has a value/key higher than the one provided.
If the set/dictionary has no entries, then this will contain no values.
Type Parameters
T: The type of values contained in thisNodeTriplet<T>.
Properties
bool HasLesserValue-trueiff theNodeTriplet<T>contains a lesser value.bool HasEqualValue-trueiff theNodeTriplet<T>contains an equal value.bool HasHigherValue-trueiff theNodeTriplet<T>contains a higher value.T LesserValue- If theNodeTriplet<T>contains a lesser value, this retrieves that value. Otherwise, it throws anInvalidOperationException.T EqualValue- If theNodeTriplet<T>contains an equal value, this retrieves that value. Otherwise, it throws anInvalidOperationException.T HigherValue- If theNodeTriplet<T>contains a higher value, this retrieves that value. Otherwise, it throws anInvalidOperationException.