Package io.thestencil.client.api
Class ImmutableArticleMutator
- java.lang.Object
-
- io.thestencil.client.api.ImmutableArticleMutator
-
- All Implemented Interfaces:
UpdateBuilder.ArticleMutator
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableArticleMutator extends Object implements UpdateBuilder.ArticleMutator
Immutable implementation ofUpdateBuilder.ArticleMutator.Use the builder to create immutable instances:
ImmutableArticleMutator.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableArticleMutator.BuilderBuilds instances of typeImmutableArticleMutator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableArticleMutator.Builderbuilder()Creates a builder forImmutableArticleMutator.static ImmutableArticleMutatorcopyOf(UpdateBuilder.ArticleMutator instance)Creates an immutable copy of aUpdateBuilder.ArticleMutatorvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableArticleMutatorthat have equal attribute values.StringgetArticleId()BooleangetDevMode()com.google.common.collect.ImmutableList<String>getLinks()StringgetName()IntegergetOrder()StringgetParentId()com.google.common.collect.ImmutableList<String>getWorkflows()inthashCode()Computes a hash code from attributes:articleId,parentId,name,order,links,workflows,devMode.StringtoString()Prints the immutable valueArticleMutatorwith attribute values.ImmutableArticleMutatorwithArticleId(String value)Copy the current immutable object by setting a value for thearticleIdattribute.ImmutableArticleMutatorwithDevMode(Boolean value)Copy the current immutable object by setting a value for thedevModeattribute.ImmutableArticleMutatorwithLinks(Iterable<String> elements)Copy the current immutable object with elements that replace the content oflinks.ImmutableArticleMutatorwithLinks(String... elements)Copy the current immutable object with elements that replace the content oflinks.ImmutableArticleMutatorwithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableArticleMutatorwithOrder(Integer value)Copy the current immutable object by setting a value for theorderattribute.ImmutableArticleMutatorwithParentId(String value)Copy the current immutable object by setting a value for theparentIdattribute.ImmutableArticleMutatorwithWorkflows(Iterable<String> elements)Copy the current immutable object with elements that replace the content ofworkflows.ImmutableArticleMutatorwithWorkflows(String... elements)Copy the current immutable object with elements that replace the content ofworkflows.
-
-
-
Method Detail
-
getArticleId
public String getArticleId()
- Specified by:
getArticleIdin interfaceUpdateBuilder.ArticleMutator- Returns:
- The value of the
articleIdattribute
-
getParentId
@Nullable public String getParentId()
- Specified by:
getParentIdin interfaceUpdateBuilder.ArticleMutator- Returns:
- The value of the
parentIdattribute
-
getName
public String getName()
- Specified by:
getNamein interfaceUpdateBuilder.ArticleMutator- Returns:
- The value of the
nameattribute
-
getOrder
public Integer getOrder()
- Specified by:
getOrderin interfaceUpdateBuilder.ArticleMutator- Returns:
- The value of the
orderattribute
-
getLinks
@Nullable public com.google.common.collect.ImmutableList<String> getLinks()
- Specified by:
getLinksin interfaceUpdateBuilder.ArticleMutator- Returns:
- The value of the
linksattribute
-
getWorkflows
@Nullable public com.google.common.collect.ImmutableList<String> getWorkflows()
- Specified by:
getWorkflowsin interfaceUpdateBuilder.ArticleMutator- Returns:
- The value of the
workflowsattribute
-
getDevMode
@Nullable public Boolean getDevMode()
- Specified by:
getDevModein interfaceUpdateBuilder.ArticleMutator- Returns:
- The value of the
devModeattribute
-
withArticleId
public final ImmutableArticleMutator withArticleId(String value)
Copy the current immutable object by setting a value for thearticleIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for articleId- Returns:
- A modified copy of the
thisobject
-
withParentId
public final ImmutableArticleMutator withParentId(@Nullable String value)
Copy the current immutable object by setting a value for theparentIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for parentId (can benull)- Returns:
- A modified copy of the
thisobject
-
withName
public final ImmutableArticleMutator withName(String value)
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- Returns:
- A modified copy of the
thisobject
-
withOrder
public final ImmutableArticleMutator withOrder(Integer value)
Copy the current immutable object by setting a value for theorderattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for order- Returns:
- A modified copy of the
thisobject
-
withLinks
public final ImmutableArticleMutator withLinks(@Nullable String... elements)
Copy the current immutable object with elements that replace the content oflinks.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withLinks
public final ImmutableArticleMutator withLinks(@Nullable Iterable<String> elements)
Copy the current immutable object with elements that replace the content oflinks. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of links elements to set- Returns:
- A modified copy of
thisobject
-
withWorkflows
public final ImmutableArticleMutator withWorkflows(@Nullable String... elements)
Copy the current immutable object with elements that replace the content ofworkflows.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withWorkflows
public final ImmutableArticleMutator withWorkflows(@Nullable Iterable<String> elements)
Copy the current immutable object with elements that replace the content ofworkflows. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of workflows elements to set- Returns:
- A modified copy of
thisobject
-
withDevMode
public final ImmutableArticleMutator withDevMode(@Nullable Boolean value)
Copy the current immutable object by setting a value for thedevModeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for devMode (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableArticleMutatorthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:articleId,parentId,name,order,links,workflows,devMode.
-
toString
public String toString()
Prints the immutable valueArticleMutatorwith attribute values.
-
copyOf
public static ImmutableArticleMutator copyOf(UpdateBuilder.ArticleMutator instance)
Creates an immutable copy of aUpdateBuilder.ArticleMutatorvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable ArticleMutator instance
-
builder
public static ImmutableArticleMutator.Builder builder()
Creates a builder forImmutableArticleMutator.ImmutableArticleMutator.builder() .articleId(String) // requiredarticleId.parentId(String | null) // nullableparentId.name(String) // requiredname.order(Integer) // requiredorder.links(List<String> | null) // nullablelinks.workflows(List<String> | null) // nullableworkflows.devMode(Boolean | null) // nullabledevMode.build();- Returns:
- A new ImmutableArticleMutator builder
-
-