Class ItemFactoryMap<I,​P>

  • All Implemented Interfaces:
    Map<Function<P,​I>,​I>

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

      • param

        @NotNull
        protected final P param
    • Constructor Detail

      • ItemFactoryMap

        public ItemFactoryMap​(@NotNull
                              P param)
      • ItemFactoryMap

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

      • 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>