public static class MarkerIndicatorRegion.Builder extends Object
Constructor and Description |
---|
Builder(int width)
Creates a new builder with the specified width.
|
Modifier and Type | Method and Description |
---|---|
MarkerIndicatorRegion.Builder |
addIndicator(String name,
String indicator)
Adds a new marker indicator.
|
MarkerIndicatorRegion |
build()
Builds the builder into a marker indicator region.
|
public Builder(int width)
width
- the width of the column, in characterspublic MarkerIndicatorRegion.Builder addIndicator(String name, String indicator)
name
- the name of the markers to indicateindicator
- the string indicating an occurrenceIllegalStateException
- if the builder has already transitioned to the built statepublic MarkerIndicatorRegion build()
IllegalStateException
- if the builder has already transitioned to the built state