Interface SimpleMap<T>

    • Method Detail

      • get

        T get​(String key)
        get a value by key. If not present , null is returned
      • get

        default T get​(String key,
                      T def)
      • forEachEntry

        void forEachEntry​(BiConsumer<String,​? super T> fun)
        Navigate through all keys and values
      • forEachKey

        default void forEachKey​(Consumer<String> fun)
        iterate through all keys The default impl is suboptimal. Proper implementations must do it more efficiently
      • size

        int size()
      • abortableForEachKey

        default void abortableForEachKey​(Function<String,​Boolean> fun)
        iterate through all keys but abort in between if required The default impl is suboptimal. Proper implementations must do it more efficiently
        Parameters:
        fun - Consume each key and return a boolean to signal whether to proceed or not. If true, continue. If false stop
      • abortableForEach

        default void abortableForEach​(BiFunction<String,​? super T,​Boolean> fun)
        Navigate through all key-values but abort in between if required. The default impl is suboptimal. Proper implementations must do it more efficiently
        Parameters:
        fun - Consume each entry and return a boolean to signal whether to proceed or not. If true, continue, if false stop