@NotThreadSafe public static final class CodeGeneratorOptions.Builder extends Object
CodeGeneratorOptions.
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 |
|---|---|
CodeGeneratorOptions.Builder |
addAllLanguages(Iterable<String> elements)
Adds elements to
languages list. |
CodeGeneratorOptions.Builder |
addLanguages(String... elements)
Adds elements to
languages list. |
CodeGeneratorOptions.Builder |
addLanguages(String element)
Adds one element to
languages list. |
CodeGeneratorOptions |
build()
Builds a new
CodeGeneratorOptions. |
public final CodeGeneratorOptions.Builder addLanguages(String element)
languages list.element - A languages elementthis builder for use in a chained invocationpublic final CodeGeneratorOptions.Builder addLanguages(String... elements)
languages list.elements - An array of languages elementsthis builder for use in a chained invocationpublic final CodeGeneratorOptions.Builder addAllLanguages(Iterable<String> elements)
languages list.elements - An iterable of languages elementsthis builder for use in a chained invocationpublic CodeGeneratorOptions build()
CodeGeneratorOptions.IllegalStateException - if any required attributes are missingCopyright © 2017 Cosium. All rights reserved.