-
Notifications
You must be signed in to change notification settings - Fork 35
T_CodeJam_Ranges_CompositeRange_2
Andrew Koryavchenko edited this page Jun 17, 2018
·
3 revisions
Describes a range of the values.
Describes a composite range that contains some subranges.
Namespace: CodeJam.Ranges
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
[SerializableAttribute]
public struct CompositeRange<T, TKey> : IEquatable<CompositeRange<T, TKey>>,
IFormattable
VB
<SerializableAttribute>
Public Structure CompositeRange(Of T, TKey)
Implements IEquatable(Of CompositeRange(Of T, TKey)),
IFormattable
F#
[<SealedAttribute>]
[<SerializableAttribute>]
type CompositeRange<'T, 'TKey> =
struct
interface IEquatable<CompositeRange<'T, 'TKey>>
interface IFormattable
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 | |
---|---|---|
Contains(T) | Determines whether the composite range contains the specified value. | |
Contains(CompositeRange(T)) | Determines whether the composite range contains another range. | |
Contains(Range(T)) | Determines whether the composite range contains another range. | |
Contains(RangeBoundaryFrom(T)) | Determines whether the composite range contains the specified range boundary. | |
Contains(RangeBoundaryTo(T)) | Determines whether the composite range contains the specified range boundary. | |
Contains(T, T) | Determines whether the composite range contains another range. | |
Contains(TKey2)(CompositeRange(T, TKey2)) | Determines whether the composite range contains another range. | |
Contains(TKey2)(Range(T, TKey2)) | Determines whether the composite range contains another range. | |
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. | |
Except(CompositeRange(T)) | Returns source range with other range excluded. | |
Except(Range(T)) | Returns source range with other range excluded. | |
Except(T, T) | Returns source range with other range excluded. | |
Except(TKey2)(CompositeRange(T, TKey2)) | Returns source range with other range excluded. | |
Except(TKey2)(Range(T, TKey2)) | Returns source range with other range excluded. | |
ExtendFrom(T) | Extends the range from the left. | |
ExtendFrom(RangeBoundaryFrom(T)) | Extends the range from the left. | |
ExtendTo(T) | Extends the range from the right. | |
ExtendTo(RangeBoundaryTo(T)) | Extends the range from the right. | |
GetComplementation | Returns complementation composite range. Result range contains result of (infinityRange.Exclude(this). | |
GetHashCode | Returns a hash code for the current range. (Overrides ValueType.GetHashCode().) | |
GetIntersection(T) | Returns ranges that has intersections with passed range. | |
GetIntersection(Range(T)) | Returns ranges that has intersections with passed range. | |
GetIntersection(T, T) | Returns ranges that has intersections with passed range. | |
GetIntersection(TKey2)(Range(T, TKey2)) | Returns ranges that has intersections with passed range. | |
GetIntersections | Returns all range intersections from the composite range. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HasIntersection(CompositeRange(T)) | Determines whether the composite range has intersection with another range. | |
HasIntersection(Range(T)) | Determines whether the composite range has intersection with another range. | |
HasIntersection(T, T) | Determines whether the composite has intersection with another range. | |
HasIntersection(TKey2)(CompositeRange(T, TKey2)) | Determines whether the composite range has intersection with another range. | |
HasIntersection(TKey2)(Range(T, TKey2)) | Determines whether the composite range has intersection with another range. | |
Intersect(CompositeRange(T)) | Returns an intersection of the the ranges. | |
Intersect(Range(T)) | Returns an intersection of the the ranges. | |
Intersect(T, T) | Returns an intersection of the the ranges. | |
Intersect(TKey2)(CompositeRange(T, TKey2)) | Returns an intersection of the the ranges. | |
Intersect(TKey2)(Range(T, TKey2)) | Returns an intersection of the the ranges. | |
MakeExclusive | Replaces inclusive boundaries with exclusive ones with the values from the selector callbacks | |
MakeInclusive | Replaces exclusive boundaries with inclusive ones with the values from the selector callbacks | |
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. | |
TrimFrom(T) | Trims the range from the left. | |
TrimFrom(RangeBoundaryFrom(T)) | Trims the range from the left. | |
TrimTo(T) | Trims the range from the right. | |
TrimTo(RangeBoundaryTo(T)) | Trims the range from the right. | |
Union(CompositeRange(T, TKey)) | Returns a union range containing all subranges. | |
Union(Range(T, TKey)) | Returns a union range containing all subranges. | |
WithKeys(TKey2)(Func(TKey, TKey2)) | Creates a new composite range with the key specified. | |
WithKeys(TKey2)(TKey2) | Creates a new composite range with the key specified. | |
WithoutKeys | Removes keys from the composite range. | |
WithValues(T2)(Func(T, T2)) | Creates a new composite range with the key specified. | |
WithValues(T2)(Func(T, T2), Func(T, T2)) | Creates a new composite range with the key specified. |
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