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

    • Constructor Detail

      • ValidatorBuilderTemporal

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

      • parse

        protected abstract V parse​(String value)
        Parameters:
        value - the value as String.
        Returns:
        the parsed value.
      • 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.