Package tech.jhipster.lite.error.domain
Class Assert.InstantAsserter
java.lang.Object
tech.jhipster.lite.error.domain.Assert.InstantAsserter
- Enclosing class:
- Assert
Asserter dedicated to instant value
-
Method Summary
Modifier and TypeMethodDescriptionEnsure that the input instant is after the given instantEnsure that the input instant is after the given instantEnsure that the input instant is before the given instantbeforeOrAt(Instant other) Ensure that the input instant is before the given instantinFuture()Ensure that the given instant is in the future or at current Instant (considering this method invocation time)inPast()Ensure that the given instant is in the past or at current Instant (considering this method invocation time)notNull()Ensure that the instant is not null
-
Method Details
-
inFuture
Ensure that the given instant is in the future or at current Instant (considering this method invocation time)- Returns:
- The current asserter
- Throws:
MissingMandatoryValueException- if the input value is nullNotAfterTimeException- if the input instant is in past
-
after
Ensure that the input instant is after the given instant- Parameters:
other- exclusive after instant- Returns:
- The current asserter
- Throws:
MissingMandatoryValueException- if input or other are nullNotAfterTimeException- if the input instant is not after the other instant
-
afterOrAt
Ensure that the input instant is after the given instant- Parameters:
other- inclusive after instant- Returns:
- The current asserter
- Throws:
MissingMandatoryValueException- if input or other are nullNotAfterTimeException- if the input instant is not after the other instant
-
inPast
Ensure that the given instant is in the past or at current Instant (considering this method invocation time)- Returns:
- The current asserter
- Throws:
MissingMandatoryValueException- if the input value is nullNotBeforeTimeException- if the input instant is in future
-
before
Ensure that the input instant is before the given instant- Parameters:
other- exclusive before instant- Returns:
- The current asserter
- Throws:
MissingMandatoryValueException- if input or other are nullNotBeforeTimeException- if the input instant is not before the other instant
-
beforeOrAt
Ensure that the input instant is before the given instant- Parameters:
other- inclusive before instant- Returns:
- The current asserter
- Throws:
MissingMandatoryValueException- if input or other are nullNotBeforeTimeException- if the input instant is not before the other instant
-
notNull
Ensure that the instant is not null- Returns:
- The current asserter
- Throws:
MissingMandatoryValueException- if the instant is null
-