Class ByteBuffer.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ml.ByteBuffer.Builder
- All Implemented Interfaces:
CopyableBuilder<ByteBuffer.Builder,,ByteBuffer> MutableBuilder<ByteBuffer.Builder,,ByteBuffer> ObjectBuilder<ByteBuffer>
- Enclosing class:
ByteBuffer
public static class ByteBuffer.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ByteBuffer.Builder,ByteBuffer>
Builder for
ByteBuffer.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ByteBuffer.BuilderThe byte buffer array.build()Builds aByteBuffer.copy()Create a new builderCopyableBuilderthat is a copy of this one.final ByteBuffer.BuilderThe byte buffer order.Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<ByteBuffer.Builder,ByteBuffer> - Returns:
- a new builder instance.
-
array
The byte buffer array.API name:
array -
order
The byte buffer order.API name:
order -
build
Builds aByteBuffer.- Specified by:
buildin interfaceObjectBuilder<ByteBuffer>- Throws:
NullPointerException- if some of the required fields are null.
-