Interface MockUnitMonth
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default MockUnitStringdisplay()Transforms the currentMockUnitMonthinto aMOckUnitStringrepresenting the textual representation of theMonth(Eg.: 'Jan' for January).default MockUnitStringdisplay(java.time.format.TextStyle textStyle)Transforms the currentMockUnitMonthinto aMOckUnitStringrepresenting the textual representation of theMonth(Eg.: 'Jan' for January).default MockUnitStringdisplay(java.time.format.TextStyle textStyle, java.util.Locale locale)Transforms the currentMockUnitMonthinto aMOckUnitStringrepresenting the textual representation of theMonth(Eg.: 'Jan' for January).-
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
MockUnitMonthinto aMOckUnitStringrepresenting the textual representation of theMonth(Eg.: 'Jan' for January).- Parameters:
textStyle- The style used to represent the day of the week. (Eg.: If we useTextStyle.SHORTthe value for 'January' will be 'Jan')locale- The locale to use in order to represent the days of the week. (Eg.: If we useLocale.ENGLISHandTextStyle.FULLthe value for January will be 'January').- Returns:
- A new
MockUnitString
-
display
default MockUnitString display(java.time.format.TextStyle textStyle)
Transforms the current
MockUnitMonthinto aMOckUnitStringrepresenting the textual representation of theMonth(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 useTextStyle.SHORTthe value for 'January' will be 'Jan')- Returns:
- A new
MockUnitString
-
display
default MockUnitString display()
Transforms the current
MockUnitMonthinto aMOckUnitStringrepresenting the textual representation of theMonth(Eg.: 'Jan' for January).Note: The default locale will be
Locale.ENGLISHNote: The default locale will be
TextStyle.FULL- Returns:
- A new
MockUnitString
-
-