Class DefaultAddOnValueProvider

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.Map<java.lang.String,​java.util.function.Supplier> getSuppliers()  
      <T> java.util.Optional<T> getValue​(java.lang.String key, java.lang.Class<T> type)
      Returns an Optional for the given key that contains the value if present.
      void setSuppliers​(java.util.Map<java.lang.String,​java.util.function.Supplier> suppliers)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultAddOnValueProvider

        public DefaultAddOnValueProvider()
    • Method Detail

      • getValue

        public <T> java.util.Optional<T> getValue​(java.lang.String key,
                                                  java.lang.Class<T> type)
        Description copied from interface: AddOnValueProvider
        Returns an Optional for the given key that contains the value if present.
        Specified by:
        getValue in interface AddOnValueProvider
        Parameters:
        key - the key to retrieve the value for
        type - the expected type of the value
        Returns:
        an Optional that either contains the value or is empty if key or type don't match
      • getSuppliers

        protected java.util.Map<java.lang.String,​java.util.function.Supplier> getSuppliers()
      • setSuppliers

        public void setSuppliers​(java.util.Map<java.lang.String,​java.util.function.Supplier> suppliers)