public static class AsciiSet.Builder extends Object
AsciiSet objects.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
AsciiSet |
build()
Create a new
AsciiSet object with the contents of this builder. |
AsciiSet.Builder |
chars(char... chars)
Adds a set of characters to this set.
|
AsciiSet.Builder |
chars(String chars)
Adds a set of characters to this set.
|
AsciiSet.Builder |
range(char start,
char end)
Adds a range of characters to this set.
|
AsciiSet.Builder |
ranges(String... s)
Shortcut for calling multiple ranges.
|
public Builder()
public AsciiSet.Builder range(char start, char end)
start - The start character.end - The end character.public AsciiSet.Builder ranges(String... s)
s - Strings of the form "A-Z" where A and Z represent the first and last characters in the range.public AsciiSet.Builder chars(String chars)
chars - The characters to keep in this store.public AsciiSet.Builder chars(char... chars)
chars - The characters to keep in this store.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.