@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ModuleConfiguration"}) @Immutable public final class ImmutableModuleConfiguration extends Object implements ModuleConfiguration
ModuleConfiguration.
Use builder to create immutable instances:
ImmutableModuleConfiguration.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableModuleConfiguration.Builder
Builds instances of
ImmutableModuleConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableModuleConfiguration.Builder |
builder()
Creates builder for
ImmutableModuleConfiguration. |
static ImmutableModuleConfiguration |
copyOf(ModuleConfiguration instance)
Creates immutable copy of
ModuleConfiguration. |
boolean |
equals(Object another)
This instance is equal to instances of
ImmutableModuleConfiguration with equal attribute values. |
String |
getGenerator()
Generator used to compile proto files.
|
com.google.common.collect.ImmutableList<Path> |
getIncludePaths()
List of "include" folders used to search for proto files.
|
String |
getName()
Module name.
|
com.google.common.collect.ImmutableMap<String,String> |
getOptions()
Map of custom settings passed to the generator.
|
String |
getOutput()
Output directory.
|
com.google.common.collect.ImmutableList<String> |
getProtoFiles()
List of proto files to compile.
|
int |
hashCode()
Computes hash code from attributes:
name, includePaths, protoFiles, generator, output, options. |
String |
toString()
Prints immutable value
ModuleConfiguration... with attribute values,
excluding any non-generated and auxiliary attributes. |
ImmutableModuleConfiguration |
withGenerator(String value)
Copy current immutable object by setting value for
generator. |
ImmutableModuleConfiguration |
withIncludePaths(Iterable<? extends Path> elements)
Copy current immutable object with elements that replace content of
includePaths. |
ImmutableModuleConfiguration |
withIncludePaths(Path... elements)
Copy current immutable object with elements that replace content of
includePaths. |
ImmutableModuleConfiguration |
withName(String value)
Copy current immutable object by setting value for
name. |
ImmutableModuleConfiguration |
withOptions(Map<String,? extends String> entries)
Copy current immutable object by replacing
options map with specified map. |
ImmutableModuleConfiguration |
withOutput(String value)
Copy current immutable object by setting value for
output. |
ImmutableModuleConfiguration |
withProtoFiles(Iterable<String> elements)
Copy current immutable object with elements that replace content of
protoFiles. |
ImmutableModuleConfiguration |
withProtoFiles(String... elements)
Copy current immutable object with elements that replace content of
protoFiles. |
public String getName()
getName in interface ModuleConfigurationpublic com.google.common.collect.ImmutableList<Path> getIncludePaths()
getIncludePaths in interface ModuleConfigurationpublic com.google.common.collect.ImmutableList<String> getProtoFiles()
getProtoFiles in interface ModuleConfigurationpublic String getGenerator()
java - produces Java source code that uses protostuff runtime;html - produces HTML documentation;st4 - generic generator, you should provide custom template
(StringTemplate 4) using getOptions().
getGenerator in interface ModuleConfigurationpublic String getOutput()
getOutput in interface ModuleConfigurationpublic com.google.common.collect.ImmutableMap<String,String> getOptions()
getOptions in interface ModuleConfigurationpublic final ImmutableModuleConfiguration withName(String value)
name.
Shallow reference equality check is used to prevent copying of the same value by returning this.value - new value for namethis objectpublic final ImmutableModuleConfiguration withIncludePaths(Path... elements)
includePaths.elements - elements to setthis objectpublic final ImmutableModuleConfiguration withIncludePaths(Iterable<? extends Path> elements)
includePaths.
Shallow reference equality check is used to prevent copying of the same value by returning this.elements - iterable of includePaths elements to setthis objectpublic final ImmutableModuleConfiguration withProtoFiles(String... elements)
protoFiles.elements - elements to setthis objectpublic final ImmutableModuleConfiguration withProtoFiles(Iterable<String> elements)
protoFiles.
Shallow reference equality check is used to prevent copying of the same value by returning this.elements - iterable of protoFiles elements to setthis objectpublic final ImmutableModuleConfiguration withGenerator(String value)
generator.
Shallow reference equality check is used to prevent copying of the same value by returning this.value - new value for generatorthis objectpublic final ImmutableModuleConfiguration withOutput(String value)
output.
Shallow reference equality check is used to prevent copying of the same value by returning this.value - new value for outputthis objectpublic final ImmutableModuleConfiguration withOptions(Map<String,? extends String> entries)
options map with specified map.
Nulls are not permitted as keys or values.
Shallow reference equality check is used to prevent copying of the same value by returning this.entries - to be added to options mapthis objectpublic boolean equals(@Nullable Object another)
ImmutableModuleConfiguration with equal attribute values.public int hashCode()
name, includePaths, protoFiles, generator, output, options.public String toString()
ModuleConfiguration... with attribute values,
excluding any non-generated and auxiliary attributes.public static ImmutableModuleConfiguration copyOf(ModuleConfiguration instance)
ModuleConfiguration.
Uses accessors to get values to initialize immutable instance.
If an instance is already immutable, it is returned as is.instance - instance to copypublic static ImmutableModuleConfiguration.Builder builder()
ImmutableModuleConfiguration.Copyright © 2015–2016. All rights reserved.