-
Notifications
You must be signed in to change notification settings - Fork 35
T_CodeJam_Ranges_CompositeRange_2
andrewvk edited this page Nov 5, 2016
·
3 revisions
Describes a range of the values.
Namespace: CodeJam.Ranges
Assembly: CodeJam (in CodeJam.dll) Version: 1.1.0.0 (1.1.0.0)
C#
[SerializableAttribute]
public struct CompositeRange<T, TKey> : IEquatable<CompositeRange<T, TKey>>,
IFormattable, ICompositeRange<T>
VB
<SerializableAttribute>
Public Structure CompositeRange(Of T, TKey)
Implements IEquatable(Of CompositeRange(Of T, TKey)),
IFormattable, ICompositeRange(Of T)
F#
[<SealedAttribute>]
[<SerializableAttribute>]
type CompositeRange<'T, 'TKey> =
struct
interface IEquatable<CompositeRange<'T, 'TKey>>
interface IFormattable
interface ICompositeRange<'T>
end
- T
- The type of the value. Should implement or .
- TKey
- The type of the range key
Name | Description | |
---|---|---|
CompositeRange(T, TKey)(Range(T, TKey)) | Creates instance of . | |
CompositeRange(T, TKey)(IEnumerable(Range(T, TKey))) | Creates instance of . |
Name | Description | |
---|---|---|
ContainingRange | Range that contains all subranges. | |
IsEmpty | The composite range is empty, ∅. | |
IsMerged | The composite range cannot be simplified anymore. Subranges do not intersect and start one exactly after another. | |
IsNotEmpty | The composite range is NOT empty, ≠ ∅ | |
SubRanges | Collection of subranges. |
Name | Description | |
---|---|---|
Equals(Object) | Indicates whether the current range and a specified object are equal. (Overrides ValueType.Equals(Object).) | |
Equals(CompositeRange(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.) | |
Merge | Returns simplified composite range. Adjacent ranges with same keys will be merged. | |
ToString() | Returns string representation of the range. (Overrides ValueType.ToString().) | |
ToString(IFormatProvider) | Returns string representation of the range using the specified format string. If T does not implement the format string is ignored. | |
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 !=. |
Name | Description | |
---|---|---|
Empty | Empty range, ∅ | |
Infinite | Infinite range, (-∞..+∞) |
CodeJam.Ranges Namespace
System.IComparable(T)
System.IComparable