Class ItemFactoryMap<I,P>

java.lang.Object
com.vladsch.flexmark.util.collection.ItemFactoryMap<I,P>
All Implemented Interfaces:
Map<Function<P,I>,I>
Direct Known Subclasses:
DocumentParser.ParagraphPreProcessorCache

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

    • itemMap

      protected final HashMap<Function<P,I>,I> itemMap
    • param

      @NotNull protected final P param
  • Constructor Details

    • ItemFactoryMap

      public ItemFactoryMap(@NotNull P param)
    • ItemFactoryMap

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

    • getItem

      public I getItem(Function<P,I> factory)
    • get

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

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

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

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

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

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

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

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

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

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

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

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