Package io.thestencil.client.api
Class ImmutableMarkdowns
- java.lang.Object
-
- io.thestencil.client.api.ImmutableMarkdowns
-
- All Implemented Interfaces:
Markdowns
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableMarkdowns extends Object implements Markdowns
Immutable implementation ofMarkdowns.Use the builder to create immutable instances:
ImmutableMarkdowns.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableMarkdowns.BuilderBuilds instances of typeImmutableMarkdowns.-
Nested classes/interfaces inherited from interface io.thestencil.client.api.Markdowns
Markdowns.Heading, Markdowns.ImageResource, Markdowns.ImageTag, Markdowns.LinkResource, Markdowns.Markdown
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableMarkdowns.Builderbuilder()Creates a builder forImmutableMarkdowns.static ImmutableMarkdownscopyOf(Markdowns instance)Creates an immutable copy of aMarkdownsvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableMarkdownsthat have equal attribute values.com.google.common.collect.ImmutableList<Markdowns.ImageResource>getImages()com.google.common.collect.ImmutableList<Markdowns.LinkResource>getLinks()com.google.common.collect.ImmutableList<String>getLocales()com.google.common.collect.ImmutableList<Markdowns.Markdown>getValues()inthashCode()Computes a hash code from attributes:values,images,links,locales.StringtoString()Prints the immutable valueMarkdownswith attribute values.ImmutableMarkdownswithImages(Markdowns.ImageResource... elements)Copy the current immutable object with elements that replace the content ofimages.ImmutableMarkdownswithImages(Iterable<? extends Markdowns.ImageResource> elements)Copy the current immutable object with elements that replace the content ofimages.ImmutableMarkdownswithLinks(Markdowns.LinkResource... elements)Copy the current immutable object with elements that replace the content oflinks.ImmutableMarkdownswithLinks(Iterable<? extends Markdowns.LinkResource> elements)Copy the current immutable object with elements that replace the content oflinks.ImmutableMarkdownswithLocales(Iterable<String> elements)Copy the current immutable object with elements that replace the content oflocales.ImmutableMarkdownswithLocales(String... elements)Copy the current immutable object with elements that replace the content oflocales.ImmutableMarkdownswithValues(Markdowns.Markdown... elements)Copy the current immutable object with elements that replace the content ofvalues.ImmutableMarkdownswithValues(Iterable<? extends Markdowns.Markdown> elements)Copy the current immutable object with elements that replace the content ofvalues.
-
-
-
Method Detail
-
getValues
public com.google.common.collect.ImmutableList<Markdowns.Markdown> getValues()
-
getImages
public com.google.common.collect.ImmutableList<Markdowns.ImageResource> getImages()
-
getLinks
public com.google.common.collect.ImmutableList<Markdowns.LinkResource> getLinks()
-
getLocales
public com.google.common.collect.ImmutableList<String> getLocales()
- Specified by:
getLocalesin interfaceMarkdowns- Returns:
- The value of the
localesattribute
-
withValues
public final ImmutableMarkdowns withValues(Markdowns.Markdown... elements)
Copy the current immutable object with elements that replace the content ofvalues.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withValues
public final ImmutableMarkdowns withValues(Iterable<? extends Markdowns.Markdown> elements)
Copy the current immutable object with elements that replace the content ofvalues. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of values elements to set- Returns:
- A modified copy of
thisobject
-
withImages
public final ImmutableMarkdowns withImages(Markdowns.ImageResource... elements)
Copy the current immutable object with elements that replace the content ofimages.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withImages
public final ImmutableMarkdowns withImages(Iterable<? extends Markdowns.ImageResource> elements)
Copy the current immutable object with elements that replace the content ofimages. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of images elements to set- Returns:
- A modified copy of
thisobject
-
withLinks
public final ImmutableMarkdowns withLinks(Markdowns.LinkResource... 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 ImmutableMarkdowns withLinks(Iterable<? extends Markdowns.LinkResource> 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
-
withLocales
public final ImmutableMarkdowns withLocales(String... elements)
Copy the current immutable object with elements that replace the content oflocales.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withLocales
public final ImmutableMarkdowns withLocales(Iterable<String> elements)
Copy the current immutable object with elements that replace the content oflocales. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of locales elements to set- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableMarkdownsthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:values,images,links,locales.
-
toString
public String toString()
Prints the immutable valueMarkdownswith attribute values.
-
copyOf
public static ImmutableMarkdowns copyOf(Markdowns instance)
Creates an immutable copy of aMarkdownsvalue. 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 Markdowns instance
-
builder
public static ImmutableMarkdowns.Builder builder()
Creates a builder forImmutableMarkdowns.ImmutableMarkdowns.builder() .addValues|addAllValues(io.thestencil.client.api.Markdowns.Markdown) //valueselements .addImages|addAllImages(io.thestencil.client.api.Markdowns.ImageResource) //imageselements .addLinks|addAllLinks(io.thestencil.client.api.Markdowns.LinkResource) //linkselements .addLocales|addAllLocales(String) //localeselements .build();- Returns:
- A new ImmutableMarkdowns builder
-
-