Skip to content

T_CodeJam_Ranges_CompositeRangeExtensions

Andrew Koryavchenko edited this page Jul 4, 2017 · 3 revisions

CompositeRangeExtensions Class

Extension methods for CompositeRange(T).

Extension methods for .

Extension methods for .

Inheritance Hierarchy

System.Object
  CodeJam.Ranges.CompositeRangeExtensions
Namespace: CodeJam.Ranges
Assembly: CodeJam (in CodeJam.dll) Version: 1.1.0.0 (1.1.0.0)

Syntax

C#

public static class CompositeRangeExtensions

VB

<ExtensionAttribute>
Public NotInheritable Class CompositeRangeExtensions

F#

[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type CompositeRangeExtensions =  class end

The CompositeRangeExtensions type exposes the following members.

Methods

 

Name Description
Public methodStatic member Contains(T)(CompositeRange(T), Range(T)) Determines whether the composite range contains another range.
Public methodStatic member Contains(T)(CompositeRange(T), RangeBoundaryFrom(T)) Determines whether the composite range contains the specified range boundary.
Public methodStatic member Contains(T)(CompositeRange(T), RangeBoundaryTo(T)) Determines whether the composite range contains the specified range boundary.
Public methodStatic member Contains(T)(CompositeRange(T), T) Determines whether the composite range contains the specified value.
Public methodStatic member Contains(T)(CompositeRange(T), T, T) Determines whether the composite range contains another range.
Public methodStatic member Contains(T, TKey2)(CompositeRange(T), Range(T, TKey2)) Determines whether the composite range contains another range.
Public methodStatic member Contains(T, TCompositeRange)(CompositeRange(T), TCompositeRange) Determines whether the composite range contains another range.
Public methodStatic member Contains(T, TKey)(CompositeRange(T, TKey), Range(T)) Determines whether the composite range contains another range.
Public methodStatic member Contains(T, TKey)(CompositeRange(T, TKey), RangeBoundaryFrom(T)) Determines whether the composite range contains the specified range boundary.
Public methodStatic member Contains(T, TKey)(CompositeRange(T, TKey), RangeBoundaryTo(T)) Determines whether the composite range contains the specified range boundary.
Public methodStatic member Contains(T, TKey)(CompositeRange(T, TKey), T) Determines whether the composite range contains the specified value.
Public methodStatic member Contains(T, TKey)(CompositeRange(T, TKey), T, T) Determines whether the composite range contains another range.
Public methodStatic member Contains(T, TKey, TKey2)(CompositeRange(T, TKey), Range(T, TKey2)) Determines whether the composite range contains another range.
Public methodStatic member Contains(T, TKey, TCompositeRange)(CompositeRange(T, TKey), TCompositeRange) Determines whether the composite range contains another range.
Public methodStatic member Except(T)(CompositeRange(T), Range(T)) Returns source range with other range excluded.
Public methodStatic member Except(T)(CompositeRange(T), T, T) Returns source range with other range excluded.
Public methodStatic member Except(T, TKey2)(CompositeRange(T), Range(T, TKey2)) Returns source range with other range excluded.
Public methodStatic member Except(T, TCompositeRange)(CompositeRange(T), TCompositeRange) Returns source range with other range excluded.
Public methodStatic member Except(T, TKey)(CompositeRange(T, TKey), Range(T)) Returns source range with other range excluded.
Public methodStatic member Except(T, TKey)(CompositeRange(T, TKey), T, T) Returns source range with other range excluded.
Public methodStatic member Except(T, TKey, TKey2)(CompositeRange(T, TKey), Range(T, TKey2)) Returns source range with other range excluded.
Public methodStatic member Except(T, TKey, TCompositeRange)(CompositeRange(T, TKey), TCompositeRange) Returns source range with other range excluded.
Public methodStatic member ExtendFrom(T)(CompositeRange(T), RangeBoundaryFrom(T)) Extends the range from the left.
Public methodStatic member ExtendFrom(T)(CompositeRange(T), T) Extends the range from the left.
Public methodStatic member ExtendFrom(T, TKey)(CompositeRange(T, TKey), RangeBoundaryFrom(T)) Extends the range from the left.
Public methodStatic member ExtendFrom(T, TKey)(CompositeRange(T, TKey), T) Extends the range from the left.
Public methodStatic member ExtendTo(T)(CompositeRange(T), RangeBoundaryTo(T)) Extends the range from the right.
Public methodStatic member ExtendTo(T)(CompositeRange(T), T) Extends the range from the right.
Public methodStatic member ExtendTo(T, TKey)(CompositeRange(T, TKey), RangeBoundaryTo(T)) Extends the range from the right.
Public methodStatic member ExtendTo(T, TKey)(CompositeRange(T, TKey), T) Extends the range from the right.
Public methodStatic member GetComplementation(T)(CompositeRange(T)) Returns complementation composite range. Result range contains result of (infinityRange.Exclude(compositeRange).
Public methodStatic member GetComplementation(T)(Range(T)) Returns complementation composite range. Result range contains result of (infinityRange.Exclude(range).
Public methodStatic member GetComplementation(T, TKey)(CompositeRange(T, TKey)) Returns complementation composite range. Result range contains result of (infinityRange.Exclude(compositeRange).
Public methodStatic member GetComplementation(T, TKey)(Range(T, TKey)) Returns complementation composite range. Result range contains result of (infinityRange.Exclude(range).
Public methodStatic member GetIntersection(T)(CompositeRange(T), Range(T)) Returns ranges that has intersections with passed range.
Public methodStatic member GetIntersection(T)(CompositeRange(T), T) Returns ranges that has intersections with passed range.
Public methodStatic member GetIntersection(T)(CompositeRange(T), T, T) Returns ranges that has intersections with passed range.
Public methodStatic member GetIntersection(T, TKey2)(CompositeRange(T), Range(T, TKey2)) Returns ranges that has intersections with passed range.
Public methodStatic member GetIntersection(T, TKey)(CompositeRange(T, TKey), Range(T)) Returns ranges that has intersections with passed range.
Public methodStatic member GetIntersection(T, TKey)(CompositeRange(T, TKey), T) Returns ranges that has intersections with passed range.
Public methodStatic member GetIntersection(T, TKey)(CompositeRange(T, TKey), T, T) Returns ranges that has intersections with passed range.
Public methodStatic member GetIntersection(T, TKey, TKey2)(CompositeRange(T, TKey), Range(T, TKey2)) Returns ranges that has intersections with passed range.
Public methodStatic member GetIntersections(T)(CompositeRange(T)) Returns all range intersections from the composite range.
Public methodStatic member GetIntersections(T, TKey)(CompositeRange(T, TKey)) Returns all range intersections from the composite range.
Public methodStatic member HasIntersection(T)(CompositeRange(T), Range(T)) Determines whether the composite range has intersection with another range.
Public methodStatic member HasIntersection(T)(CompositeRange(T), T, T) Determines whether the composite has intersection with another range.
Public methodStatic member HasIntersection(T, TKey2)(CompositeRange(T), Range(T, TKey2)) Determines whether the composite range has intersection with another range.
Public methodStatic member HasIntersection(T, TCompositeRange)(CompositeRange(T), TCompositeRange) Determines whether the composite range has intersection with another range.
Public methodStatic member HasIntersection(T, TKey)(CompositeRange(T, TKey), Range(T)) Determines whether the composite range has intersection with another range.
Public methodStatic member HasIntersection(T, TKey)(CompositeRange(T, TKey), T, T) Determines whether the composite has intersection with another range.
Public methodStatic member HasIntersection(T, TKey, TKey2)(CompositeRange(T, TKey), Range(T, TKey2)) Determines whether the composite range has intersection with another range.
Public methodStatic member HasIntersection(T, TKey, TCompositeRange)(CompositeRange(T, TKey), TCompositeRange) Determines whether the composite range has intersection with another range.
Public methodStatic member Intersect(T)(CompositeRange(T), Range(T)) Returns an intersection of the the ranges.
Public methodStatic member Intersect(T)(CompositeRange(T), T, T) Returns an intersection of the the ranges.
Public methodStatic member Intersect(T, TKey2)(CompositeRange(T), Range(T, TKey2)) Returns an intersection of the the ranges.
Public methodStatic member Intersect(T, TCompositeRange)(CompositeRange(T), TCompositeRange) Returns an intersection of the the ranges.
Public methodStatic member Intersect(T, TKey)(CompositeRange(T, TKey), Range(T)) Returns an intersection of the the ranges.
Public methodStatic member Intersect(T, TKey)(CompositeRange(T, TKey), T, T) Returns an intersection of the the ranges.
Public methodStatic member Intersect(T, TKey, TKey2)(CompositeRange(T, TKey), Range(T, TKey2)) Returns an intersection of the the ranges.
Public methodStatic member Intersect(T, TKey, TCompositeRange)(CompositeRange(T, TKey), TCompositeRange) Returns an intersection of the the ranges.
Public methodStatic member MakeExclusive(T)(CompositeRange(T), Func(T, T), Func(T, T)) Replaces inclusive boundaries with exclusive ones with the values from the selector callbacks
Public methodStatic member MakeExclusive(T, TKey)(CompositeRange(T, TKey), Func(T, T), Func(T, T)) Replaces inclusive boundaries with exclusive ones with the values from the selector callbacks
Public methodStatic member MakeInclusive(T)(CompositeRange(T), Func(T, T), Func(T, T)) Replaces exclusive boundaries with inclusive ones with the values from the selector callbacks
Public methodStatic member MakeInclusive(T, TKey)(CompositeRange(T, TKey), Func(T, T), Func(T, T)) Replaces exclusive boundaries with inclusive ones with the values from the selector callbacks
Public methodStatic member ToCompositeRange(T)(Range(T)) Converts range to the composite range.
Public methodStatic member ToCompositeRange(T)(IEnumerable(Range(T))) Converts sequence of elements to the composite range.
Public methodStatic member ToCompositeRange(T, TKey)(Range(T, TKey)) Converts range to the composite range.
Public methodStatic member ToCompositeRange(T, TKey)(IEnumerable(Range(T, TKey))) Converts sequence of elements to the composite range.
Public methodStatic member ToCompositeRange(T, TKey)(IEnumerable(TKey), Func(TKey, T), Func(TKey, T)) Converts sequence of elements to the composite range.
Public methodStatic member ToCompositeRange(TSource, T, TKey)(IEnumerable(TSource), Func(TSource, T), Func(TSource, T), Func(TSource, TKey)) Converts sequence of elements to the composite range.
Public methodStatic member ToCompositeRangeFrom(TSource, T)(IEnumerable(TSource), Func(TSource, T)) Converts sequence of elements to the composite range using only From boundary. The To boundary value is taken from the next item in sequence (+∞ for the last item in sequence)
Public methodStatic member ToCompositeRangeFrom(TSource, T, TKey)(IEnumerable(TSource), Func(TSource, T), Func(TSource, TKey)) Converts sequence of elements to the composite range using only From boundary. The To boundary value is taken from the next item in sequence (+∞ for the last item in sequence)
Public methodStatic member ToCompositeRangeTo(TSource, T)(IEnumerable(TSource), Func(TSource, T)) Converts sequence of elements to the composite range using only To boundary. The From boundary value is taken from the previous item in sequence (-∞ for the last item in sequence).
Public methodStatic member ToCompositeRangeTo(TSource, T, TKey)(IEnumerable(TSource), Func(TSource, T), Func(TSource, TKey)) Converts sequence of elements to the composite range using only To boundary. The From boundary value is taken from the previous item in sequence (-∞ for the last item in sequence).
Public methodStatic member TrimFrom(T)(CompositeRange(T), RangeBoundaryFrom(T)) Trims the range from the left.
Public methodStatic member TrimFrom(T)(CompositeRange(T), T) Trims the range from the left.
Public methodStatic member TrimFrom(T, TKey)(CompositeRange(T, TKey), RangeBoundaryFrom(T)) Trims the range from the left.
Public methodStatic member TrimFrom(T, TKey)(CompositeRange(T, TKey), T) Trims the range from the left.
Public methodStatic member TrimTo(T)(CompositeRange(T), RangeBoundaryTo(T)) Trims the range from the right.
Public methodStatic member TrimTo(T)(CompositeRange(T), T) Trims the range from the right.
Public methodStatic member TrimTo(T, TKey)(CompositeRange(T, TKey), RangeBoundaryTo(T)) Trims the range from the right.
Public methodStatic member TrimTo(T, TKey)(CompositeRange(T, TKey), T) Trims the range from the right.
Public methodStatic member Union(T)(CompositeRange(T), CompositeRange(T)) Returns a union range containing all subranges.
Public methodStatic member Union(T)(CompositeRange(T), Range(T)) Returns a union range containing all subranges.
Public methodStatic member Union(T, TKey)(CompositeRange(T, TKey), CompositeRange(T, TKey)) Returns a union range containing all subranges.
Public methodStatic member Union(T, TKey)(CompositeRange(T, TKey), Range(T, TKey)) Returns a union range containing all subranges.
Public methodStatic member WithKeys(T, TKey2)(CompositeRange(T), TKey2) Creates a new composite range with the key specified.
Public methodStatic member WithKeys(T, TKey, TKey2)(CompositeRange(T, TKey), Func(TKey, TKey2)) Creates a new composite range with the key specified.
Public methodStatic member WithKeys(T, TKey, TKey2)(CompositeRange(T, TKey), TKey2) Creates a new composite range with the key specified.
Public methodStatic member WithoutKeys(T, TKey) Removes keys from the composite range.
Public methodStatic member WithValues(T, T2)(CompositeRange(T), Func(T, T2)) Creates a new composite range with the key specified.
Public methodStatic member WithValues(T, T2)(CompositeRange(T), Func(T, T2), Func(T, T2)) Creates a new composite range with the key specified.
Public methodStatic member WithValues(T, TKey, T2)(CompositeRange(T, TKey), Func(T, T2)) Creates a new composite range with the key specified.
Public methodStatic member WithValues(T, TKey, T2)(CompositeRange(T, TKey), Func(T, T2), Func(T, T2)) Creates a new composite range with the key specified.
  Back to Top

See Also

Reference

CodeJam.Ranges Namespace
CodeJam.Ranges.CompositeRange(T)
CodeJam.Ranges.CompositeRange(T)

Clone this wiki locally