Class 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
    • 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 in
        property - Key name of the property
        valueIfMissing - 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 in
        property - Key name of the property
    • Method Detail

      • queryOption

        protected java.util.Optional<java.time.LocalDate> queryOption()
                                                               throws com.legyver.core.exception.CoreException
        Description copied from class: MapBackedProperty
        Hook to allow the property to be queryable
        Specified by:
        queryOption in class MapBackedProperty<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