public static final class SoShaderPreprocessorConfig.Builder extends Object
SoShaderPreprocessorConfig.
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 |
|---|---|
SoShaderPreprocessorConfig |
build()
Builds a new
SoShaderPreprocessorConfig. |
SoShaderPreprocessorConfig.Builder |
from(SoShaderPreprocessorConfigType instance)
Fill a builder with attribute values from the provided
SoShaderPreprocessorConfigType instance. |
SoShaderPreprocessorConfig.Builder |
setResolver(SoShaderResolverType resolver)
Initializes the value for the
resolver attribute. |
SoShaderPreprocessorConfig.Builder |
setVersion(int version)
Initializes the optional value
version to version. |
SoShaderPreprocessorConfig.Builder |
setVersion(OptionalInt version)
Initializes the optional value
version to version. |
public final SoShaderPreprocessorConfig.Builder from(SoShaderPreprocessorConfigType instance)
SoShaderPreprocessorConfigType 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 SoShaderPreprocessorConfig.Builder setResolver(SoShaderResolverType resolver)
resolver attribute.resolver - The value for resolverthis builder for use in a chained invocationpublic final SoShaderPreprocessorConfig.Builder setVersion(int version)
version to version.version - The value for versionthis builder for chained invocationpublic final SoShaderPreprocessorConfig.Builder setVersion(OptionalInt version)
version to version.version - The value for versionthis builder for use in a chained invocationpublic SoShaderPreprocessorConfig build()
SoShaderPreprocessorConfig.IllegalStateException - if any required attributes are missingCopyright © 2016 <code@io7m.com> http://io7m.com