- java.lang.Object
-
- com.legyver.utils.mapqua.mapbacked.MapBackedProperty<java.time.LocalDate>
-
- com.legyver.utils.mapqua.mapbacked.MapBackedLocalDate
-
public class MapBackedLocalDate extends MapBackedProperty<java.time.LocalDate>
A LocalDate variable that can be represented as a key-value pair in the POJO internal Map
-
-
Field Summary
-
Fields inherited from class com.legyver.utils.mapqua.mapbacked.MapBackedProperty
property, sourceMap, valueIfMissing
-
-
Constructor Summary
Constructors Constructor Description MapBackedLocalDate(java.util.Map sourceMap, java.lang.String property)Construct a MapBackedLocalDate with a certain property name.MapBackedLocalDate(java.util.Map sourceMap, java.lang.String property, java.time.LocalDate valueIfMissing)Construct a MapBackedLocalDate with a certain property name and default value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Optional<java.time.LocalDate>queryOption()Hook to allow the property to be queryable-
Methods inherited from class com.legyver.utils.mapqua.mapbacked.MapBackedProperty
get, set
-
-
-
-
Constructor Detail
-
MapBackedLocalDate
public MapBackedLocalDate(java.util.Map sourceMap, java.lang.String property, java.time.LocalDate valueIfMissing)Construct a MapBackedLocalDate with a certain property name and default value- Parameters:
sourceMap- Map to store the LocalDate value inproperty- Key name of the propertyvalueIfMissing- value to set if missing
-
MapBackedLocalDate
public MapBackedLocalDate(java.util.Map sourceMap, java.lang.String property)Construct a MapBackedLocalDate with a certain property name. The default value will be the current local date.- Parameters:
sourceMap- Map to store the LocalDate value inproperty- Key name of the property
-
-
Method Detail
-
queryOption
protected java.util.Optional<java.time.LocalDate> queryOption() throws com.legyver.core.exception.CoreExceptionDescription copied from class:MapBackedPropertyHook to allow the property to be queryable- Specified by:
queryOptionin classMapBackedProperty<java.time.LocalDate>- Returns:
- the query option to use for the Property
- Throws:
com.legyver.core.exception.CoreException- if there is a problem marshalling to/from JSON
-
-