Class MarkerIndicatorRegion.Builder

  • Enclosing class:
    MarkerIndicatorRegion

    public static class MarkerIndicatorRegion.Builder
    extends Object
    Creates a new marker indicator region builder
    • Constructor Detail

      • Builder

        public Builder​(int width)
        Creates a new builder with the specified width.
        Parameters:
        width - the width of the column, in characters
    • Method Detail

      • addIndicator

        public MarkerIndicatorRegion.Builder addIndicator​(String name,
                                                          String indicator)
        Adds a new marker indicator.
        Parameters:
        name - the name of the markers to indicate
        indicator - the string indicating an occurrence
        Returns:
        a new builder
        Throws:
        IllegalStateException - if the builder has already transitioned to the built state
      • build

        public MarkerIndicatorRegion build()
        Builds the builder into a marker indicator region.
        Returns:
        returns a new marker indicator region
        Throws:
        IllegalStateException - if the builder has already transitioned to the built state