public static final class JCGLAsyncBufferPair.Builder extends Object
JCGLAsyncBufferPair.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
JCGLAsyncBufferPair |
build()
Builds a new
JCGLAsyncBufferPair. |
JCGLAsyncBufferPair.Builder |
from(JCGLAsyncBufferPairType instance)
Fill a builder with attribute values from the provided
JCGLAsyncBufferPairType instance. |
JCGLAsyncBufferPair.Builder |
setArrayBuffer(JCGLArrayBufferType arrayBuffer)
Initializes the value for the
arrayBuffer attribute. |
JCGLAsyncBufferPair.Builder |
setIndexBuffer(JCGLIndexBufferType indexBuffer)
Initializes the value for the
indexBuffer attribute. |
public final JCGLAsyncBufferPair.Builder from(JCGLAsyncBufferPairType instance)
JCGLAsyncBufferPairType instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final JCGLAsyncBufferPair.Builder setArrayBuffer(JCGLArrayBufferType arrayBuffer)
arrayBuffer attribute.arrayBuffer - The value for arrayBufferthis builder for use in a chained invocationpublic final JCGLAsyncBufferPair.Builder setIndexBuffer(JCGLIndexBufferType indexBuffer)
indexBuffer attribute.indexBuffer - The value for indexBufferthis builder for use in a chained invocationpublic JCGLAsyncBufferPair build()
JCGLAsyncBufferPair.IllegalStateException - if any required attributes are missingCopyright © 2017 <code@io7m.com> http://io7m.com