IDS peak ICV v1.3.0
Loading...
Searching...
No Matches
IntervalT< T > Class Template Reference

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.
 

Detailed Description

Represents an interval consisting of a lower and upper boundary value.

Template Parameters
TThe type of the boundaries. Must be a value type implementing IComparable.
Since
IDSImaging.Peak.Common 1.3
Type Constraints
T :struct 
T :IComparable<T> 

Definition at line 20 of file Interval.cs.

Constructor & Destructor Documentation

◆ IntervalT()

IntervalT ( T minimum,
T maximum )
inline

Initializes a new instance of the IntervalT<T> class with specified boundaries.

Parameters
minimumThe lower boundary.
maximumThe upper boundary.
Exceptions
CommonInvalidParameterExceptionThrown when minimum is greater than maximum .

Definition at line 30 of file Interval.cs.

Member Function Documentation

◆ Equals()

override bool Equals ( object? obj)
inline

Determines whether the specified object is equal to the current interval.

Parameters
objThe object to compare with the current interval.
Returns
true if the specified object is equal to the current interval; otherwise, false.

Definition at line 59 of file Interval.cs.

◆ GetHashCode()

override int GetHashCode ( )
inline

Returns a hash code for the current interval.

Definition at line 94 of file Interval.cs.

◆ ToString()

override string ToString ( )
inline

Returns a string representation of the interval.

Definition at line 102 of file Interval.cs.

Property Documentation

◆ Maximum

T Maximum
get

Gets the upper boundary of the interval.

Definition at line 50 of file Interval.cs.

◆ Minimum

T Minimum
get

Gets the lower boundary of the interval.

Definition at line 45 of file Interval.cs.