Klasse CharArrayMap<P>
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.util.CharArrayMap<P>
- Alle implementierten Schnittstellen:
Cloneable
,CharArrayMapper<P>
This map avoids hashing. This is suitable for few elements or long char arrays because it uses vectorized equals.
Vectorized equals is several times faster then calculating hashCode in a loop. This class is not thread safe and
callers are responsible for thread safety.
- Autor:
- jkubitz
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
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.
-
Konstruktordetails
-
CharArrayMap
public CharArrayMap() -
CharArrayMap
public CharArrayMap(int estimatedSize)
-
-
Methodendetails
-
values
Beschreibung aus Schnittstelle kopiert:CharArrayMapper
Returns a copied collection of values.- Angegeben von:
values
in SchnittstelleCharArrayMapper<P>
- Gibt zurück:
- all values in undefined order. The order is not guaranteed to be stable.
-
keys
Beschreibung aus Schnittstelle kopiert:CharArrayMapper
Returns a copied collection of keys.- Angegeben von:
keys
in SchnittstelleCharArrayMapper<P>
- Gibt zurück:
- all keys in undefined order. The order is not guaranteed to be stable.
-
containsKey
public boolean containsKey(char[] key) - Angegeben von:
containsKey
in SchnittstelleCharArrayMapper<P>
-
get
- Angegeben von:
get
in SchnittstelleCharArrayMapper<P>
-
put
- Angegeben von:
put
in SchnittstelleCharArrayMapper<P>
- Gibt zurück:
- the previous value
-
size
public int size()- Angegeben von:
size
in SchnittstelleCharArrayMapper<P>
- Gibt zurück:
- the number of keys
-
toString
-