Class RangeBuilder

java.lang.Object
com.itextpdf.layout.font.RangeBuilder

public class RangeBuilder extends Object
Builder of Range.
  • Constructor Details

    • RangeBuilder

      public RangeBuilder()
      Default constructor with empty range.
    • RangeBuilder

      public RangeBuilder (int low, int high)
      Constructor with a single range.
      Parameters:
      low - low boundary of the range
      high - high boundary of the range
    • RangeBuilder

      public RangeBuilder (int n)
      Constructor with a single number.
      Parameters:
      n - a single number
    • RangeBuilder

      public RangeBuilder (char low, char high)
      Constructor with a single range.
      Parameters:
      low - low boundary of the range
      high - high boundary of the range
    • RangeBuilder

      public RangeBuilder (char ch)
      Constructor with a single char.
      Parameters:
      ch - a single char
  • Method Details

    • addRange

      public RangeBuilder addRange (int low, int high)
      Add one more range.
      Parameters:
      low - low boundary of the range
      high - high boundary of the range
      Returns:
      this RangeBuilder
    • addRange

      public RangeBuilder addRange (char low, char high)
      Add one more range.
      Parameters:
      low - low boundary of the range
      high - high boundary of the range
      Returns:
      this RangeBuilder
    • addRange

      public RangeBuilder addRange (int n)
      Add range with a single number.
      Parameters:
      n - a single number
      Returns:
      this RangeBuilder
    • addRange

      public RangeBuilder addRange (char ch)
      Add range with a single char.
      Parameters:
      ch - a single char
      Returns:
      this RangeBuilder
    • create

      public Range create()
      Creates a Range instance based on added ranges.
      Returns:
      the Range instance based on added ranges