Skip to content

Methods_T_CodeJam_Ranges_Range

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

Range Methods

The Range type exposes the following members.

Methods

 

Name Description
Public method Static member BoundaryFrom(T) Inclusive boundary From factory method.
Public method Static member BoundaryFromExclusive(T) Exclusive boundary From factory method.
Public method Static member BoundaryFromInfinity(T) Negative infinity boundary (-∞) factory method.
Public method Static member BoundaryTo(T) Inclusive boundary To factory method.
Public method Static member BoundaryToExclusive(T) Exclusive boundary To factory method.
Public method Static member BoundaryToInfinity(T) Positive infinity boundary (+∞) factory method.
Public method Static member Create(T)(T, T) Creates the range.
Public method Static member Create(T)(RangeBoundaryFrom(T), RangeBoundaryTo(T)) Creates the range.
Public method Static member Create(T, TKey)(T, T, TKey) Creates the range.
Public method Static member Create(T, TKey)(RangeBoundaryFrom(T), RangeBoundaryTo(T), TKey) Creates the range.
Public method Static member CreateExclusive(T)(T, T) Creates the range.
Public method Static member CreateExclusive(T, TKey)(T, T, TKey) Creates the range.
Public method Static member CreateExclusiveFrom(T)(T, T) Creates the range.
Public method Static member CreateExclusiveFrom(T, TKey)(T, T, TKey) Creates the range.
Public method Static member CreateExclusiveTo(T)(T, T) Creates the range.
Public method Static member CreateExclusiveTo(T, TKey)(T, T, TKey) Creates the range.
Public method Static member IsValid(T)(T, T) Returns true if the boundaries can be used for valid range creation.
Public method Static member IsValid(T)(RangeBoundaryFrom(T), RangeBoundaryTo(T)) Returns true if the boundaries can be used for valid range creation.
Public method Static member Max(T)(RangeBoundaryFrom(T), RangeBoundaryFrom(T)) Returns the greater one of the two boundaries.
Public method Static member Max(T)(RangeBoundaryTo(T), RangeBoundaryTo(T)) Returns the greater one of the two boundaries.
Public method Static member MaxFrom(T) Returns the greater one of the two From boundaries.
Public method Static member MaxTo(T) Returns the greater one of the two To boundaries.
Public method Static member Min(T)(RangeBoundaryFrom(T), RangeBoundaryFrom(T)) Returns the less one of the two boundaries.
Public method Static member Min(T)(RangeBoundaryTo(T), RangeBoundaryTo(T)) Returns the less one of the two boundaries.
Public method Static member MinFrom(T) Returns the less one of the two From boundaries.
Public method Static member MinTo(T) Returns the less one of the two To boundaries.
Public method Static member TryCreate(T)(T, T) Tries to create the range. Returns empty range if failed.
Public method Static member TryCreate(T)(RangeBoundaryFrom(T), RangeBoundaryTo(T)) Tries to create the range. Returns empty range if failed.
Public method Static member TryCreate(T, TKey)(T, T, TKey) Tries to create the range. Returns empty range if failed.
Public method Static member TryCreate(T, TKey)(RangeBoundaryFrom(T), RangeBoundaryTo(T), TKey) Tries to create the range. Returns empty range if failed.
Public method Static member TryCreateExclusive(T)(T, T) Tries to create the range. Returnss empty range if failed.
Public method Static member TryCreateExclusive(T, TKey)(T, T, TKey) Tries to create the range. Returnss empty range if failed.
Public method Static member TryCreateExclusiveFrom(T)(T, T) Tries to create the range. Returns empty range if failed.
Public method Static member TryCreateExclusiveFrom(T, TKey)(T, T, TKey) Tries to create the range. Returns empty range if failed.
Public method Static member TryCreateExclusiveTo(T)(T, T) Tries to create the range. Returns empty range if failed.
Public method Static member TryCreateExclusiveTo(T, TKey)(T, T, TKey) Tries to create the range. Returns empty range if failed.
  Back to Top

See Also

Reference

Range Class
CodeJam.Ranges Namespace

Clone this wiki locally