Public Member Functions | |
| IntervalT (T minimum, T maximum) | |
| Initializes a new instance of the IntervalT<T> class with specified boundaries. | |
| override bool | Equals (object? obj) |
| Determines whether the specified object is equal to the current interval. | |
| override int | GetHashCode () |
| Returns a hash code for the current interval. | |
| override string | ToString () |
| Returns a string representation of the interval. | |
Properties | |
| T | Minimum [get] |
| Gets the lower boundary of the interval. | |
| T | Maximum [get] |
| Gets the upper boundary of the interval. | |
Represents an interval consisting of a lower and upper boundary value.
| T | The type of the boundaries. Must be a value type implementing IComparable. |
| T | : | struct | |
| T | : | IComparable<T> |
|
inline |
Initializes a new instance of the IntervalT<T> class with specified boundaries.
| minimum | The lower boundary. |
| maximum | The upper boundary. |
| CommonInvalidParameterException | Thrown when minimum is greater than maximum . |
|
inline |
Determines whether the specified object is equal to the current interval.
| obj | The object to compare with the current interval. |
true if the specified object is equal to the current interval; otherwise, false.
|
inline |
Returns a hash code for the current interval.
|
inline |
Returns a string representation of the interval.
|
get |
Gets the upper boundary of the interval.
|
get |
Gets the lower boundary of the interval.