Interface MockUnitDays

  • All Superinterfaces:
    MockUnit<java.time.DayOfWeek>
    All Known Implementing Classes:
    Days

    public interface MockUnitDays
    extends MockUnit<java.time.DayOfWeek>
    • Method Detail

      • display

        default MockUnitString display​(java.time.format.TextStyle textStyle,
                                       java.util.Locale locale)

        Transforms the current MockUnitDays into a MOckUnitString representing the textual representation of the DayOfTheWeek (Eg.: 'Mon' for 'Monday').

        Parameters:
        textStyle - The style used to represent the day of the week. (Eg.: If we use TextStyle.SHORT the value for 'Monday' will be 'Mon')
        locale - The locale to use in order to represent the days of the week. (Eg.: If we use Locale.FRANCE and TextStyle.FULL the value for 'Monday' will be 'lunedi').
        Returns:
        A new MockUnitString
      • display

        default MockUnitString display​(java.time.format.TextStyle textStyle)

        Transforms the current MockUnitDays into a MOckUnitString representing the textual representation of the DayOfTheWeek (Eg.: 'Mon' for 'Monday').

        Note: The locale used by default is Locale.ENGLISH.

        Parameters:
        textStyle - The style used to represent the day of the week. (Eg.: If we use TextStyle.SHORT the value for 'Monday' will be 'Mon')
        Returns:
        A new MockUnitString
      • display

        default MockUnitString display()

        Transforms the current MockUnitDays into a MOckUnitString representing the textual representation of the DayOfTheWeek (Eg.: 'Mon' for 'Monday').

        Note: The locale used by default is Locale.ENGLISH.

        Note: The default text style is TextStyle.FULL

        Returns:
        A new MockUnitString