RangeTRange, TState Class

Represents a range of values defined by a start and end value with encapsulated state.

Definition

Namespace: Gemstone
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.110 -- Release Build+3e0464f4461df4d3e1175b13966eb47ff832554d
public sealed class Range<TRange, TState>
Inheritance
Object    RangeTRange, TState

Type Parameters

TRange

[Missing <typeparam name="TRange"/> documentation for "T:Gemstone.Range`2"]

TState

[Missing <typeparam name="TState"/> documentation for "T:Gemstone.Range`2"]

Remarks

This class provides flexibility in allowing the user to define their own state and how it is merged. Because of potentially undesirable behavior which could result from merging objects inherited from this class, the class has been sealed to prevent inheritance.

Constructors

RangeTRange, TState Creates a new instance of the RangeTRange, TState class using the default comparer.

Properties

End Gets the end value of the range.
Start Gets the start value of the range.
State Gets the state encapsulated by the range.

Methods

Contains(TRange) Determines whether the range contains the given value.
Contains(RangeTRange, TState) Determines whether the range contains the given range.
Contains(TRange, IComparerTRange) Determines whether the range contains the given value.
Contains(TRange, ComparisonTRange) Determines whether the range contains the given value.
Contains(RangeTRange, TState, IComparerTRange) Determines whether the range contains the given range.
Contains(RangeTRange, TState, ComparisonTRange) Determines whether the range contains the given range.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
Merge(IEnumerableRangeTRange, TState) Merges all ranges in a collection of ranges.
Merge(RangeTRange, TState) Merges two ranges into one range that fully encompasses both ranges.
Merge(IEnumerableRangeTRange, TState, ComparerTRange) Merges all ranges in a collection of ranges.
Merge(IEnumerableRangeTRange, TState, ComparisonTRange) Merges all ranges in a collection of ranges.
Merge(RangeTRange, TState, IComparerTRange) Merges two ranges into one range that fully encompasses both ranges.
Merge(RangeTRange, TState, ComparisonTRange) Merges two ranges into one range that fully encompasses both ranges.
MergeAllOverlapping(IEnumerableRangeTRange, TState) Merges all consecutive groups of overlapping ranges in a collection and returns the resulting collection of ranges.
MergeAllOverlapping(IEnumerableRangeTRange, TState, IComparerTRange) Merges all consecutive groups of overlapping ranges in a collection and returns the resulting collection of ranges.
MergeAllOverlapping(IEnumerableRangeTRange, TState, ComparisonTRange) Merges all consecutive groups of overlapping ranges in a collection and returns the resulting collection of ranges.
MergeConsecutiveOverlapping(IEnumerableRangeTRange, TState) Merges all consecutive groups of overlapping ranges in a collection and returns the resulting collection of ranges.
MergeConsecutiveOverlapping(IEnumerableRangeTRange, TState, IComparerTRange) Merges all consecutive groups of overlapping ranges in a collection and returns the resulting collection of ranges.
MergeConsecutiveOverlapping(IEnumerableRangeTRange, TState, ComparisonTRange) Merges all consecutive groups of overlapping ranges in a collection and returns the resulting collection of ranges.
Overlaps(RangeTRange, TState) Determines whether the range overlaps with the given range.
Overlaps(RangeTRange, TState, IComparerTRange) Determines whether the range overlaps with the given range.
Overlaps(RangeTRange, TState, ComparisonTRange) Determines whether the range overlaps with the given range.
ToStringReturns a string that represents the current object.
(Inherited from Object)

Extension Methods

GetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
GetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)

See Also