Interface SizedMap

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getMaxSize()
      The maximum number of entries, or Integer.MAX_VALUE for no limit.
      boolean isFull()
      Whether the map is full.
      void overflowRemoved​(java.lang.Object key, java.lang.Object value)
      Overridable callback for when an overflow entry is automatically removed.
      void setMaxSize​(int max)
      The maximum number of entries, or Integer.MAX_VALUE for no limit.
      • Methods inherited from interface java.util.Map

        clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
    • Method Detail

      • getMaxSize

        int getMaxSize()
        The maximum number of entries, or Integer.MAX_VALUE for no limit.
      • setMaxSize

        void setMaxSize​(int max)
        The maximum number of entries, or Integer.MAX_VALUE for no limit.
      • isFull

        boolean isFull()
        Whether the map is full.
      • overflowRemoved

        void overflowRemoved​(java.lang.Object key,
                             java.lang.Object value)
        Overridable callback for when an overflow entry is automatically removed.