Package io.thestencil.staticontent.api
Class ImmutableTopicNameData
- java.lang.Object
-
- io.thestencil.staticontent.api.ImmutableTopicNameData
-
- All Implemented Interfaces:
StaticContentClient.TopicNameData
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableTopicNameData extends Object implements StaticContentClient.TopicNameData
Immutable implementation ofStaticContentClient.TopicNameData.Use the builder to create immutable instances:
ImmutableTopicNameData.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableTopicNameData.BuilderBuilds instances of typeImmutableTopicNameData.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableTopicNameData.Builderbuilder()Creates a builder forImmutableTopicNameData.static ImmutableTopicNameDatacopyOf(StaticContentClient.TopicNameData instance)Creates an immutable copy of aStaticContentClient.TopicNameDatavalue.booleanequals(Object another)This instance is equal to all instances ofImmutableTopicNameDatathat have equal attribute values.com.google.common.collect.ImmutableMap<String,String>getLocale()StringgetPath()inthashCode()Computes a hash code from attributes:path,locale.StringtoString()Prints the immutable valueTopicNameDatawith attribute values.ImmutableTopicNameDatawithLocale(Map<String,? extends String> entries)Copy the current immutable object by replacing thelocalemap with the specified map.ImmutableTopicNameDatawithPath(String value)Copy the current immutable object by setting a value for thepathattribute.
-
-
-
Method Detail
-
getPath
public String getPath()
- Specified by:
getPathin interfaceStaticContentClient.TopicNameData- Returns:
- The value of the
pathattribute
-
getLocale
public com.google.common.collect.ImmutableMap<String,String> getLocale()
- Specified by:
getLocalein interfaceStaticContentClient.TopicNameData- Returns:
- The value of the
localeattribute
-
withPath
public final ImmutableTopicNameData withPath(String value)
Copy the current immutable object by setting a value for thepathattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for path- Returns:
- A modified copy of the
thisobject
-
withLocale
public final ImmutableTopicNameData withLocale(Map<String,? extends String> entries)
Copy the current immutable object by replacing thelocalemap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the locale map- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableTopicNameDatathat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:path,locale.
-
toString
public String toString()
Prints the immutable valueTopicNameDatawith attribute values.
-
copyOf
public static ImmutableTopicNameData copyOf(StaticContentClient.TopicNameData instance)
Creates an immutable copy of aStaticContentClient.TopicNameDatavalue. 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 TopicNameData instance
-
builder
public static ImmutableTopicNameData.Builder builder()
Creates a builder forImmutableTopicNameData.ImmutableTopicNameData.builder() .path(String) // requiredpath.putLocale|putAllLocale(String => String) //localemappings .build();- Returns:
- A new ImmutableTopicNameData builder
-
-