Package io.resys.hdes.client.api.ast
Class ImmutableSummaryItem
java.lang.Object
io.resys.hdes.client.api.ast.ImmutableSummaryItem
- All Implemented Interfaces:
AstTagSummary.SummaryItem
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableSummaryItem
extends Object
implements AstTagSummary.SummaryItem
Immutable implementation of
AstTagSummary.SummaryItem.
Use the builder to create immutable instances:
ImmutableSummaryItem.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableSummaryItem. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableSummaryItem.Builderbuilder()Creates a builder forImmutableSummaryItem.static ImmutableSummaryItemcopyOf(AstTagSummary.SummaryItem instance) Creates an immutable copy of aAstTagSummary.SummaryItemvalue.booleanThis instance is equal to all instances ofImmutableSummaryItemthat have equal attribute values.getBody()getId()getName()inthashCode()Computes a hash code from attributes:id,name,body.toString()Prints the immutable valueSummaryItemwith attribute values.final ImmutableSummaryItemCopy the current immutable object by setting a value for thebodyattribute.final ImmutableSummaryItemCopy the current immutable object by setting a value for theidattribute.final ImmutableSummaryItemCopy the current immutable object by setting a value for thenameattribute.
-
Method Details
-
getId
- Specified by:
getIdin interfaceAstTagSummary.SummaryItem- Returns:
- The value of the
idattribute
-
getName
- Specified by:
getNamein interfaceAstTagSummary.SummaryItem- Returns:
- The value of the
nameattribute
-
getBody
- Specified by:
getBodyin interfaceAstTagSummary.SummaryItem- 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
-
withName
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- Returns:
- A modified copy of the
thisobject
-
withBody
Copy the current immutable object by setting a value for thebodyattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for body- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableSummaryItemthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,name,body. -
toString
Prints the immutable valueSummaryItemwith attribute values. -
copyOf
Creates an immutable copy of aAstTagSummary.SummaryItemvalue. 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 SummaryItem instance
-
builder
Creates a builder forImmutableSummaryItem.ImmutableSummaryItem.builder() .id(String) // requiredid.name(String) // requiredname.body(String) // requiredbody.build();- Returns:
- A new ImmutableSummaryItem builder
-