Class AsciiMap
java.lang.Object
org.apache.juneau.common.internal.AsciiMap
Stores a Map of ASCII characters to Strings in a quick-lookup array.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds an entry to this map.boolean
contains
(char c) Returnstrue if the specified character is in this store.boolean
contains
(int c) Returnstrue if the specified character is in this store.boolean
Returnstrue if the specified string contains at least one character in this set.get
(char c) Returns the value for the specified key.
-
Constructor Details
-
AsciiMap
public AsciiMap()
-
-
Method Details
-
append
Adds an entry to this map.- Parameters:
c
- The key.s
- The value.- Returns:
- This object.
-
get
Returns the value for the specified key.- Parameters:
c
- The key.- Returns:
- The value.
-
contains
Returnstrue if the specified character is in this store.- Parameters:
c
- The character to check.- Returns:
true if the specified character is in this store.
-
contains
Returnstrue if the specified character is in this store.- Parameters:
c
- The character to check.- Returns:
true if the specified character is in this store.
-
contains
Returnstrue if the specified string contains at least one character in this set.- Parameters:
s
- The string to test.- Returns:
true if the string is not null and contains at least one character in this set.
-