Skip to content

Methods_T_CodeJam_Ranges_Range_2

Andrew Koryavchenko edited this page Jun 17, 2018 · 4 revisions

Range(T, TKey) Methods

The Range(T, TKey) generic type exposes the following members.

Methods

 

Name Description
Public method Clamp Ensures that the value fits into a range.
Public method Contains(T) Determines whether the range contains the specified value.
Public method Contains(Range(T)) Determines whether the range contains another range.
Public method Contains(RangeBoundaryFrom(T)) Determines whether the range contains the specified range boundary.
Public method Contains(RangeBoundaryTo(T)) Determines whether the range contains the specified range boundary.
Public method Contains(T, T) Determines whether the range contains another range.
Public method Contains(TKey2)(Range(T, TKey2)) Determines whether the range contains another range.
Public method EndsBefore(T) Determines whether the range ends before the value specified.
Public method EndsBefore(Range(T)) Determines whether the range ends before the range specified.
Public method EndsBefore(RangeBoundaryFrom(T)) Determines whether the range ends before the boundary specified.
Public method EndsBefore(RangeBoundaryTo(T)) Determines whether the range ends before the boundary specified.
Public method EndsBefore(TKey2)(Range(T, TKey2)) Determines whether the range ends before the range specified.
Public method Equals(Object) Indicates whether the current range and a specified object are equal. (Overrides ValueType.Equals(Object).)
Public method Equals(Range(T, TKey)) Indicates whether the current range is equal to another.
Public method ExtendFrom(T) Extends the range from the left.
Public method ExtendFrom(RangeBoundaryFrom(T)) Extends the range from the left.
Public method ExtendTo(T) Extends the range from the right.
Public method ExtendTo(RangeBoundaryTo(T)) Extends the range from the right.
Public method GetHashCode Returns a hash code for the current range. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method HasIntersection(Range(T)) Determines whether the range has intersection with another range.
Public method HasIntersection(T, T) Determines whether the range has intersection with another range.
Public method HasIntersection(TKey2)(Range(T, TKey2)) Determines whether the range has intersection with another range.
Public method Intersect(Range(T)) Returns an intersection of the the ranges.
Public method Intersect(T, T) Returns an intersection of the the ranges.
Public method Intersect(TKey2)(Range(T, TKey2)) Returns an intersection of the the ranges.
Public method MakeExclusive Replaces inclusive boundaries with exclusive ones with the values from the selector callbacks
Public method MakeInclusive Replaces exclusive boundaries with inclusive ones with the values from the selector callbacks
Public method StartsAfter(T) Determines whether the range starts after the value specified.
Public method StartsAfter(Range(T)) Determines whether the range starts after the range specified.
Public method StartsAfter(RangeBoundaryFrom(T)) Determines whether the range starts after the boundary specified.
Public method StartsAfter(RangeBoundaryTo(T)) Determines whether the range starts after the boundary specified.
Public method StartsAfter(TKey2)(Range(T, TKey2)) Determines whether the range starts after the range specified.
Public method ToString() Returns string representation of the range. (Overrides ValueType.ToString().)
Public method ToString(IFormatProvider) Returns string representation of the range using the specified format string. If T does not implement the format string is ignored.
Public method ToString(String) Returns string representation of the range using the specified format string. If T does not implement the format string is ignored.
Public method ToString(String, IFormatProvider) Returns string representation of the range using the specified format string. If T does not implement the format string is ignored.
Public method TrimFrom(T) Trims the range from the left.
Public method TrimFrom(RangeBoundaryFrom(T)) Trims the range from the left.
Public method TrimTo(T) Trims the range from the right.
Public method TrimTo(RangeBoundaryTo(T)) Trims the range from the right.
Public method Union(T) Returns a union range containing original range and the value.
Public method Union(Range(T)) Returns a union range containing both of the ranges.
Public method Union(T, T) Returns a union range containing both of the ranges.
Public method Union(TKey2)(Range(T, TKey2)) Returns a union range containing both of the ranges.
Public method WithKey(TKey2) Creates a new range with the key specified.
Public method WithoutKey Creates a range without a range key.
Public method WithValues(T2)(Func(T, T2)) Updates the values of the boundaries of the range.
Public method WithValues(T2)(Func(T, T2), Func(T, T2)) Updates the values of the boundaries of the range.
  Back to Top

See Also

Reference

Range(T, TKey) Structure
CodeJam.Ranges Namespace

Clone this wiki locally