Class NestedLookupMap<V>

java.lang.Object
org.springframework.util.LinkedCaseInsensitiveMap<V>
org.frankframework.util.NestedLookupMap<V>
Type Parameters:
V - Type of the values in the map.
All Implemented Interfaces:
Serializable, Cloneable, Map<String,V>
Direct Known Subclasses:
PipeLineSession

public class NestedLookupMap<V> extends org.springframework.util.LinkedCaseInsensitiveMap<V>
Map implementation that allows looking up dotted keys in nested sub-maps. Only the master-map needs to be of type NestedLookupMap, sub-maps can be of any type. Key lookup in the master map is also case-insensitive. If sub-maps are case-insensitive as well, then those parts can also be retrieved case-insensitive; however that depends on the actual submap-implementation type. Map keys are always Strings.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface Map

    Map.Entry<K,V>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    containsKey(@NonNull Object key)
     
    @Nullable V
    get(@Nullable Object key)
    Overridden `get` method to supported dot-separated keys to get values from nested sub-maps.

    Methods inherited from class org.springframework.util.LinkedCaseInsensitiveMap

    clear, clone, computeIfAbsent, containsValue, convertKey, entrySet, equals, forEach, getLocale, getOrDefault, hashCode, isEmpty, keySet, put, putAll, putIfAbsent, remove, removeEldestEntry, size, toString, values

    Methods inherited from class Object

    finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface Map

    compute, computeIfPresent, merge, remove, replace, replace, replaceAll
  • Constructor Details

    • NestedLookupMap

      public NestedLookupMap()
  • Method Details

    • get

      public @Nullable V get(@Nullable Object key)
      Overridden `get` method to supported dot-separated keys to get values from nested sub-maps.
      Specified by:
      get in interface Map<String,V>
      Overrides:
      get in class org.springframework.util.LinkedCaseInsensitiveMap<V>
      Parameters:
      key - the key whose associated value is to be returned. A NULL key always returns value NULL.
      Returns:
      Value from (nested) map, or NULL.
    • containsKey

      public boolean containsKey(@NonNull Object key)
      Specified by:
      containsKey in interface Map<String,V>
      Overrides:
      containsKey in class org.springframework.util.LinkedCaseInsensitiveMap<V>