Class IndexedItemSetMapBase<K,​S,​M>

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.HashMap<K,​S> bag  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean addItem​(M key, int item)  
      abstract boolean addSetItem​(S s, int item)  
      void clear()  
      boolean containsItem​(M key, int item)  
      boolean containsKey​(java.lang.Object o)  
      abstract boolean containsSetItem​(S s, int item)  
      boolean containsValue​(java.lang.Object o)  
      java.util.Set<java.util.Map.Entry<K,​S>> entrySet()  
      S get​(java.lang.Object o)  
      boolean isEmpty()  
      java.util.Set<K> keySet()  
      abstract K mapKey​(M key)  
      abstract S newSet()  
      S put​(K k, S vs)  
      void putAll​(java.util.Map<? extends K,​? extends S> map)  
      S remove​(java.lang.Object o)  
      boolean removeItem​(M key, int item)  
      abstract boolean removeSetItem​(S s, int item)  
      int size()  
      java.util.Collection<S> values()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
    • Field Detail

      • bag

        protected final java.util.HashMap<K,​S> bag
    • Constructor Detail

      • IndexedItemSetMapBase

        public IndexedItemSetMapBase()
      • IndexedItemSetMapBase

        public IndexedItemSetMapBase​(int capacity)
    • Method Detail

      • size

        public int size()
        Specified by:
        size in interface java.util.Map<K,​S>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Map<K,​S>
      • containsKey

        public boolean containsKey​(@Nullable
                                   java.lang.Object o)
        Specified by:
        containsKey in interface java.util.Map<K,​S>
      • containsValue

        public boolean containsValue​(@Nullable
                                     java.lang.Object o)
        Specified by:
        containsValue in interface java.util.Map<K,​S>
      • get

        @Nullable
        public S get​(@Nullable
                     java.lang.Object o)
        Specified by:
        get in interface java.util.Map<K,​S>
      • put

        @Nullable
        public S put​(@NotNull
                     K k,
                     @NotNull
                     S vs)
        Specified by:
        put in interface java.util.Map<K,​S>
      • remove

        @Nullable
        public S remove​(@Nullable
                        java.lang.Object o)
        Specified by:
        remove in interface java.util.Map<K,​S>
      • putAll

        public void putAll​(@NotNull
                           java.util.Map<? extends K,​? extends S> map)
        Specified by:
        putAll in interface java.util.Map<K,​S>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Map<K,​S>
      • keySet

        @NotNull
        public java.util.Set<K> keySet()
        Specified by:
        keySet in interface java.util.Map<K,​S>
      • values

        @NotNull
        public java.util.Collection<S> values()
        Specified by:
        values in interface java.util.Map<K,​S>
      • entrySet

        @NotNull
        public java.util.Set<java.util.Map.Entry<K,​S>> entrySet()
        Specified by:
        entrySet in interface java.util.Map<K,​S>