@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableInsightVersion extends InsightVersion
InsightVersion.
Use the builder to create immutable instances:
ImmutableInsightVersion.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableInsightVersion.Builder
Builds instances of type
ImmutableInsightVersion. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableInsightVersion.Builder |
builder()
Creates a builder for
ImmutableInsightVersion. |
static ImmutableInsightVersion |
copyOf(InsightVersion instance)
Creates an immutable copy of a
InsightVersion value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableInsightVersion that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
id, projectId, name. |
Long |
id() |
String |
name() |
Long |
projectId() |
String |
toString()
Prints the immutable value
InsightVersion with attribute values. |
ImmutableInsightVersion |
withId(Long value)
Copy the current immutable object by setting a value for the
id attribute. |
ImmutableInsightVersion |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
ImmutableInsightVersion |
withProjectId(Long value)
Copy the current immutable object by setting a value for the
projectId attribute. |
public Long id()
id in class InsightVersionid attributepublic Long projectId()
projectId in class InsightVersionprojectId attributepublic String name()
name in class InsightVersionname attributepublic final ImmutableInsightVersion withId(Long value)
id attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for idthis objectpublic final ImmutableInsightVersion withProjectId(Long value)
projectId attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for projectIdthis objectpublic final ImmutableInsightVersion withName(String value)
name attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for namethis objectpublic boolean equals(@Nullable Object another)
ImmutableInsightVersion that have equal attribute values.public int hashCode()
id, projectId, name.public String toString()
InsightVersion with attribute values.public static ImmutableInsightVersion copyOf(InsightVersion instance)
InsightVersion value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableInsightVersion.Builder builder()
ImmutableInsightVersion.
ImmutableInsightVersion.builder()
.setId(Long) // required id
.setProjectId(Long) // required projectId
.setName(String) // required name
.build();
Copyright © 2023 Atlassian. All rights reserved.