Class KeyedItemFactoryMap<K,I,P>

java.lang.Object
com.vladsch.flexmark.experimental.util.collection.KeyedItemFactoryMap<K,I,P>
All Implemented Interfaces:
Map<K,Function<P,I>>

public class KeyedItemFactoryMap<K,I,P> extends Object implements Map<K,Function<P,I>>
  • Field Details

    • factoryMap

      @NotNull protected final @NotNull HashMap<K,Function<P,I>> factoryMap
    • itemMap

      @NotNull protected final @NotNull HashMap<K,I> itemMap
    • param

      @NotNull protected final P param
  • Constructor Details

    • KeyedItemFactoryMap

      public KeyedItemFactoryMap(@NotNull P param)
    • KeyedItemFactoryMap

      public KeyedItemFactoryMap(@NotNull P param, int capacity)
  • Method Details

    • getItem

      @Nullable public I getItem(@NotNull K key)
    • size

      public int size()
      Specified by:
      size in interface Map<K,I>
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Map<K,I>
    • get

      @Nullable public @Nullable Function<P,I> get(@Nullable @Nullable Object o)
      Specified by:
      get in interface Map<K,I>
    • containsKey

      public boolean containsKey(@Nullable @Nullable Object o)
      Specified by:
      containsKey in interface Map<K,I>
    • put

      @Nullable public @Nullable Function<P,I> put(@NotNull K k, @NotNull @NotNull Function<P,I> factory)
      Specified by:
      put in interface Map<K,I>
    • putAll

      public void putAll(@NotNull @NotNull Map<? extends K,? extends Function<P,I>> map)
      Specified by:
      putAll in interface Map<K,I>
    • remove

      @Nullable public @Nullable Function<P,I> remove(@Nullable @Nullable Object o)
      Specified by:
      remove in interface Map<K,I>
    • clear

      public void clear()
      Specified by:
      clear in interface Map<K,I>
    • containsValue

      public boolean containsValue(Object o)
      Specified by:
      containsValue in interface Map<K,I>
    • keySet

      @NotNull public @NotNull Set<K> keySet()
      Specified by:
      keySet in interface Map<K,I>
    • values

      @NotNull public @NotNull Collection<Function<P,I>> values()
      Specified by:
      values in interface Map<K,I>
    • entrySet

      @NotNull public @NotNull Set<Map.Entry<K,Function<P,I>>> entrySet()
      Specified by:
      entrySet in interface Map<K,I>