Package io.resys.hdes.client.api
Class ImmutableUpdateEntity
java.lang.Object
io.resys.hdes.client.api.ImmutableUpdateEntity
- All Implemented Interfaces:
HdesComposer.UpdateEntity
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableUpdateEntity
extends Object
implements HdesComposer.UpdateEntity
Immutable implementation of
HdesComposer.UpdateEntity.
Use the builder to create immutable instances:
ImmutableUpdateEntity.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableUpdateEntity. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableUpdateEntity.static ImmutableUpdateEntitycopyOf(HdesComposer.UpdateEntity instance) Creates an immutable copy of aHdesComposer.UpdateEntityvalue.booleanThis instance is equal to all instances ofImmutableUpdateEntitythat have equal attribute values.com.google.common.collect.ImmutableList<AstCommand>getBody()getId()inthashCode()Computes a hash code from attributes:id,body.toString()Prints the immutable valueUpdateEntitywith attribute values.final ImmutableUpdateEntitywithBody(AstCommand... elements) Copy the current immutable object with elements that replace the content ofbody.final ImmutableUpdateEntitywithBody(Iterable<? extends AstCommand> elements) Copy the current immutable object with elements that replace the content ofbody.final ImmutableUpdateEntityCopy the current immutable object by setting a value for theidattribute.
-
Method Details
-
getId
- Specified by:
getIdin interfaceHdesComposer.UpdateEntity- Returns:
- The value of the
idattribute
-
getBody
- Specified by:
getBodyin interfaceHdesComposer.UpdateEntity- Returns:
- The value of the
bodyattribute
-
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
-
withBody
Copy the current immutable object with elements that replace the content ofbody.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withBody
Copy the current immutable object with elements that replace the content ofbody. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of body elements to set- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableUpdateEntitythat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,body. -
toString
Prints the immutable valueUpdateEntitywith attribute values. -
copyOf
Creates an immutable copy of aHdesComposer.UpdateEntityvalue. 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 UpdateEntity instance
-
builder
Creates a builder forImmutableUpdateEntity.ImmutableUpdateEntity.builder() .id(String) // requiredid.addBody|addAllBody(io.resys.hdes.client.api.ast.AstCommand) //bodyelements .build();- Returns:
- A new ImmutableUpdateEntity builder
-