Strikt.time

package strikt.time

Methods

isBefore

infix fun <T : TemporalAccessor> Assertion.Builder<T>.isBefore(expected: TemporalAccessor): Assertion.Builder<T>

Asserts that the subject is before expected.

Receiver

Name Description
Assertion.Builder<T>

Parameters

Name Description
expected: TemporalAccessor

ReturnValue

Name Description
Assertion.Builder<T>

isAfter

infix fun <T : TemporalAccessor> Assertion.Builder<T>.isAfter(expected: TemporalAccessor): Assertion.Builder<T>

Asserts that the subject is after expected.

Receiver

Name Description
Assertion.Builder<T>

Parameters

Name Description
expected: TemporalAccessor

ReturnValue

Name Description
Assertion.Builder<T>

get

fun <T : TemporalAccessor> Assertion.Builder<T>.get(field: TemporalField): Assertion.Builder<Int>

Maps an assertion on the subject to an assertion on the value of the specified temporal field.

Receiver

Name Description
Assertion.Builder<T>

Parameters

Name Description
field: TemporalField

ReturnValue

Name Description
Assertion.Builder<Int>

getLong

fun <T : TemporalAccessor> Assertion.Builder<T>.getLong(field: TemporalField): Assertion.Builder<Long>

Maps an assertion on the subject to an assertion on the value of the specified temporal field.

Receiver

Name Description
Assertion.Builder<T>

Parameters

Name Description
field: TemporalField

ReturnValue

Name Description
Assertion.Builder<Long>