UiInteger
References[IoId("00000000-bd72-4608-94bd-31765e246fee")]
[DebuggerDisplay("{ToStringFull(),nq}")]
public sealed class UiInteger : IComparable<UiInteger>, IEquatable<UiInteger>, IStorable
An integer with controllable limits.
Constructors
UiInteger
#Create a new limited Ui integer.
Fields
Properties
Methods
CompareTo
#Compare this number with another. Only the value is taken into consideration.
Parameters:
| other (UiInteger) | Number to compare against. |
Returns: Sorting key.
ComputeSensibleLimits
#Compute sensible limits for a value.
Decrement
#Decrement this number by the smallest possible amount.
Returns: Decremented number, or the same number of decrementation is not possible.
Equals
#Gets whether this number is equal to some other number. Only values are considered in this equality.
Parameters:
| other (BigInteger) | Number to test against. |
Returns: True if both numbers have the same value.
Equals
#Determines whether the specified object is equal to the current object.
Parameters:
| obj (object) |
Returns: True if the value of this number is equal to the supplied number.
Overrides: Object.Equals
Equals
#Gets whether this number is equal to some other number. Only values are considered in this equality.
Parameters:
| other (UiInteger) | Number to test against. |
Returns: True if both numbers have the same value.
EqualsFull
#Gets whether this number is equal to some other number. Value, limits and decimals are all taken into consideration.
Parameters:
| other (UiInteger) | Number to test against. |
Returns: True if both numbers are identical.
GetHashCode
#Serves as the default hash function.
Returns: A hash code for the current object.
Overrides: Object.GetHashCode
Increment
#Increment this number by the smallest possible amount.
Returns: Incremented number, or the same number of incrementation is not possible.
ModifyLimits
#Change the limits of this number.
ModifyValue
#Change the value of this number.
Parameters:
| value (int) | New value. |
Returns: Modified number.
ProcessValue
#Process a value by both limiting and rounding it.
Parameters:
| value (int) | Value to process. |
Returns: Processed value.
ToString
#Returns a string that represents the current object.
Returns: A string that represents the current object.
Overrides: Object.ToString
ToStringFull
#Returns a string that represents the current object.
Returns: A string that represents the current object.
TryParse
#Try and parse a string as a UiInteger.