-
Notifications
You must be signed in to change notification settings - Fork 36
Methods_T_CodeJam_Ranges_RangeBoundaryFrom_1
Andrew Koryavchenko edited this page Jul 4, 2017
·
3 revisions
The RangeBoundaryFrom(T) generic type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() |
AdjustAndCreate | Infrastructure helper method to create a boundary that handles default and infinite values. The boundaryKind should be either Inclusive or Exclusive |
![]() |
CompareTo(T) | Compares the current boundary with the value of another From boundary. Following order is used: '∅' < '-∞' < 'a)' < '[a' == 'a]' < '(a' < '+∞'. |
![]() |
CompareTo(RangeBoundaryFrom(T)) | Compares the current boundary with another one. Following order is used: '∅' < '-∞' < 'a)' < '[a' == 'a]' < '(a' < '+∞'. |
![]() |
CompareTo(RangeBoundaryTo(T)) | Compares the current boundary with another one. Following order is used: '∅' < '-∞' < 'a)' < '[a' == 'a]' < '(a' < '+∞'. |
![]() |
Equals(Object) | Indicates whether the current boundary and a specified object are equal. (Overrides ValueType.Equals(Object).) |
![]() |
Equals(RangeBoundaryFrom(T)) | Indicates whether the current boundary is equal to another. |
![]() |
GetComplementation | Returns complementation for the boundary. The conversions are: * 'a]' -> '(a' * '[a' -> 'a)' * 'a)' -> '[a' * '(a' -> 'a]' Empty or infinite boundaries will throw. Check the HasValue before calling the method. |
![]() |
GetHashCode | Returns the hash code for the current boundary. (Overrides ValueType.GetHashCode().) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
GetValueOrDefault() |
The value of the boundary or the default(T) if HasValue property equals to false . |
![]() |
GetValueOrDefault(T) |
The value of the boundary or the defaultValue if HasValue property equals to false . |
![]() |
IsComplementationFor | Checks that the boundary is complementation for specified boundary. |
![]() ![]() |
IsValid | Infrastructure helper method to check if the value can be used as the value of the boundary. |
![]() |
ToExclusive | Creates a new boundary with exclusive boundary kind if the current boundary has a value. The original boundary is returned otherwise. |
![]() |
ToInclusive | Creates a new boundary with inclusive boundary kind if the current boundary has a value. The original boundary is returned otherwise. |
![]() |
ToString() | Returns string representation of the boundary. (Overrides ValueType.ToString().) |
![]() |
ToString(String) | Returns string representation of the boundary using the specified format string. If T does not implement the format string is ignored |
![]() |
ToString(String, IFormatProvider) | Returns string representation of the boundary using the specified format string. If T does not implement the format string is ignored |
![]() |
WithValue(Func(T, T)) | Creates a new boundary with updated value (if the current boundary has one). If the boundary has no value the method returns the boundary unchanged. |
![]() |
WithValue(T2)(Func(T, T2)) | Creates a new boundary with updated value (if the current boundary has one). If the boundary has no value the method returns the boundary unchanged. |