Package org.apache.juneau.common.utils
Class AsciiSet
java.lang.Object
org.apache.juneau.common.utils.AsciiSet
Stores a set of ASCII characters for quick lookup.
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionbooleancontains(char c) Returnstrue if the specified character is in this store.booleancontains(int c) Returnstrue if the specified character is in this store.booleanReturnstrue if the specified string contains at least one character in this set.booleanReturnstrue if the specified string contains only characters in this set.copy()Copies an existingAsciiSetso that you can augment it with additional values.static AsciiSet.Buildercreate()Creates a builder for an ASCII set.static AsciiSetCreates an ASCII set with the specified characters.
- 
Method Details- 
ofCreates an ASCII set with the specified characters.- Parameters:
- chars- The characters to keep in this store.
- Returns:
- A new object.
 
- 
createCreates a builder for an ASCII set.- Returns:
- A new builder.
 
- 
copyCopies an existingAsciiSetso that you can augment it with additional values.- Returns:
- A builder initialized to the same characters in the copied set.
 
- 
containsReturnstrue if the specified character is in this store.- Parameters:
- c- The character to check.
- Returns:
- true if the specified character is in this store.
 
- 
containsReturnstrue if the specified character is in this store.- Parameters:
- c- The character to check.
- Returns:
- true if the specified character is in this store.
 
- 
containsReturnstrue 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.
 
- 
containsOnlyReturnstrue if the specified string contains only characters in this set.- Parameters:
- s- The string to test.
- Returns:
- true if the string contains only characters in this set.
 Nulls always return- false .
 Blanks always return- true .
 
 
-