Interface MockUnitLocalDate

All Superinterfaces:
MockUnit<java.time.LocalDate>
All Known Implementing Classes:
LocalDates

public interface MockUnitLocalDate
extends MockUnit<java.time.LocalDate>
  • Method Details

    • toUtilDate

      @Deprecated default MockUnit<java.util.Date> toUtilDate()
      Deprecated.

      Transforms an existing MockUnitLocalDate into a MockUnit<java.util.Date>.

      Use mapToDate() method instead.
      Returns:
      A new MockUnit<java.util.Date>.
    • mapToDate

      default MockUnit<java.util.Date> mapToDate()

      Transforms an existing MockUnitLocalDate into a MockUnit<java.util.Date>.

      Returns:
      A new MockUnit<java.util.Date>.
    • display

      default MockUnitString display​(java.lang.String format)

      Transforms an existing MockUnitLocalDate into a MockUnitString - the textual representation of the date object.

      Parameters:
      format - The format of the date. (Eg.: "yyyy:MM:dd")
      Returns:
      A new MockUnitString
    • display

      default MockUnitString display​(java.lang.String format, java.util.Locale locale)

      Transforms an existing MockUnitLocalDate into a MockUnitString - the textual representation of the date object.

      Parameters:
      locale - the locale. (Eg.: Locale.FRANCE)
      format - The format of the date. (Eg.: "yyyy:MM:dd")
      Returns:
      A new MockUnitString
    • display

      @Deprecated default MockUnitString display​(java.time.format.DateTimeFormatter dtf, java.util.Locale locale)
      Deprecated.
    • display

      @Deprecated default MockUnitString display​(java.time.format.DateTimeFormatter dtf)
      Deprecated.