@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableInsightProject extends InsightProject
InsightProject
.
Use the builder to create immutable instances:
ImmutableInsightProject.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableInsightProject.Builder
Builds instances of type
ImmutableInsightProject . |
Modifier and Type | Method and Description |
---|---|
static ImmutableInsightProject.Builder |
builder()
Creates a builder for
ImmutableInsightProject . |
static ImmutableInsightProject |
copyOf(InsightProject instance)
Creates an immutable copy of a
InsightProject value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableInsightProject that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
id , key , name . |
Long |
id() |
String |
key() |
String |
name() |
String |
toString()
Prints the immutable value
InsightProject with attribute values. |
ImmutableInsightProject |
withId(Long value)
Copy the current immutable object by setting a value for the
id attribute. |
ImmutableInsightProject |
withKey(String value)
Copy the current immutable object by setting a value for the
key attribute. |
ImmutableInsightProject |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
public Long id()
id
in class InsightProject
id
attributepublic String key()
key
in class InsightProject
key
attributepublic String name()
name
in class InsightProject
name
attributepublic final ImmutableInsightProject 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 ImmutableInsightProject withKey(String value)
key
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for keythis
objectpublic final ImmutableInsightProject 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)
ImmutableInsightProject
that have equal attribute values.public int hashCode()
id
, key
, name
.public String toString()
InsightProject
with attribute values.public static ImmutableInsightProject copyOf(InsightProject instance)
InsightProject
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 ImmutableInsightProject.Builder builder()
ImmutableInsightProject
.
ImmutableInsightProject.builder() .setId(Long) // requiredid
.setKey(String) // requiredkey
.setName(String) // requiredname
.build();
Copyright © 2024 Atlassian. All rights reserved.