-
Notifications
You must be signed in to change notification settings - Fork 35
T_CodeJam_Ranges_Range_2
andrewvk edited this page Jul 1, 2016
·
4 revisions
Describes a range of the values with a key attached.
Namespace: CodeJam.Ranges
Assembly: CodeJam (in CodeJam.dll) Version: 1.1.0.0 (1.1.0.0)
C#
[SerializableAttribute]
public struct Range<T, TKey> : IRangeFactory<T, Range<T, TKey>>,
IRange<T>, IEquatable<Range<T, TKey>>, IFormattable
VB
<SerializableAttribute>
Public Structure Range(Of T, TKey)
Implements IRangeFactory(Of T, Range(Of T, TKey)),
IRange(Of T), IEquatable(Of Range(Of T, TKey)),
IFormattable
F#
[<SealedAttribute>]
[<SerializableAttribute>]
type Range<'T, 'TKey> =
struct
interface IRangeFactory<'T, Range<'T, 'TKey>>
interface IRange<'T>
interface IEquatable<Range<'T, 'TKey>>
interface IFormattable
end
- T
- The type of the value. Should implement or .
- TKey
- The type of the range key
Name | Description | |
---|---|---|
![]() |
Range(T, TKey)(T, T, TKey) | Creates instance of |
![]() |
Range(T, TKey)(RangeBoundaryFrom(T), RangeBoundaryTo(T), TKey) | Creates instance of |
Name | Description | |
---|---|---|
![]() |
From | Boundary From. Limits the values from the left. |
![]() |
FromValue | The value of Boundary From. |
![]() |
IsEmpty | The range is empty, ∅. |
![]() |
IsInfinite | The range is Infinite range (-∞..+∞). |
![]() |
IsNotEmpty | The range is NOT empty, ≠ ∅ |
![]() |
IsSinglePoint | The range is Zero length range (the values of the boundary From and the boundary To are the same). |
![]() |
Key | The value associated with the range. |
![]() |
To | Boundary To. Limits the values from the right. |
![]() |
ToValue | The value of Boundary To. |
Name | Description | |
---|---|---|
![]() |
Equals(Object) | Indicates whether the current range and a specified object are equal. (Overrides ValueType.Equals(Object).) |
![]() |
Equals(Range(T, TKey)) | Indicates whether the current range is equal to another. |
![]() |
GetHashCode | Returns a hash code for the current range. (Overrides ValueType.GetHashCode().) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
ToString() | Returns string representation of the range. (Overrides ValueType.ToString().) |
![]() |
ToString(String) | Returns string representation of the range using the specified format string. If T does not implement the format string is ignored. |
![]() |
ToString(String, IFormatProvider) | Returns string representation of the range using the specified format string. If T does not implement the format string is ignored. |
Name | Description | |
---|---|---|
![]() ![]() |
Equality | Implements the operator ==. |
![]() ![]() |
Inequality | Implements the operator !=. |
CodeJam.Ranges Namespace
System.IComparable(T)
System.IComparable