Class ValidatorBuilderTemporal<V extends Comparable<?>,PARENT,SELF extends ValidatorBuilderTemporal<V,PARENT,SELF>>

java.lang.Object
io.github.mmm.validation.main.ObjectValidatorBuilder<V,PARENT,SELF>
io.github.mmm.validation.main.ComparableValidatorBuilder<V,PARENT,SELF>
io.github.mmm.validation.time.ValidatorBuilderTemporal<V,PARENT,SELF>
Type Parameters:
V - the generic type of the value to validate.
PARENT - the generic type of the parent builder.
SELF - the generic type of this builder itself (this).
All Implemented Interfaces:
io.github.mmm.base.lang.Builder<Validator<? super V>>, ValidatorRegistry<V,SELF>
Direct Known Subclasses:
ValidatorBuilderInstant, ValidatorBuilderLocalDate, ValidatorBuilderLocalDateTime, ValidatorBuilderLocalTime, ValidatorBuilderOffsetDateTime, ValidatorBuilderOffsetTime, ValidatorBuilderZonedDateTime

public abstract class ValidatorBuilderTemporal<V extends Comparable<?>,PARENT,SELF extends ValidatorBuilderTemporal<V,PARENT,SELF>> extends ComparableValidatorBuilder<V,PARENT,SELF>
Validator builder for date and time values.
Since:
1.0.0
  • Constructor Details

    • ValidatorBuilderTemporal

      public ValidatorBuilderTemporal(PARENT parent)
      The constructor.
      Parameters:
      parent - the parent builder.
  • Method Details

    • past

      public abstract SELF past()
      Adds a validator that checks that the date/time is in the past.
      Returns:
      this build instance for fluent API calls.
    • future

      public abstract SELF future()
      Adds a validator that checks that the date/time is in the future.
      Returns:
      this build instance for fluent API calls.
    • after

      public abstract SELF after(V value)
      Adds a validator that checks that the date/time is after the given value.
      Parameters:
      value - the date/time to compare.
      Returns:
      this build instance for fluent API calls.
    • after

      public abstract SELF after(Supplier<V> valueSource)
      Adds a validator that checks that the date/time is after the given value.
      Parameters:
      valueSource - the Supplier of the date/time to compare.
      Returns:
      this build instance for fluent API calls.
    • before

      public abstract SELF before(V value)
      Adds a validator that checks that the date/time is before the given value.
      Parameters:
      value - the date/time to compare.
      Returns:
      this build instance for fluent API calls.
    • before

      public abstract SELF before(Supplier<V> valueSource)
      Adds a validator that checks that the date/time is before the given value.
      Parameters:
      valueSource - the Supplier of the date/time to compare.
      Returns:
      this build instance for fluent API calls.