Package io.resys.hdes.client.api.ast
Class ImmutableAstServiceRef
java.lang.Object
io.resys.hdes.client.api.ast.ImmutableAstServiceRef
- All Implemented Interfaces:
AstService.AstServiceRef,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableAstServiceRef
extends Object
implements AstService.AstServiceRef
Immutable implementation of
AstService.AstServiceRef.
Use the builder to create immutable instances:
ImmutableAstServiceRef.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableAstServiceRef. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableAstServiceRef.static ImmutableAstServiceRefcopyOf(AstService.AstServiceRef instance) Creates an immutable copy of aAstService.AstServiceRefvalue.booleanThis instance is equal to all instances ofImmutableAstServiceRefthat have equal attribute values.inthashCode()Computes a hash code from attributes:bodyType,refValue.toString()Prints the immutable valueAstServiceRefwith attribute values.final ImmutableAstServiceRefwithBodyType(AstBody.AstBodyType value) Copy the current immutable object by setting a value for thebodyTypeattribute.final ImmutableAstServiceRefwithRefValue(String value) Copy the current immutable object by setting a value for therefValueattribute.
-
Method Details
-
getBodyType
- Specified by:
getBodyTypein interfaceAstService.AstServiceRef- Returns:
- The value of the
bodyTypeattribute
-
getRefValue
- Specified by:
getRefValuein interfaceAstService.AstServiceRef- Returns:
- The value of the
refValueattribute
-
withBodyType
Copy the current immutable object by setting a value for thebodyTypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for bodyType- Returns:
- A modified copy of the
thisobject
-
withRefValue
Copy the current immutable object by setting a value for therefValueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for refValue- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableAstServiceRefthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:bodyType,refValue. -
toString
Prints the immutable valueAstServiceRefwith attribute values. -
copyOf
Creates an immutable copy of aAstService.AstServiceRefvalue. 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 AstServiceRef instance
-
builder
Creates a builder forImmutableAstServiceRef.ImmutableAstServiceRef.builder() .bodyType(io.resys.hdes.client.api.ast.AstBody.AstBodyType) // requiredbodyType.refValue(String) // requiredrefValue.build();- Returns:
- A new ImmutableAstServiceRef builder
-