Interface MockUnitMonth

All Superinterfaces:
MockUnit<java.time.Month>
All Known Implementing Classes:
Months

public interface MockUnitMonth
extends MockUnit<java.time.Month>
  • Method Details

    • display

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

      Transforms the current MockUnitMonth into a MOckUnitString representing the textual representation of the Month (Eg.: 'Jan' for January).

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

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

      Transforms the current MockUnitMonth into a MOckUnitString representing the textual representation of the Month (Eg.: 'Jan' for January).

      Note: The default locale will be Locale.ENGLISH

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

      default MockUnitString display()

      Transforms the current MockUnitMonth into a MOckUnitString representing the textual representation of the Month (Eg.: 'Jan' for January).

      Note: The default locale will be Locale.ENGLISH

      Note: The default locale will be TextStyle.FULL

      Returns:
      A new MockUnitString