package strikt.java.time
Methods
isBefore
infix fun <T : TemporalAccessor> Assertion.Builder
Receiver
Name | Description |
---|---|
Assertion.Builder
|
Parameters
Name | Description |
---|---|
expected: TemporalAccessor
|
ReturnValue
Name | Description |
---|---|
Assertion.Builder
|
isAfter
infix fun <T : TemporalAccessor> Assertion.Builder
Asserts that the subject is after expected.
Receiver
Name | Description |
---|---|
Assertion.Builder
|
Parameters
Name | Description |
---|---|
expected: TemporalAccessor
|
ReturnValue
Name | Description |
---|---|
Assertion.Builder
|
isSameInstant
infix fun <T : TemporalAccessor> Assertion.Builder
Asserts that the subject is the same moment in time as expected.
Receiver
Name | Description |
---|---|
Assertion.Builder
|
Parameters
Name | Description |
---|---|
expected: TemporalAccessor
|
ReturnValue
Name | Description |
---|---|
Assertion.Builder
|
get
fun <T : TemporalAccessor> Assertion.Builder
Maps an assertion on the subject to an assertion on the value of the specified temporal field.
Receiver
Name | Description |
---|---|
Assertion.Builder
|
Parameters
Name | Description |
---|---|
field: TemporalField
|
ReturnValue
Name | Description |
---|---|
Assertion.Builder
|
getLong
fun <T : TemporalAccessor> Assertion.Builder
Maps an assertion on the subject to an assertion on the value of the specified temporal field.
Receiver
Name | Description |
---|---|
Assertion.Builder
|
Parameters
Name | Description |
---|---|
field: TemporalField
|
ReturnValue
Name | Description |
---|---|
Assertion.Builder
|
Asserts that the subject is before expected.