public static final class StringSegment.Builder extends Object
StringSegment
.Modifier and Type | Method | Description |
---|---|---|
StringSegment |
build() |
Builds the accordingly configured
StringSegment instance. |
StringSegment.Builder |
withAlias(String aAlias) |
Builder method for the alias.
|
StringSegment.Builder |
withEncoding(Charset aEncoding) |
Builder method for the encoding.
|
StringSegment.Builder |
withEndianess(org.refcodes.numerical.Endianess aEndianess) |
Builder method for the endianess.
|
StringSegment.Builder |
withLengthWidth(int aLengthWidth) |
Builder method for the length width.
|
StringSegment.Builder |
withValue(String aValue) |
Builder method for the value.
|
public StringSegment.Builder withAlias(String aAlias)
aAlias
- The alias which identifies the content of this segment.public StringSegment.Builder withValue(String aValue)
aValue
- The payload to be contained by this
StringSegment
.public StringSegment.Builder withEncoding(Charset aEncoding)
public StringSegment.Builder withLengthWidth(int aLengthWidth)
aLengthWidth
- The width (in bytes) to be used for length
values.public StringSegment.Builder withEndianess(org.refcodes.numerical.Endianess aEndianess)
aEndianess
- The Endianess
to be used for length values.public StringSegment build()
StringSegment
instance.StringSegment
being configured.Copyright © 2021. All rights reserved.