Class OrderedMap<K,​V>

  • Type Parameters:
    K -
    V -
    All Implemented Interfaces:
    java.util.Map<K,​V>

    @Deprecated
    public class OrderedMap<K,​V>
    extends java.lang.Object
    implements java.util.Map<K,​V>
    Deprecated.
    Will be removed in next minor release.
    This Map contains its values in the given order.
    Multiple values for one key is allowed.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<java.util.Map.Entry<? extends K,​? extends V>> elements
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      OrderedMap()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean add​(K key, V value)
      Deprecated.
      adds the given entry.
      void clear()
      Deprecated.
       
      boolean containsKey​(java.lang.Object key)
      Deprecated.
       
      boolean containsValue​(java.lang.Object value)
      Deprecated.
       
      java.util.Set<java.util.Map.Entry<K,​V>> entrySet()
      Deprecated.
       
      V get​(java.lang.Object key)
      Deprecated.
       
      boolean isEmpty()
      Deprecated.
       
      java.util.Set<K> keySet()
      Deprecated.
       
      V put​(K key, V value)
      Deprecated.
      adds the given entry.
      void putAll​(java.util.Map<? extends K,​? extends V> map)
      Deprecated.
       
      V remove​(java.lang.Object key)
      Deprecated.
       
      int size()
      Deprecated.
       
      java.lang.String toString()
      Deprecated.
       
      java.util.Collection<V> values()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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

      • elements

        private final java.util.List<java.util.Map.Entry<? extends K,​? extends V>> elements
        Deprecated.
    • Constructor Detail

      • OrderedMap

        public OrderedMap()
        Deprecated.
    • Method Detail

      • add

        public boolean add​(K key,
                           V value)
        Deprecated.
        adds the given entry.
        Parameters:
        key -
        value -
        Returns:
        ever true (the value is added ever)
      • clear

        public void clear()
        Deprecated.
        Specified by:
        clear in interface java.util.Map<K,​V>
        See Also:
        Map.clear()
      • containsKey

        public boolean containsKey​(java.lang.Object key)
        Deprecated.
        Specified by:
        containsKey in interface java.util.Map<K,​V>
        See Also:
        Map.containsKey(java.lang.Object)
      • containsValue

        public boolean containsValue​(java.lang.Object value)
        Deprecated.
        Specified by:
        containsValue in interface java.util.Map<K,​V>
        See Also:
        Map.containsValue(java.lang.Object)
      • entrySet

        public java.util.Set<java.util.Map.Entry<K,​V>> entrySet()
        Deprecated.
        Specified by:
        entrySet in interface java.util.Map<K,​V>
        See Also:
        Map.entrySet()
      • get

        public V get​(java.lang.Object key)
        Deprecated.
        Specified by:
        get in interface java.util.Map<K,​V>
        See Also:
        Map.get(java.lang.Object)
      • isEmpty

        public boolean isEmpty()
        Deprecated.
        Specified by:
        isEmpty in interface java.util.Map<K,​V>
        See Also:
        Map.isEmpty()
      • keySet

        public java.util.Set<K> keySet()
        Deprecated.
        Specified by:
        keySet in interface java.util.Map<K,​V>
        See Also:
        Map.keySet()
      • put

        public V put​(K key,
                     V value)
        Deprecated.
        adds the given entry. Will ever return null, also if there is an element with the given value.
        Specified by:
        put in interface java.util.Map<K,​V>
        See Also:
        Map.put(Object, Object), add(Object, Object)
      • putAll

        public void putAll​(java.util.Map<? extends K,​? extends V> map)
        Deprecated.
        Specified by:
        putAll in interface java.util.Map<K,​V>
        See Also:
        Map.putAll(java.util.Map)
      • remove

        public V remove​(java.lang.Object key)
        Deprecated.
        Specified by:
        remove in interface java.util.Map<K,​V>
        See Also:
        Map.remove(java.lang.Object)
      • size

        public int size()
        Deprecated.
        Specified by:
        size in interface java.util.Map<K,​V>
        See Also:
        Map.size()
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object
      • values

        public java.util.Collection<V> values()
        Deprecated.
        Specified by:
        values in interface java.util.Map<K,​V>
        See Also:
        Map.values()