NanoByte.Common
2.7.0
|
Represents a tuple of comparable elements. More...
Public Member Functions | |
ComparableTuple (T key, T value) | |
Creates a new comparable tuple. More... | |
override string | ToString () |
Returns the tuple in the form "Key = Value". Not safe for parsing! More... | |
bool | Equals (ComparableTuple< T > other) |
override bool | Equals (object? obj) |
override int | GetHashCode () |
int | CompareTo (ComparableTuple< T > other) |
Static Public Member Functions | |
static bool | operator== (ComparableTuple< T > left, ComparableTuple< T > right) |
static bool | operator!= (ComparableTuple< T > left, ComparableTuple< T > right) |
static bool | operator< (ComparableTuple< T > left, ComparableTuple< T > right) |
static bool | operator> (ComparableTuple< T > left, ComparableTuple< T > right) |
static bool | operator<= (ComparableTuple< T > left, ComparableTuple< T > right) |
static bool | operator>= (ComparableTuple< T > left, ComparableTuple< T > right) |
Public Attributes | |
readonly T | Key |
The first element of the tuple. More... | |
readonly T | Value |
The second element of the tuple. More... | |
Represents a tuple of comparable elements.
T | : | IEquatable<T> | |
T | : | IComparable<T> |
|
inline |
Creates a new comparable tuple.
key | The first element of the tuple. |
value | The second element of the tuple. |
override string NanoByte.Common.Collections.ComparableTuple< T >.ToString | ( | ) |
Returns the tuple in the form "Key = Value". Not safe for parsing!
readonly T NanoByte.Common.Collections.ComparableTuple< T >.Key |
The first element of the tuple.
readonly T NanoByte.Common.Collections.ComparableTuple< T >.Value |
The second element of the tuple.