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
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleancontainsKey(char[] key) get(char[] key) Collection<char[]>keys()Returns a copied collection of keys.intsize()toString()values()Returns a copied collection of values.
-
Konstruktordetails
-
CharArrayMap
public CharArrayMap() -
CharArrayMap
public CharArrayMap(int estimatedSize)
-
-
Methodendetails
-
values
Beschreibung aus Schnittstelle kopiert:CharArrayMapperReturns a copied collection of values.- Angegeben von:
valuesin SchnittstelleCharArrayMapper<P>- Gibt zurück:
- all values in undefined order. The order is not guaranteed to be stable.
-
keys
Beschreibung aus Schnittstelle kopiert:CharArrayMapperReturns a copied collection of keys.- Angegeben von:
keysin 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:
containsKeyin SchnittstelleCharArrayMapper<P>
-
get
- Angegeben von:
getin SchnittstelleCharArrayMapper<P>
-
put
- Angegeben von:
putin SchnittstelleCharArrayMapper<P>- Gibt zurück:
- the previous value
-
size
public int size()- Angegeben von:
sizein SchnittstelleCharArrayMapper<P>- Gibt zurück:
- the number of keys
-
toString
-