Int helper
More...
|
static string | ToString (int?int1) |
| ToString method. More...
|
|
static int | CompareTo (int?int1, int?int2) |
| Compare two ints. More...
|
|
static bool | IsGreaterThan (int?int1, int?int2) |
| Check if the first given int is greater than the second. More...
|
|
static bool | IsLowerThan (int?int1, int?int2) |
| Check if the first given int is lower than the second. More...
|
|
static decimal | Abs (int?int1) |
| Compute the absolute value of the given int. More...
|
|
static int | Add (int?int1, int?int2) |
| Add two ints. More...
|
|
static int | Add (int?int1, int?int2, int?int3) |
| Add three ints. More...
|
|
static int | Add (int?int1, int?int2, int?int3, int?int4) |
| Add four ints. More...
|
|
static int | Add (int?int1, int?int2, int?int3, int?int4, int?int5) |
| Add five ints. More...
|
|
static int | Substract (int?int1, int?int2) |
| Substract two ints. More...
|
|
static int | Multiply (int?int1, int?int2) |
| Multiply two ints. More...
|
|
static int | Divide (int?int1, int?int2) |
| Divide two ints. More...
|
|
static bool | IsNullOrZeroValue (int?int1) |
| Check if the given int is zero or null. More...
|
|
static decimal Summer.Batch.Extra.Utils.IntegerUtils.Abs |
( |
int? |
int1 | ) |
|
|
static |
Compute the absolute value of the given int.
- Parameters
-
- Returns
- the absolute value of parameter.
static int Summer.Batch.Extra.Utils.IntegerUtils.Add |
( |
int? |
int1, |
|
|
int? |
int2 |
|
) |
| |
|
static |
Add two ints.
- Parameters
-
- Returns
- the sum of the two arguments, handling null (ex : 3 + null = 3).
static int Summer.Batch.Extra.Utils.IntegerUtils.Add |
( |
int? |
int1, |
|
|
int? |
int2, |
|
|
int? |
int3 |
|
) |
| |
|
static |
Add three ints.
- Parameters
-
int1 | int? |
int2 | int? |
int3 | int? |
- Returns
- the sum of the three arguments, handling null (ex : 3 + 2 + null = 5).
static int Summer.Batch.Extra.Utils.IntegerUtils.Add |
( |
int? |
int1, |
|
|
int? |
int2, |
|
|
int? |
int3, |
|
|
int? |
int4 |
|
) |
| |
|
static |
Add four ints.
- Parameters
-
int1 | int? |
int2 | int? |
int3 | int? |
int4 | int? |
- Returns
- the sum of the four arguments, handling null (ex : 3 + 2 + 6 + null = 11).
static int Summer.Batch.Extra.Utils.IntegerUtils.Add |
( |
int? |
int1, |
|
|
int? |
int2, |
|
|
int? |
int3, |
|
|
int? |
int4, |
|
|
int? |
int5 |
|
) |
| |
|
static |
Add five ints.
- Parameters
-
int1 | int? |
int2 | int? |
int3 | int? |
int4 | int? |
int5 | int? |
- Returns
- the sum of the five arguments, handling null (ex : 3 + 2 + 6 + 1 + null = 12).
static int Summer.Batch.Extra.Utils.IntegerUtils.CompareTo |
( |
int? |
int1, |
|
|
int? |
int2 |
|
) |
| |
|
static |
Compare two ints.
- Parameters
-
- Returns
- the value 0 if int2 is numerically equal int1; a value less than 0 if this int1 is numerically less than int2; and a value greater than 0 if int1 is numerically greater than int2. Null in case of null argument(s).
static int Summer.Batch.Extra.Utils.IntegerUtils.Divide |
( |
int? |
int1, |
|
|
int? |
int2 |
|
) |
| |
|
static |
Divide two ints.
- Parameters
-
- Returns
- the division between int1 and int2. Null in case of null argument.
static bool Summer.Batch.Extra.Utils.IntegerUtils.IsGreaterThan |
( |
int? |
int1, |
|
|
int? |
int2 |
|
) |
| |
|
static |
Check if the first given int is greater than the second.
- Parameters
-
- Returns
- true if int1 is numerically greater than int2. Otherwise false.
static bool Summer.Batch.Extra.Utils.IntegerUtils.IsLowerThan |
( |
int? |
int1, |
|
|
int? |
int2 |
|
) |
| |
|
static |
Check if the first given int is lower than the second.
- Parameters
-
- Returns
- true if int1 is numerically lower than int2. Otherwise false.
static bool Summer.Batch.Extra.Utils.IntegerUtils.IsNullOrZeroValue |
( |
int? |
int1 | ) |
|
|
static |
Check if the given int is zero or null.
- Parameters
-
- Returns
- true if argument is null or argument == 0.
static int Summer.Batch.Extra.Utils.IntegerUtils.Multiply |
( |
int? |
int1, |
|
|
int? |
int2 |
|
) |
| |
|
static |
Multiply two ints.
- Parameters
-
- Returns
- the product between int1 and int2. Null in case of null argument.
static int Summer.Batch.Extra.Utils.IntegerUtils.Substract |
( |
int? |
int1, |
|
|
int? |
int2 |
|
) |
| |
|
static |
Substract two ints.
- Parameters
-
- Returns
- the difference between int1 and int2. Null in case of null argument(s).
static string Summer.Batch.Extra.Utils.IntegerUtils.ToString |
( |
int? |
int1 | ) |
|
|
static |
ToString method.
- Parameters
-
- Returns
- string representation of argument. Empty string if null.
The documentation for this class was generated from the following file:
- Summer.Batch.Extra/Utils/IntegerUtils.cs