SecondsBuilder

class SecondsBuilder : TimeBuilder<Byte>

Functions

Link copied to clipboard
fun allowAll()

After calling of this function this builder will allow any value of current time

Link copied to clipboard
infix fun at(value: Int)

Add one value to current timeline

Link copied to clipboard
infix inline fun each(value: Int)

Shortcut for at. In fact will

Link copied to clipboard
infix fun every(delay: Int): Array<Int>

Shortcut for "from 0 every"

infix fun Int.every(delay: Int): Array<Int>

Will create an sequence of times starting fromevery times. For example, for SecondsBuilder it will mean "from second second every 5 seconds", or "2, 7, 13, ..."

Link copied to clipboard
infix inline fun from(value: Int): Int

Just wrapper for more obvious writing something like "from 2 every 5". For example, for SecondsBuilder it will mean "from second second every 5 seconds", or "2, 7, 13, ..."

Link copied to clipboard
infix fun include(array: Array<Int>)

Will include all variations from this array inside of this timeline

Link copied to clipboard
fun includeFirst()

Will include the first possible value

Link copied to clipboard
fun includeLast()

Will include the last possible value

Link copied to clipboard
infix operator fun rangeTo(endIncluding: Int): Array<Int>

Shortcut for "from 0 rangeTo"

infix operator fun Int.rangeTo(endIncluding: Int): Array<Int>

Will fill up this timeline from this up to endIncluding

Link copied to clipboard
infix fun upTo(endIncluding: Int): Array<Int>

Shortcut for "from 0 upTo"

infix fun Int.upTo(endIncluding: Int): Array<Int>

Will fill up this timeline from this up to endIncluding

Properties

Link copied to clipboard
val first: Int

The first possible value of builder

Link copied to clipboard
val last: Int

The last possible value of builder. Using of this variable equal to using "L" in strings

Sources

Link copied to clipboard