Package io.resys.hdes.client.api.ast
Class ImmutableFlowAstAutocomplete
java.lang.Object
io.resys.hdes.client.api.ast.ImmutableFlowAstAutocomplete
- All Implemented Interfaces:
AstFlow.FlowAstAutocomplete,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableFlowAstAutocomplete
extends Object
implements AstFlow.FlowAstAutocomplete
Immutable implementation of
AstFlow.FlowAstAutocomplete.
Use the builder to create immutable instances:
ImmutableFlowAstAutocomplete.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableFlowAstAutocomplete. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableFlowAstAutocomplete.static ImmutableFlowAstAutocompletecopyOf(AstFlow.FlowAstAutocomplete instance) Creates an immutable copy of aAstFlow.FlowAstAutocompletevalue.booleanThis instance is equal to all instances ofImmutableFlowAstAutocompletethat have equal attribute values.getId()com.google.common.collect.ImmutableList<AstBody.AstCommandRange>getRange()com.google.common.collect.ImmutableList<String>getValue()inthashCode()Computes a hash code from attributes:id,range,value.toString()Prints the immutable valueFlowAstAutocompletewith attribute values.Copy the current immutable object by setting a value for theidattribute.withRange(AstBody.AstCommandRange... elements) Copy the current immutable object with elements that replace the content ofrange.withRange(Iterable<? extends AstBody.AstCommandRange> elements) Copy the current immutable object with elements that replace the content ofrange.Copy the current immutable object with elements that replace the content ofvalue.Copy the current immutable object with elements that replace the content ofvalue.
-
Method Details
-
getId
- Specified by:
getIdin interfaceAstFlow.FlowAstAutocomplete- Returns:
- The value of the
idattribute
-
getRange
- Specified by:
getRangein interfaceAstFlow.FlowAstAutocomplete- Returns:
- The value of the
rangeattribute
-
getValue
- Specified by:
getValuein interfaceAstFlow.FlowAstAutocomplete- 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
-
withRange
Copy the current immutable object with elements that replace the content ofrange.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withRange
public final ImmutableFlowAstAutocomplete withRange(Iterable<? extends AstBody.AstCommandRange> elements) Copy the current immutable object with elements that replace the content ofrange. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of range elements to set- Returns:
- A modified copy of
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 ofImmutableFlowAstAutocompletethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,range,value. -
toString
Prints the immutable valueFlowAstAutocompletewith attribute values. -
copyOf
Creates an immutable copy of aAstFlow.FlowAstAutocompletevalue. 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 FlowAstAutocomplete instance
-
builder
Creates a builder forImmutableFlowAstAutocomplete.ImmutableFlowAstAutocomplete.builder() .id(String) // requiredid.addRange|addAllRange(io.resys.hdes.client.api.ast.AstBody.AstCommandRange) //rangeelements .addValue|addAllValue(String) //valueelements .build();- Returns:
- A new ImmutableFlowAstAutocomplete builder
-