Class PlainStringBuilder.DefaultPlainStringBuilder
java.lang.Object
zeroecho.sdk.builders.core.PlainStringBuilder.DefaultPlainStringBuilder
- All Implemented Interfaces:
DataContentBuilder<PlainString>, PlainStringBuilder
- Enclosing interface:
PlainStringBuilder
public static final class PlainStringBuilder.DefaultPlainStringBuilder
extends Object
implements PlainStringBuilder
Default implementation of the
PlainStringBuilder interface.
Builds a PlainString instance using the specified string value.
-
Nested Class Summary
Nested classes/interfaces inherited from interface PlainStringBuilder
PlainStringBuilder.DefaultPlainStringBuilder -
Method Summary
Modifier and TypeMethodDescriptionbuild(boolean encrypt) Constructs and returns a newDataContentinstance based on the builder's current configuration.Sets the string value that thePlainStringinstance will contain.
-
Method Details
-
value
Description copied from interface:PlainStringBuilderSets the string value that thePlainStringinstance will contain.- Specified by:
valuein interfacePlainStringBuilder- Parameters:
value- the string value; may benullor empty depending on usage- Returns:
- this builder instance
-
build
Description copied from interface:DataContentBuilderConstructs and returns a newDataContentinstance based on the builder's current configuration.- Specified by:
buildin interfaceDataContentBuilder<PlainString>- Parameters:
encrypt- whether the resultingDataContentshould be configured for encryption (true) or decryption (false). In encryption mode, additional headers or metadata may be inserted into the stream which must be retained for successful decryption.- Returns:
- the constructed
DataContentinstance
-