Package io.resys.hdes.client.api.ast
Class ImmutableAstCommand
java.lang.Object
io.resys.hdes.client.api.ast.ImmutableAstCommand
- All Implemented Interfaces:
AstCommand,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableAstCommand
extends Object
implements AstCommand
Immutable implementation of
AstCommand.
Use the builder to create immutable instances:
ImmutableAstCommand.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableAstCommand.Nested classes/interfaces inherited from interface io.resys.hdes.client.api.ast.AstCommand
AstCommand.AstCommandValue -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableAstCommand.Builderbuilder()Creates a builder forImmutableAstCommand.static ImmutableAstCommandcopyOf(AstCommand instance) Creates an immutable copy of aAstCommandvalue.booleanThis instance is equal to all instances ofImmutableAstCommandthat have equal attribute values.getId()getType()getValue()inthashCode()Computes a hash code from attributes:id,value,type.toString()Prints the immutable valueAstCommandwith attribute values.final ImmutableAstCommandCopy the current immutable object by setting a value for theidattribute.final ImmutableAstCommandCopy the current immutable object by setting a value for thetypeattribute.final ImmutableAstCommandCopy the current immutable object by setting a value for thevalueattribute.
-
Method Details
-
getId
- Specified by:
getIdin interfaceAstCommand- Returns:
- The value of the
idattribute
-
getValue
- Specified by:
getValuein interfaceAstCommand- Returns:
- The value of the
valueattribute
-
getType
- Specified by:
getTypein interfaceAstCommand- Returns:
- The value of the
typeattribute
-
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 (can benull)- Returns:
- A modified copy of the
thisobject
-
withValue
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 (can benull)- Returns:
- A modified copy of the
thisobject
-
withType
Copy the current immutable object by setting a value for thetypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableAstCommandthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,value,type. -
toString
Prints the immutable valueAstCommandwith attribute values. -
copyOf
Creates an immutable copy of aAstCommandvalue. 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 AstCommand instance
-
builder
Creates a builder forImmutableAstCommand.ImmutableAstCommand.builder() .id(String | null) // nullableid.value(String | null) // nullablevalue.type(io.resys.hdes.client.api.ast.AstCommand.AstCommandValue) // requiredtype.build();- Returns:
- A new ImmutableAstCommand builder
-