Package io.thestencil.client.api
Class ImmutableLocaleReleaseItem
- java.lang.Object
-
- io.thestencil.client.api.ImmutableLocaleReleaseItem
-
- All Implemented Interfaces:
StencilClient.LocaleReleaseItem,StencilClient.ReleaseItem,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableLocaleReleaseItem extends Object implements StencilClient.LocaleReleaseItem
Immutable implementation ofStencilClient.LocaleReleaseItem.Use the builder to create immutable instances:
ImmutableLocaleReleaseItem.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableLocaleReleaseItem.BuilderBuilds instances of typeImmutableLocaleReleaseItem.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableLocaleReleaseItem.Builderbuilder()Creates a builder forImmutableLocaleReleaseItem.static ImmutableLocaleReleaseItemcopyOf(StencilClient.LocaleReleaseItem instance)Creates an immutable copy of aStencilClient.LocaleReleaseItemvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableLocaleReleaseItemthat have equal attribute values.StringgetHash()StringgetId()StringgetValue()inthashCode()Computes a hash code from attributes:id,hash,value.StringtoString()Prints the immutable valueLocaleReleaseItemwith attribute values.ImmutableLocaleReleaseItemwithHash(String value)Copy the current immutable object by setting a value for thehashattribute.ImmutableLocaleReleaseItemwithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableLocaleReleaseItemwithValue(String value)Copy the current immutable object by setting a value for thevalueattribute.
-
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getIdin interfaceStencilClient.ReleaseItem- Returns:
- The value of the
idattribute
-
getHash
public String getHash()
- Specified by:
getHashin interfaceStencilClient.ReleaseItem- Returns:
- The value of the
hashattribute
-
getValue
public String getValue()
- Specified by:
getValuein interfaceStencilClient.LocaleReleaseItem- Returns:
- The value of the
valueattribute
-
withId
public final ImmutableLocaleReleaseItem withId(String value)
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy of the
thisobject
-
withHash
public final ImmutableLocaleReleaseItem withHash(String value)
Copy the current immutable object by setting a value for thehashattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for hash- Returns:
- A modified copy of the
thisobject
-
withValue
public final ImmutableLocaleReleaseItem withValue(String value)
Copy the current immutable object by setting a value for thevalueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for value- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableLocaleReleaseItemthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,hash,value.
-
toString
public String toString()
Prints the immutable valueLocaleReleaseItemwith attribute values.
-
copyOf
public static ImmutableLocaleReleaseItem copyOf(StencilClient.LocaleReleaseItem instance)
Creates an immutable copy of aStencilClient.LocaleReleaseItemvalue. 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 LocaleReleaseItem instance
-
builder
public static ImmutableLocaleReleaseItem.Builder builder()
Creates a builder forImmutableLocaleReleaseItem.ImmutableLocaleReleaseItem.builder() .id(String) // requiredid.hash(String) // requiredhash.value(String) // requiredvalue.build();- Returns:
- A new ImmutableLocaleReleaseItem builder
-
-