MonthsBuilder

class MonthsBuilder : TimeBuilder<Byte>

Functions

allowAll
Link copied to clipboard
fun allowAll()

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

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

Add one value to current timeline

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

Shortcut for at. In fact will

every
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, ..."

from
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, ..."

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

Will include all variations from this array inside of this timeline

includeFirst
Link copied to clipboard
fun includeFirst()

Will include the first possible value

includeLast
Link copied to clipboard
fun includeLast()

Will include the last possible value

rangeTo
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

upTo
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

first
Link copied to clipboard
val first: Int

The first possible value of builder

last
Link copied to clipboard
val last: Int

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

Sources

common source
Link copied to clipboard