public class NotationJoiner extends Object
StringBuilder under the hood for performance reasons,
and due to the inability to extend. A joiner instance can only append,
due to the nature of how notation works it would be unnecessary and
complex to implement removal.| Constructor and Description |
|---|
NotationJoiner()
Initializes the internal builder.
|
| Modifier and Type | Method and Description |
|---|---|
NotationJoiner |
append(Integer... indices)
Appends some amount of index values to the builder.
|
NotationJoiner |
append(NotationSegment... segments)
Appends some existing segments to the builder.
|
NotationJoiner |
append(String... properties)
Appends some amount of property values to the builder.
|
String |
print()
Converts the current state of the builder to a
String. |
NotationJoiner |
reset()
Resets the joiner to an initial state.
|
String |
toString()
Converts this instance to a
String. |
@Nonnull public NotationJoiner append(@Nonnull Integer... indices)
indices - the index values to add to the joiner.NotationJoiner for chaining.@Nonnull public NotationJoiner append(@Nonnull NotationSegment... segments)
segments - the segment values to add to the joiner.NotationJoiner for chaining.@Nonnull public NotationJoiner append(@Nonnull String... properties)
properties - the property values to add to the joiner.NotationJoiner for chaining.@Nonnull public String print()
String.String instance.@Nonnull public NotationJoiner reset()
NotationJoiner for chaining.Copyright © 2017. All rights reserved.