Package org.apache.juneau.commons.lang
Class AsciiSet.Builder
java.lang.Object
org.apache.juneau.commons.lang.AsciiSet.Builder
- Enclosing class:
- AsciiSet
Builder class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a newAsciiSetobject with the contents of this builder.chars(char... value) 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
-
build
Create a newAsciiSetobject with the contents of this builder.- Returns:
- A new {link AsciiSet} object.
-
chars
Adds a set of characters to this set.- Parameters:
value- The characters to keep in this store.- Returns:
- This object.
-
chars
Adds a set of characters to this set.- Parameters:
value- The characters to keep in this store.- Returns:
- This object.
-
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:
value- Strings of the form "A-Z" where A and Z represent the first and last characters in the range.- Returns:
- This object.
-