Interface MockUnitDays
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default MockUnitStringdisplay()Transforms the currentMockUnitDaysinto aMOckUnitStringrepresenting the textual representation of theDayOfTheWeek(Eg.: 'Mon' for 'Monday').default MockUnitStringdisplay(java.time.format.TextStyle textStyle)Transforms the currentMockUnitDaysinto aMOckUnitStringrepresenting the textual representation of theDayOfTheWeek(Eg.: 'Mon' for 'Monday').default MockUnitStringdisplay(java.time.format.TextStyle textStyle, java.util.Locale locale)Transforms the currentMockUnitDaysinto aMOckUnitStringrepresenting the textual representation of theDayOfTheWeek(Eg.: 'Mon' for 'Monday').-
Methods inherited from interface net.andreinc.mockneat.abstraction.MockUnit
array, array, collection, collection, collection, collection, collection, collection, consume, consume, get, get, list, list, list, list, list, list, map, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapToDouble, mapToInt, mapToLocalDate, mapToLong, mapToString, mapToString, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, serialize, set, set, set, set, set, set, stream, supplier, val, val, valStr, valStr
-
-
-
-
Method Detail
-
display
default MockUnitString display(java.time.format.TextStyle textStyle, java.util.Locale locale)
Transforms the current
MockUnitDaysinto aMOckUnitStringrepresenting the textual representation of theDayOfTheWeek(Eg.: 'Mon' for 'Monday').- Parameters:
textStyle- The style used to represent the day of the week. (Eg.: If we useTextStyle.SHORTthe value for 'Monday' will be 'Mon')locale- The locale to use in order to represent the days of the week. (Eg.: If we useLocale.FRANCEandTextStyle.FULLthe value for 'Monday' will be 'lunedi').- Returns:
- A new
MockUnitString
-
display
default MockUnitString display(java.time.format.TextStyle textStyle)
Transforms the current
MockUnitDaysinto aMOckUnitStringrepresenting the textual representation of theDayOfTheWeek(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 useTextStyle.SHORTthe value for 'Monday' will be 'Mon')- Returns:
- A new
MockUnitString
-
display
default MockUnitString display()
Transforms the current
MockUnitDaysinto aMOckUnitStringrepresenting the textual representation of theDayOfTheWeek(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
-
-