@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ISpecificationGeneratorOptions"}) @Immutable public final class SpecificationGeneratorOptions extends Object implements ISpecificationGeneratorOptions
| Modifier and Type | Class and Description |
|---|---|
static interface |
SpecificationGeneratorOptions.BasePathBuildStage |
static class |
SpecificationGeneratorOptions.Builder
Builds instances of type
SpecificationGeneratorOptions. |
static interface |
SpecificationGeneratorOptions.BuildFinal |
static interface |
SpecificationGeneratorOptions.TitleBuildStage |
| Modifier and Type | Method and Description |
|---|---|
String |
basePath() |
static SpecificationGeneratorOptions.TitleBuildStage |
builder()
Creates a builder for
SpecificationGeneratorOptions. |
com.google.common.collect.ImmutableList<String> |
consumes() |
static SpecificationGeneratorOptions |
copyOf(ISpecificationGeneratorOptions instance)
Creates an immutable copy of a
ISpecificationGeneratorOptions value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SpecificationGeneratorOptions that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
title, basePath, produces, consumes. |
com.google.common.collect.ImmutableList<String> |
produces() |
String |
title() |
String |
toString()
Prints the immutable value
SpecificationGeneratorOptions with attribute values. |
SpecificationGeneratorOptions |
withBasePath(String value)
Copy the current immutable object by setting a value for the
basePath attribute. |
SpecificationGeneratorOptions |
withConsumes(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
consumes. |
SpecificationGeneratorOptions |
withConsumes(String... elements)
Copy the current immutable object with elements that replace the content of
consumes. |
SpecificationGeneratorOptions |
withProduces(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
produces. |
SpecificationGeneratorOptions |
withProduces(String... elements)
Copy the current immutable object with elements that replace the content of
produces. |
SpecificationGeneratorOptions |
withTitle(String value)
Copy the current immutable object by setting a value for the
title attribute. |
public String title()
title in interface ISpecificationGeneratorOptionspublic String basePath()
basePath in interface ISpecificationGeneratorOptionspublic com.google.common.collect.ImmutableList<String> produces()
produces in interface ISpecificationGeneratorOptionspublic com.google.common.collect.ImmutableList<String> consumes()
consumes in interface ISpecificationGeneratorOptionspublic final SpecificationGeneratorOptions withTitle(String value)
title attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for titlethis objectpublic final SpecificationGeneratorOptions withBasePath(String value)
basePath attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for basePaththis objectpublic final SpecificationGeneratorOptions withProduces(String... elements)
produces.elements - The elements to setthis objectpublic final SpecificationGeneratorOptions withProduces(Iterable<String> elements)
produces.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of produces elements to setthis objectpublic final SpecificationGeneratorOptions withConsumes(String... elements)
consumes.elements - The elements to setthis objectpublic final SpecificationGeneratorOptions withConsumes(Iterable<String> elements)
consumes.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of consumes elements to setthis objectpublic boolean equals(@Nullable Object another)
SpecificationGeneratorOptions that have equal attribute values.public int hashCode()
title, basePath, produces, consumes.public String toString()
SpecificationGeneratorOptions with attribute values.public static SpecificationGeneratorOptions copyOf(ISpecificationGeneratorOptions instance)
ISpecificationGeneratorOptions 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 SpecificationGeneratorOptions.TitleBuildStage builder()
SpecificationGeneratorOptions.Copyright © 2019 Cosium. All rights reserved.