Interface RelativeDateReplacement

All Superinterfaces:
BiFunction<String,Integer,String>, Replacement<String>

public interface RelativeDateReplacement extends Replacement<String>
Replaces each match of the given dateTimePattern (as defined by DateTimeFormatter) with a relative description, like [today], [yesterday], [13 days from now].
  • Method Details

    • dateTimeFormatter

      RelativeDateReplacement dateTimeFormatter(DateTimeFormatter dateTimeFormatter)
      Creates and returns a copy of this with the given dateTimeFormatter.
      Parameters:
      dateTimeFormatter - the DateTimeFormatter to be used
      Returns:
      a copy of this with the given dateTimeFormatter