strikt-jvm / strikt.java.time / strikt.api.Assertion.Builder / getLong

getLong

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

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

Exceptions

java.time.temporal.UnsupportedTemporalTypeException - if the subject does not support the field type.

See Also

TemporalAccessor.getLong