Package io.thestencil.client.api
Class ImmutableLinkArticlePage
- java.lang.Object
-
- io.thestencil.client.api.ImmutableLinkArticlePage
-
- All Implemented Interfaces:
DeleteBuilder.LinkArticlePage
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableLinkArticlePage extends Object implements DeleteBuilder.LinkArticlePage
Immutable implementation ofDeleteBuilder.LinkArticlePage.Use the builder to create immutable instances:
ImmutableLinkArticlePage.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableLinkArticlePage.BuilderBuilds instances of typeImmutableLinkArticlePage.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableLinkArticlePage.Builderbuilder()Creates a builder forImmutableLinkArticlePage.static ImmutableLinkArticlePagecopyOf(DeleteBuilder.LinkArticlePage instance)Creates an immutable copy of aDeleteBuilder.LinkArticlePagevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableLinkArticlePagethat have equal attribute values.StringgetArticleId()StringgetLinkId()inthashCode()Computes a hash code from attributes:linkId,articleId.StringtoString()Prints the immutable valueLinkArticlePagewith attribute values.ImmutableLinkArticlePagewithArticleId(String value)Copy the current immutable object by setting a value for thearticleIdattribute.ImmutableLinkArticlePagewithLinkId(String value)Copy the current immutable object by setting a value for thelinkIdattribute.
-
-
-
Method Detail
-
getLinkId
public String getLinkId()
- Specified by:
getLinkIdin interfaceDeleteBuilder.LinkArticlePage- Returns:
- The value of the
linkIdattribute
-
getArticleId
public String getArticleId()
- Specified by:
getArticleIdin interfaceDeleteBuilder.LinkArticlePage- Returns:
- The value of the
articleIdattribute
-
withLinkId
public final ImmutableLinkArticlePage withLinkId(String value)
Copy the current immutable object by setting a value for thelinkIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for linkId- Returns:
- A modified copy of the
thisobject
-
withArticleId
public final ImmutableLinkArticlePage 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
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableLinkArticlePagethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:linkId,articleId.
-
toString
public String toString()
Prints the immutable valueLinkArticlePagewith attribute values.
-
copyOf
public static ImmutableLinkArticlePage copyOf(DeleteBuilder.LinkArticlePage instance)
Creates an immutable copy of aDeleteBuilder.LinkArticlePagevalue. 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 LinkArticlePage instance
-
builder
public static ImmutableLinkArticlePage.Builder builder()
Creates a builder forImmutableLinkArticlePage.ImmutableLinkArticlePage.builder() .linkId(String) // requiredlinkId.articleId(String) // requiredarticleId.build();- Returns:
- A new ImmutableLinkArticlePage builder
-
-