Package io.resys.hdes.client.api
Class ImmutableStoreDump
java.lang.Object
io.resys.hdes.client.api.ImmutableStoreDump
- All Implemented Interfaces:
HdesComposer.StoreDump,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableStoreDump
extends Object
implements HdesComposer.StoreDump
Immutable implementation of
HdesComposer.StoreDump.
Use the builder to create immutable instances:
ImmutableStoreDump.builder().
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableStoreDump.Builderbuilder()Creates a builder forImmutableStoreDump.static ImmutableStoreDumpcopyOf(HdesComposer.StoreDump instance) Creates an immutable copy of aHdesComposer.StoreDumpvalue.booleanThis instance is equal to all instances ofImmutableStoreDumpthat have equal attribute values.getId()com.google.common.collect.ImmutableList<AstBody.AstSource>getValue()inthashCode()Computes a hash code from attributes:id,value.toString()Prints the immutable valueStoreDumpwith attribute values.final ImmutableStoreDumpCopy the current immutable object by setting a value for theidattribute.final ImmutableStoreDumpwithValue(AstBody.AstSource... elements) Copy the current immutable object with elements that replace the content ofvalue.final ImmutableStoreDumpwithValue(Iterable<? extends AstBody.AstSource> elements) Copy the current immutable object with elements that replace the content ofvalue.
-
Method Details
-
getId
- Specified by:
getIdin interfaceHdesComposer.StoreDump- Returns:
- The value of the
idattribute
-
getValue
- Specified by:
getValuein interfaceHdesComposer.StoreDump- Returns:
- The value of the
valueattribute
-
withId
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
-
withValue
Copy the current immutable object with elements that replace the content ofvalue.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withValue
Copy the current immutable object with elements that replace the content ofvalue. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of value elements to set- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableStoreDumpthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,value. -
toString
Prints the immutable valueStoreDumpwith attribute values. -
copyOf
Creates an immutable copy of aHdesComposer.StoreDumpvalue. 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 StoreDump instance
-
builder
Creates a builder forImmutableStoreDump.ImmutableStoreDump.builder() .id(String) // requiredid.addValue|addAllValue(io.resys.hdes.client.api.ast.AstBody.AstSource) //valueelements .build();- Returns:
- A new ImmutableStoreDump builder
-