Class CharDelegateMap<P>
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.util.CharDelegateMap<P>
- All Implemented Interfaces:
Cloneable
,CharArrayMapper<P>
- Direct Known Subclasses:
HashtableOfPackage
This map uses a specialized implementation for few elements. Because compiler lookups are typically small maps.
- Author:
- jkubitz
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey(char[] key)
get(char[] key)
Collection<char[]>
keys()
Returns a copied collection of keys.int
size()
toString()
values()
Returns a copied collection of values.
-
Constructor Details
-
CharDelegateMap
public CharDelegateMap() -
CharDelegateMap
public CharDelegateMap(int estimatedSize)
-
-
Method Details
-
values
Description copied from interface:CharArrayMapper
Returns a copied collection of values.- Specified by:
values
in interfaceCharArrayMapper<P>
- Returns:
- all values in undefined order. The order is not guaranteed to be stable.
-
containsKey
public boolean containsKey(char[] key)- Specified by:
containsKey
in interfaceCharArrayMapper<P>
-
get
- Specified by:
get
in interfaceCharArrayMapper<P>
-
put
- Specified by:
put
in interfaceCharArrayMapper<P>
- Returns:
- the previous value
-
size
public int size()- Specified by:
size
in interfaceCharArrayMapper<P>
- Returns:
- the number of keys
-
toString
-
keys
Description copied from interface:CharArrayMapper
Returns a copied collection of keys.- Specified by:
keys
in interfaceCharArrayMapper<P>
- Returns:
- all keys in undefined order. The order is not guaranteed to be stable.
-