@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ICodeGeneratorOptions"}) @Immutable public final class CodeGeneratorOptions extends Object implements ICodeGeneratorOptions
| Modifier and Type | Class and Description |
|---|---|
static class |
CodeGeneratorOptions.Builder
Builds instances of type
CodeGeneratorOptions. |
static interface |
CodeGeneratorOptions.BuildFinal |
static interface |
CodeGeneratorOptions.OneGenerationFolderPerLanguageBuildStage |
| Modifier and Type | Method and Description |
|---|---|
static CodeGeneratorOptions.OneGenerationFolderPerLanguageBuildStage |
builder()
Creates a builder for
CodeGeneratorOptions. |
static CodeGeneratorOptions |
copyOf(ICodeGeneratorOptions instance)
Creates an immutable copy of a
ICodeGeneratorOptions value. |
boolean |
equals(Object another)
This instance is equal to all instances of
CodeGeneratorOptions that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
oneGenerationFolderPerLanguage, languages. |
com.google.common.collect.ImmutableList<String> |
languages() |
boolean |
oneGenerationFolderPerLanguage() |
String |
toString()
Prints the immutable value
CodeGeneratorOptions with attribute values. |
CodeGeneratorOptions |
withLanguages(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
languages. |
CodeGeneratorOptions |
withLanguages(String... elements)
Copy the current immutable object with elements that replace the content of
languages. |
CodeGeneratorOptions |
withOneGenerationFolderPerLanguage(boolean value)
Copy the current immutable object by setting a value for the
oneGenerationFolderPerLanguage attribute. |
public boolean oneGenerationFolderPerLanguage()
oneGenerationFolderPerLanguage in interface ICodeGeneratorOptionspublic com.google.common.collect.ImmutableList<String> languages()
languages in interface ICodeGeneratorOptionspublic final CodeGeneratorOptions withOneGenerationFolderPerLanguage(boolean value)
oneGenerationFolderPerLanguage attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for oneGenerationFolderPerLanguagethis objectpublic final CodeGeneratorOptions withLanguages(String... elements)
languages.elements - The elements to setthis objectpublic final CodeGeneratorOptions withLanguages(Iterable<String> elements)
languages.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of languages elements to setthis objectpublic boolean equals(@Nullable Object another)
CodeGeneratorOptions that have equal attribute values.public int hashCode()
oneGenerationFolderPerLanguage, languages.public String toString()
CodeGeneratorOptions with attribute values.public static CodeGeneratorOptions copyOf(ICodeGeneratorOptions instance)
ICodeGeneratorOptions value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static CodeGeneratorOptions.OneGenerationFolderPerLanguageBuildStage builder()
CodeGeneratorOptions.Copyright © 2018 Cosium. All rights reserved.