Package org.apache.tools.ant.util
Class LinkedHashtable<K,V>
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<K,V>
org.apache.tools.ant.util.LinkedHashtable<K,V>
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<K,
V>
Subclass of Hashtable that wraps a LinkedHashMap to provide
predictable iteration order.
This is not a general purpose class but has been written because
the protected members of Copy
prohibited later revisions from using a more predictable
collection.
Methods are synchronized to keep Hashtable's contract.
- Since:
- Ant 1.8.2
- See Also:
-
Constructor Summary
ConstructorDescriptionLinkedHashtable
(int initialCapacity) LinkedHashtable
(int initialCapacity, float loadFactor) LinkedHashtable
(Map<K, V> m) -
Method Summary
Methods inherited from class java.util.Hashtable
clone, compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, rehash, remove, replace, replace, replaceAll
-
Constructor Details
-
LinkedHashtable
public LinkedHashtable() -
LinkedHashtable
public LinkedHashtable(int initialCapacity) -
LinkedHashtable
public LinkedHashtable(int initialCapacity, float loadFactor) -
LinkedHashtable
-
-
Method Details
-
clear
-
contains
-
containsKey
- Specified by:
containsKey
in interfaceMap<K,
V> - Overrides:
containsKey
in classHashtable<K,
V>
-
containsValue
- Specified by:
containsValue
in interfaceMap<K,
V> - Overrides:
containsValue
in classHashtable<K,
V>
-
elements
-
entrySet
-
equals
-
get
-
hashCode
-
isEmpty
-
keys
-
keySet
-
put
-
putAll
-
remove
-
size
-
toString
-
values
-