Class StringHashMapList2

  • All Implemented Interfaces:
    java.util.Map<java.lang.Integer,​java.lang.String>

    public class StringHashMapList2
    extends java.lang.Object
    implements java.util.Map<java.lang.Integer,​java.lang.String>
    • 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 Concrete Methods 
      Modifier and Type Method Description
      void addValueAndShiftKeys​(int fromIndex, int toIndex, java.lang.String label)
      shift elements all keys from starting index until the last toIndex.
      void clear()  
      boolean containsKey​(java.lang.Object key)  
      boolean containsValue​(java.lang.Object value)  
      java.util.Set<java.util.Map.Entry<java.lang.Integer,​java.lang.String>> entrySet()  
      java.lang.String get​(int externalIndex)  
      java.lang.String get​(java.lang.Object key)  
      boolean isEmpty()  
      java.util.Set<java.lang.Integer> keySet()  
      java.lang.String put​(java.lang.Integer key, java.lang.String value)  
      void putAll​(java.util.Map<? extends java.lang.Integer,​? extends java.lang.String> m)  
      void remove​(int fromIndex, int toIndex)
      Removes elements of this list using optimised system calls.
      java.lang.String remove​(java.lang.Object key)  
      void setAll​(StringHashMapList other)  
      void shiftKeys​(int fromIndex, int toIndex)
      shift elements all keys from starting index until the last toIndex.
      int size()  
      java.util.Collection<java.lang.String> 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
    • Constructor Detail

      • StringHashMapList2

        public StringHashMapList2()
    • Method Detail

      • addValueAndShiftKeys

        public void addValueAndShiftKeys​(int fromIndex,
                                         int toIndex,
                                         java.lang.String label)
        shift elements all keys from starting index until the last toIndex.
        Parameters:
        fromIndex - the start index (inclusive).
        toIndex - the end index (exclusive).
        label - label to be added
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Map<java.lang.Integer,​java.lang.String>
      • containsKey

        public boolean containsKey​(java.lang.Object key)
        Specified by:
        containsKey in interface java.util.Map<java.lang.Integer,​java.lang.String>
      • containsValue

        public boolean containsValue​(java.lang.Object value)
        Specified by:
        containsValue in interface java.util.Map<java.lang.Integer,​java.lang.String>
      • entrySet

        public java.util.Set<java.util.Map.Entry<java.lang.Integer,​java.lang.String>> entrySet()
        Specified by:
        entrySet in interface java.util.Map<java.lang.Integer,​java.lang.String>
      • get

        public java.lang.String get​(int externalIndex)
      • get

        public java.lang.String get​(java.lang.Object key)
        Specified by:
        get in interface java.util.Map<java.lang.Integer,​java.lang.String>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Map<java.lang.Integer,​java.lang.String>
      • keySet

        public java.util.Set<java.lang.Integer> keySet()
        Specified by:
        keySet in interface java.util.Map<java.lang.Integer,​java.lang.String>
      • put

        public java.lang.String put​(java.lang.Integer key,
                                    java.lang.String value)
        Specified by:
        put in interface java.util.Map<java.lang.Integer,​java.lang.String>
      • putAll

        public void putAll​(java.util.Map<? extends java.lang.Integer,​? extends java.lang.String> m)
        Specified by:
        putAll in interface java.util.Map<java.lang.Integer,​java.lang.String>
      • remove

        public void remove​(int fromIndex,
                           int toIndex)
        Removes elements of this list using optimised system calls.
        Parameters:
        fromIndex - the start index (inclusive).
        toIndex - the end index (exclusive).
      • remove

        public java.lang.String remove​(java.lang.Object key)
        Specified by:
        remove in interface java.util.Map<java.lang.Integer,​java.lang.String>
      • shiftKeys

        public void shiftKeys​(int fromIndex,
                              int toIndex)
        shift elements all keys from starting index until the last toIndex.
        Parameters:
        fromIndex - the start index (inclusive).
        toIndex - the end index (exclusive).
      • size

        public int size()
        Specified by:
        size in interface java.util.Map<java.lang.Integer,​java.lang.String>
      • values

        public java.util.Collection<java.lang.String> values()
        Specified by:
        values in interface java.util.Map<java.lang.Integer,​java.lang.String>