Class AsciiSet.Builder

java.lang.Object
org.apache.juneau.common.internal.AsciiSet.Builder
Enclosing class:
AsciiSet

public static class AsciiSet.Builder extends Object
Builder class.
  • Constructor Details

  • Method Details

    • range

      public AsciiSet.Builder range(char start, char end)
      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

      public AsciiSet.Builder chars(String chars)
      Adds a set of characters to this set.
      Parameters:
      chars - The characters to keep in this store.
      Returns:
      This object.
    • chars

      public AsciiSet.Builder chars(char... chars)
      Adds a set of characters to this set.
      Parameters:
      chars - The characters to keep in this store.
      Returns:
      This object.
    • build

      public AsciiSet build()
      Create a new AsciiSet object with the contents of this builder.
      Returns:
      A new {link AsciiSet} object.