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