IntSC extension

Supercharged extensions on int numbers.

on

Properties

days Duration

Available on int, provided by the IntSC extension

Returns a Duration representing the current value as days.
no setter
hours Duration

Available on int, provided by the IntSC extension

Returns a Duration representing the current value as hours.
no setter
microseconds Duration

Available on int, provided by the IntSC extension

Returns a Duration representing the current value as microseconds.
no setter
milliseconds Duration

Available on int, provided by the IntSC extension

Returns a Duration representing the current value as milliseconds.
no setter
minutes Duration

Available on int, provided by the IntSC extension

Returns a Duration representing the current value as minutes.
no setter
seconds Duration

Available on int, provided by the IntSC extension

Returns a Duration representing the current value as seconds.
no setter

Methods

isBetween(num first, num second) bool

Available on int, provided by the IntSC extension

Returns a bool if this value is between (including) the two numeric values first and second.
rangeTo(int n) Iterable<int>

Available on int, provided by the IntSC extension

Creates an Iterable<int> that contains all values from current integer until (including) the value n.
times(void action()) → void

Available on int, provided by the IntSC extension

Executes the function action for this times.
until(int n) Iterable<int>

Available on int, provided by the IntSC extension

Creates an Iterable<int> that contains all values from current integer until (excluding) the value n.