Package io.resys.hdes.client.api.ast
Class ImmutableAstCommandRange
java.lang.Object
io.resys.hdes.client.api.ast.ImmutableAstCommandRange
- All Implemented Interfaces:
AstBody.AstCommandRange,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableAstCommandRange
extends Object
implements AstBody.AstCommandRange
Immutable implementation of
AstBody.AstCommandRange.
Use the builder to create immutable instances:
ImmutableAstCommandRange.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableAstCommandRange. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableAstCommandRange.static ImmutableAstCommandRangecopyOf(AstBody.AstCommandRange instance) Creates an immutable copy of aAstBody.AstCommandRangevalue.booleanThis instance is equal to all instances ofImmutableAstCommandRangethat have equal attribute values.intgetEnd()intgetStart()inthashCode()Computes a hash code from attributes:start,end,column,insert.toString()Prints the immutable valueAstCommandRangewith attribute values.final ImmutableAstCommandRangewithColumn(Integer value) Copy the current immutable object by setting a value for thecolumnattribute.final ImmutableAstCommandRangewithEnd(int value) Copy the current immutable object by setting a value for theendattribute.final ImmutableAstCommandRangewithInsert(Boolean value) Copy the current immutable object by setting a value for theinsertattribute.final ImmutableAstCommandRangewithStart(int value) Copy the current immutable object by setting a value for thestartattribute.
-
Method Details
-
getStart
public int getStart()- Specified by:
getStartin interfaceAstBody.AstCommandRange- Returns:
- The value of the
startattribute
-
getEnd
public int getEnd()- Specified by:
getEndin interfaceAstBody.AstCommandRange- Returns:
- The value of the
endattribute
-
getColumn
- Specified by:
getColumnin interfaceAstBody.AstCommandRange- Returns:
- The value of the
columnattribute
-
getInsert
- Specified by:
getInsertin interfaceAstBody.AstCommandRange- Returns:
- The value of the
insertattribute
-
withStart
Copy the current immutable object by setting a value for thestartattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for start- Returns:
- A modified copy of the
thisobject
-
withEnd
Copy the current immutable object by setting a value for theendattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for end- Returns:
- A modified copy of the
thisobject
-
withColumn
Copy the current immutable object by setting a value for thecolumnattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for column (can benull)- Returns:
- A modified copy of the
thisobject
-
withInsert
Copy the current immutable object by setting a value for theinsertattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for insert (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableAstCommandRangethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:start,end,column,insert. -
toString
Prints the immutable valueAstCommandRangewith attribute values. -
copyOf
Creates an immutable copy of aAstBody.AstCommandRangevalue. 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 AstCommandRange instance
-
builder
Creates a builder forImmutableAstCommandRange.ImmutableAstCommandRange.builder() .start(int) // requiredstart.end(int) // requiredend.column(Integer | null) // nullablecolumn.insert(Boolean | null) // nullableinsert.build();- Returns:
- A new ImmutableAstCommandRange builder
-