Skip to content

com.hypercubetools.timeslip / TimeSlip / SequenceBuilder / cycle

cycle

var cycle:Boolean

When true, after returning the last Instant in the sequence, the next sequence will repeat again from the first Instant. When false, after returning the last Instant in the sequence, IllegalStateException will be thrown the next time the time is requested.

fun cycle(shouldCycle:Boolean):TimeSlip.SequenceBuilder

Specify if the sequence should repeat.

Parameters

shouldCycle - When true, after returning the last Instant in the sequence, the next sequence will repeat again from the first Instant. When false, after returning the last Instant in the sequence, IllegalStateException will be thrown the next time the time is requested.

Return This builder.