Class AsciiSet.Builder
java.lang.Object
org.apache.juneau.common.internal.AsciiSet.Builder
- Enclosing class:
AsciiSet
Builder class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create a newAsciiSet
object with the contents of this builder.chars
(char... chars) Adds a set of characters to this set.Adds a set of characters to this set.range
(char start, char end) Adds a range of characters to this set.Shortcut for calling multiple ranges.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
range
Adds a range of characters to this set.- Parameters:
start
- The start character.end
- The end character.- Returns:
- This object.
-
ranges
Shortcut for calling multiple ranges.- Parameters:
s
- Strings of the form "A-Z" where A and Z represent the first and last characters in the range.- Returns:
- This object.
-
chars
Adds a set of characters to this set.- Parameters:
chars
- The characters to keep in this store.- Returns:
- This object.
-
chars
Adds a set of characters to this set.- Parameters:
chars
- The characters to keep in this store.- Returns:
- This object.
-
build
Create a newAsciiSet
object with the contents of this builder.- Returns:
- A new {link AsciiSet} object.
-