public class TemporalSequenceValidator extends TemporalArrayValidator
Class TemporalSequenceValidator. Provides temporalsequencevalidator functionality for the Hytale server.
java.lang.Object > TemporalArrayValidator > TemporalSequenceValidator
Field Summary
zeroDate
final
LocalDateTime
zeroDate
Field zeroDate.
min
final
LocalDateTime
min
Field min.
max
final
LocalDateTime
max
Field max.
expectPeriod
final
boolean
expectPeriod
Field expectPeriod.
value
final
TemporalAmount
value
Field value.
dateValue
final
LocalDateTime
dateValue
Field dateValue.
previousValue
final
LocalDateTime
previousValue
Field previousValue.
handle
final
MethodHandle
handle
Field handle.
Method Detail
TemporalSequenceValidator
public
private
TemporalSequenceValidator
(final RelationalOperator relationLower, final TemporalAmount lower, final RelationalOperator relationUpper, final TemporalAmount upper, final RelationalOperator relationSequence)
Method TemporalSequenceValidator.
- Parameters:
final RelationalOperatorrelationLowerfinal TemporalAmountlowerfinal RelationalOperatorrelationUpperfinal TemporalAmountupperfinal RelationalOperatorrelationSequence
betweenMonotonic
static
TemporalSequenceValidator
betweenMonotonic
(final TemporalAmount lower, final TemporalAmount upper)
Method betweenMonotonic.
- Parameters:
final TemporalAmountlowerfinal TemporalAmountupper
betweenWeaklyMonotonic
static
TemporalSequenceValidator
betweenWeaklyMonotonic
(final TemporalAmount lower, final TemporalAmount upper)
Method betweenWeaklyMonotonic.
- Parameters:
final TemporalAmountlowerfinal TemporalAmountupper
compare
static
boolean
compare
(@Nonnull final LocalDateTime value, @Nonnull final RelationalOperator op, final LocalDateTime c)
Method compare.
- Parameters:
@Nonnull final LocalDateTimevalue@Nonnull final RelationalOperatoropfinal LocalDateTimec
switch
public
return
switch
(op)
Method switch.
- Parameters:
opop
test
public
boolean
test
(@Nonnull final TemporalAmount[] values)
Method test.
- Parameters:
@Nonnull final TemporalAmount[]values
errorMessage
public
String
errorMessage
(final String name, final TemporalAmount[] value)
Method errorMessage.
- Parameters:
final Stringnamefinal TemporalAmount[]value
handle
static
MethodHandle
handle
()
Method handle.
ensureHandle
static
MethodHandle
ensureHandle
()
Method ensureHandle.
invoke
static
String
invoke
(String p0, String p1)
Method invoke.
- Parameters:
Stringp0Stringp1