Package io.thestencil.staticontent.api
Class ImmutableMarkdowns
- java.lang.Object
-
- io.thestencil.staticontent.api.ImmutableMarkdowns
-
- All Implemented Interfaces:
StaticContentClient.Markdowns
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableMarkdowns extends Object implements StaticContentClient.Markdowns
Immutable implementation ofStaticContentClient.Markdowns.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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableMarkdowns.Builderbuilder()Creates a builder forImmutableMarkdowns.static ImmutableMarkdownscopyOf(StaticContentClient.Markdowns instance)Creates an immutable copy of aStaticContentClient.Markdownsvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableMarkdownsthat have equal attribute values.com.google.common.collect.ImmutableList<StaticContentClient.ImageResource>getImages()com.google.common.collect.ImmutableList<StaticContentClient.LinkResource>getLinks()com.google.common.collect.ImmutableList<String>getLocales()com.google.common.collect.ImmutableList<StaticContentClient.Markdown>getValues()inthashCode()Computes a hash code from attributes:values,images,links,locales.StringtoString()Prints the immutable valueMarkdownswith attribute values.ImmutableMarkdownswithImages(StaticContentClient.ImageResource... elements)Copy the current immutable object with elements that replace the content ofimages.ImmutableMarkdownswithImages(Iterable<? extends StaticContentClient.ImageResource> elements)Copy the current immutable object with elements that replace the content ofimages.ImmutableMarkdownswithLinks(StaticContentClient.LinkResource... elements)Copy the current immutable object with elements that replace the content oflinks.ImmutableMarkdownswithLinks(Iterable<? extends StaticContentClient.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(StaticContentClient.Markdown... elements)Copy the current immutable object with elements that replace the content ofvalues.ImmutableMarkdownswithValues(Iterable<? extends StaticContentClient.Markdown> elements)Copy the current immutable object with elements that replace the content ofvalues.
-
-
-
Method Detail
-
getValues
public com.google.common.collect.ImmutableList<StaticContentClient.Markdown> getValues()
- Specified by:
getValuesin interfaceStaticContentClient.Markdowns- Returns:
- The value of the
valuesattribute
-
getImages
public com.google.common.collect.ImmutableList<StaticContentClient.ImageResource> getImages()
- Specified by:
getImagesin interfaceStaticContentClient.Markdowns- Returns:
- The value of the
imagesattribute
-
getLinks
public com.google.common.collect.ImmutableList<StaticContentClient.LinkResource> getLinks()
- Specified by:
getLinksin interfaceStaticContentClient.Markdowns- Returns:
- The value of the
linksattribute
-
getLocales
public com.google.common.collect.ImmutableList<String> getLocales()
- Specified by:
getLocalesin interfaceStaticContentClient.Markdowns- Returns:
- The value of the
localesattribute
-
withValues
public final ImmutableMarkdowns withValues(StaticContentClient.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 StaticContentClient.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(StaticContentClient.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 StaticContentClient.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(StaticContentClient.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 StaticContentClient.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(StaticContentClient.Markdowns instance)
Creates an immutable copy of aStaticContentClient.Markdownsvalue. 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.staticontent.api.StaticContentClient.Markdown) //valueselements .addImages|addAllImages(io.thestencil.staticontent.api.StaticContentClient.ImageResource) //imageselements .addLinks|addAllLinks(io.thestencil.staticontent.api.StaticContentClient.LinkResource) //linkselements .addLocales|addAllLocales(String) //localeselements .build();- Returns:
- A new ImmutableMarkdowns builder
-
-