IntExtensions extension

on

Properties

days Duration

Available on int, provided by the IntExtensions extension

Converts the double value to a Duration in days.
no setter
decrement int

Available on int, provided by the IntExtensions extension

Returns the previous integer.
no setter
hours Duration

Available on int, provided by the IntExtensions extension

Converts the double value to a Duration in hours.
no setter
increment int

Available on int, provided by the IntExtensions extension

Returns the next integer.
no setter
isOneAKind bool

Available on int, provided by the IntExtensions extension

Checks if all int values have same value.
no setter
length int

Available on int, provided by the IntExtensions extension

Returns the length of this int value
no setter
listGenerator List<int>

Available on int, provided by the IntExtensions extension

Generates a list of integers from 0 up to (but not including) this integer.
no setter
microseconds Duration

Available on int, provided by the IntExtensions extension

Converts the double value to a Duration in microseconds.
no setter
milliseconds Duration

Available on int, provided by the IntExtensions extension

Converts the double value to a Duration in milliseconds.
no setter
minutes Duration

Available on int, provided by the IntExtensions extension

Converts the double value to a Duration in minutes.
no setter
prettyFormat String

Available on int, provided by the IntExtensions extension

Converts numbers to human-readable strings.
no setter
seconds Duration

Available on int, provided by the IntExtensions extension

Converts the double value to a Duration in seconds.
no setter
toFileSize String

Available on int, provided by the IntExtensions extension

Gets file size from byte to YB
no setter

Methods

divideBy(int value) double

Available on int, provided by the IntExtensions extension

Divides the current integer by the given value.
equals(int other) bool

Available on int, provided by the IntExtensions extension

Case equality check.
equalsAll(List<int> values) bool

Available on int, provided by the IntExtensions extension

Checks if int equals all items in the list
equalsAny(List<int> values) bool

Available on int, provided by the IntExtensions extension

Checks if int equals any item in the list
iq(int value) int

Available on int, provided by the IntExtensions extension

Performs integer division and returns the quotient.
isEqualTo(int other) bool

Available on int, provided by the IntExtensions extension

Case equality check.
isGreaterThan(int b) bool

Available on int, provided by the IntExtensions extension

Checks if GREATER than int b.
isGreaterThanOrEqualTo(int b) bool

Available on int, provided by the IntExtensions extension

Checks if GREATER than int b.
isGt(int b) bool

Available on int, provided by the IntExtensions extension

Short form for isGreaterThan
isGtOrEt(int b) bool

Available on int, provided by the IntExtensions extension

Short form for isGreaterThanOrEqualTo
isLengthBetween(int min, int max) bool

Available on int, provided by the IntExtensions extension

Checks if length of int value is BETWEEN minLength to max.
isLengthEqualTo(int other) bool

Available on int, provided by the IntExtensions extension

Checks if length of double value is EQUAL to max.
isLengthEt(int max) bool

Available on int, provided by the IntExtensions extension

Short form for isLengthEqualTo
isLengthGreaterThan(int max) bool

Available on int, provided by the IntExtensions extension

Checks if length of double value is GREATER than max.
isLengthGreaterThanOrEqualTo(int max) bool

Available on int, provided by the IntExtensions extension

Checks if length of double value is GREATER OR EQUAL to max.
isLengthGt(int max) bool

Available on int, provided by the IntExtensions extension

Short form for isLengthGreaterThan
isLengthGtOrEt(int max) bool

Available on int, provided by the IntExtensions extension

Short form for isLengthGreaterThanOrEqualTo
isLengthLessThan(int max) bool

Available on int, provided by the IntExtensions extension

Checks if length of double value is LESS than max.
isLengthLessThanOrEqualTo(int max) bool

Available on int, provided by the IntExtensions extension

Checks if length of double value is LESS OR EQUAL to max.
isLengthLt(int max) bool

Available on int, provided by the IntExtensions extension

Short form for isLengthLessThan
isLengthLtOrEt(int max) bool

Available on int, provided by the IntExtensions extension

Short form for isLengthLessThanOrEqualTo
isLessThan(int b) bool

Available on int, provided by the IntExtensions extension

Checks if LOWER than int b.
isLessThanOrEqualTo(int b) bool

Available on int, provided by the IntExtensions extension

Checks if LOWER than int b.
isLt(int b) bool

Available on int, provided by the IntExtensions extension

Short form for isLessThan
isLtOrEt(int b) bool

Available on int, provided by the IntExtensions extension

Short form for isLessThanOrEqualTo
isNotEqualTo(int other) bool

Available on int, provided by the IntExtensions extension

Case in-equality check.
mediaDuration({bool addSpacing = true}) String

Available on int, provided by the IntExtensions extension

Formats the media duration into a human-readable string.
minus(int value) int

Available on int, provided by the IntExtensions extension

Subtracts the given value from the current integer.
multiplyBy(int value) int

Available on int, provided by the IntExtensions extension

Multiplies the current integer by the given value.
negated() int

Available on int, provided by the IntExtensions extension

Negates the number.
notEquals(int other) bool

Available on int, provided by the IntExtensions extension

Case in-equality check.
notEqualsAll(List<int> values) bool

Available on int, provided by the IntExtensions extension

Checks if int does not equals all items in the list
notEqualsAny(List<int> values) bool

Available on int, provided by the IntExtensions extension

Checks if int does not equals any item in the list
plus(int value) int

Available on int, provided by the IntExtensions extension

Adds the given value to the current integer.
remainder(int value) int

Available on int, provided by the IntExtensions extension

Returns the remainder of the division.
toDigits([int digits = 2]) String

Available on int, provided by the IntExtensions extension

Converts the integer to a string and left-pads it with zeroes until it reaches digits length.
toTimeUnit() String

Available on int, provided by the IntExtensions extension

Formats the integer as a two-digit time unit for playback duration (MM or SS).