Class AbstCombFactory.Builder<T,​B extends AbstCombFactory.Builder<T,​B>>

    • Field Detail

      • instantFunction

        protected Supplier<Instant> instantFunction
        The instant function.
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • getInstantFunction

        protected Supplier<Instant> getInstantFunction()
        Get the instant function.
        Returns:
        the builder
      • withClock

        public B withClock​(Clock clock)
        Set the clock.
        Parameters:
        clock - a clock
        Returns:
        the builder
      • withTimeFunction

        public B withTimeFunction​(LongSupplier timeFunction)
        Set the time function. The time is the number of milliseconds since 1970-01-01T00:00:00Z.
        Parameters:
        timeFunction - a function
        Returns:
        the builder
      • withInstantFunction

        public B withInstantFunction​(Supplier<Instant> instantFunction)
        Set the instant function.
        Parameters:
        instantFunction - a function
        Returns:
        the builder