Class MapValueSupplier<T>

  • All Implemented Interfaces:
    Supplier<T>

    public class MapValueSupplier<T>
    extends Object
    implements Supplier<T>
    Supplier implementation that supplies a value from a map. The key is pre-configured.
    Author:
    Maarten Mulders
    • Constructor Detail

      • MapValueSupplier

        public MapValueSupplier​(Map<String,​T> map,
                                String key)
    • Method Detail

      • get

        public T get()
        Specified by:
        get in interface Supplier<T>