Class OrderedMap<K,V>
- java.lang.Object
-
- org.restlet.ext.jaxrs.internal.util.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classOrderedMap.Entry<K,V>Deprecated.private classOrderedMap.KeySetIterator<KK,VV>Deprecated.private classOrderedMap.KeyValueSetIterator<KK,VV>Deprecated.private static classOrderedMap.ListWrappingSet<E>Deprecated.This list has the interface of a Set, but wraps a Listprivate classOrderedMap.ValueSetIterator<KK,VV>Deprecated.
-
Constructor Summary
Constructors Constructor Description OrderedMap()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanadd(K key, V value)Deprecated.adds the given entry.voidclear()Deprecated.booleancontainsKey(java.lang.Object key)Deprecated.booleancontainsValue(java.lang.Object value)Deprecated.java.util.Set<java.util.Map.Entry<K,V>>entrySet()Deprecated.Vget(java.lang.Object key)Deprecated.booleanisEmpty()Deprecated.java.util.Set<K>keySet()Deprecated.Vput(K key, V value)Deprecated.adds the given entry.voidputAll(java.util.Map<? extends K,? extends V> map)Deprecated.Vremove(java.lang.Object key)Deprecated.intsize()Deprecated.java.lang.StringtoString()Deprecated.java.util.Collection<V>values()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.
-
containsKey
public boolean containsKey(java.lang.Object key)
Deprecated.
-
containsValue
public boolean containsValue(java.lang.Object value)
Deprecated.
-
get
public V get(java.lang.Object key)
Deprecated.
-
isEmpty
public boolean isEmpty()
Deprecated.
-
keySet
public java.util.Set<K> keySet()
Deprecated.
-
put
public V put(K key, V value)
Deprecated.adds the given entry. Will ever returnnull, also if there is an element with the given value.- Specified by:
putin interfacejava.util.Map<K,V>- See Also:
Map.put(Object, Object),add(Object, Object)
-
remove
public V remove(java.lang.Object key)
Deprecated.
-
size
public int size()
Deprecated.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
-