Divider renders a horizontal line of configurable width. When a title is
set via title(String), the title is centered within the divider line.
| Modifier and Type | Field and Description |
|---|---|
| private final DividerConfiguration | |
| private String | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | Divider(int
the width of the divider; must be greater than 0 width, DividerConfiguration the divider configuration to use; must not be configuration)nullCreates a new Divider with the given width and configuration. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object object)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | get()
Implements io. Builds and returns the fully formatted string representation of this component. |
| public int | |
| public Divider | |
| public String | |
| private static void |
| configuration | back to summary |
|---|---|
| private final DividerConfiguration configuration | |
| title | back to summary |
|---|---|
| private String title | |
| width | back to summary |
|---|---|
| private final int width | |
| Divider | back to summary |
|---|---|
| public Divider(int width, DividerConfiguration configuration) Creates a new Divider with the given width and configuration.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| get | back to summary |
|---|---|
| public String get() Implements io. Doc from io. Builds and returns the fully formatted string representation of this component. Each call performs a full render — no caching is implied by this interface. Implementations may document their own caching behavior if applicable.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| title | back to summary |
|---|---|
| public Divider title(String title) Sets the title to display centered within the divider line.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| validateWidth | back to summary |
|---|---|
| private static void validateWidth(int width) | |