public interface StringValue
The getValue method retrieves the String value and the setValue method
sets the String value. The getUsingValue method retrieves the String value into a
supplied StringBuilder instance, which can be beneficial in scenarios where minimizing
object allocations is desirable.
The setValue method allows constraining the length of the CharSequence via the @MaxBytes
annotation. This can be useful for enforcing memory constraints on the stored value.
BooleanValue,
ByteValue,
CharValue,
DoubleValue,
FloatValue,
IntValue,
LongValue,
ShortValue,
StringValue,
LongArrayValues,
IntArrayValues| Modifier and Type | Method and Description |
|---|---|
@NotNull StringBuilder |
getUsingValue(StringBuilder stringBuilder)
Retrieves the String value into a supplied
StringBuilder instance. |
@NotNull String |
getValue()
Retrieves the String value.
|
void |
setValue(CharSequence value)
Sets the String value from a CharSequence.
|
@NotNull @NotNull String getValue()
void setValue(@MaxBytes CharSequence value)
@MaxBytes annotation.value - The CharSequence from which the String value is set.@NotNull @NotNull StringBuilder getUsingValue(StringBuilder stringBuilder)
StringBuilder instance. This is useful
in scenarios where minimizing object allocations is desirable.stringBuilder - The StringBuilder instance to populate with the String value.StringBuilder containing the current String value.Copyright © 2024. All rights reserved.