Skip to content

T_CodeJam_Ranges_Range

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

Range Class

Helper methods for the .

Helper methods for the .

Helper methods for the .

Inheritance Hierarchy

System.Object
  CodeJam.Ranges.Range
Namespace: CodeJam.Ranges
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public static class Range

VB

Public NotInheritable Class Range

F#

[<AbstractClassAttribute>]
[<SealedAttribute>]
type Range =  class end

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

CodeJam.Ranges Namespace
CodeJam.Ranges.Range(T)
CodeJam.Ranges.Range(T)
CodeJam.Ranges.Range(T)

Clone this wiki locally