Interface MockUnitLocalDate
- All Superinterfaces:
MockUnit<java.time.LocalDate>
- All Known Implementing Classes:
LocalDates
public interface MockUnitLocalDate extends MockUnit<java.time.LocalDate>
-
Method Summary
Modifier and Type Method Description default MockUnitStringdisplay(java.lang.String format)Transforms an existingMockUnitLocalDateinto aMockUnitString- the textual representation of the date object.default MockUnitStringdisplay(java.lang.String format, java.util.Locale locale)Transforms an existingMockUnitLocalDateinto aMockUnitString- the textual representation of the date object.default MockUnitStringdisplay(java.time.format.DateTimeFormatter dtf)Deprecated.default MockUnitStringdisplay(java.time.format.DateTimeFormatter dtf, java.util.Locale locale)Deprecated.default MockUnit<java.util.Date>mapToDate()Transforms an existingMockUnitLocalDateinto aMockUnit<java.util.Date>.default MockUnit<java.util.Date>toUtilDate()Deprecated.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 Details
-
toUtilDate
Deprecated.Transforms an existing
UseMockUnitLocalDateinto aMockUnit<java.util.Date>.mapToDate()method instead.- Returns:
- A new
MockUnit<java.util.Date>.
-
mapToDate
Transforms an existing
MockUnitLocalDateinto aMockUnit<java.util.Date>.- Returns:
- A new
MockUnit<java.util.Date>.
-
display
Transforms an existing
MockUnitLocalDateinto aMockUnitString- the textual representation of the date object.- Parameters:
format- The format of the date. (Eg.: "yyyy:MM:dd")- Returns:
- A new
MockUnitString
-
display
Transforms an existing
MockUnitLocalDateinto aMockUnitString- 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.
-