@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableProgressState extends ProgressState
ProgressState.
Use the builder to create immutable instances:
ImmutableProgressState.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableProgressState.Builder
Builds instances of type
ImmutableProgressState. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableProgressState.Builder |
builder()
Creates a builder for
ImmutableProgressState. |
static ImmutableProgressState |
copyOf(ProgressState instance)
Creates an immutable copy of a
ProgressState value. |
Optional<Instant> |
ended() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableProgressState that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
progressId, started, ended, result. |
ProgressId |
progressId() |
Result |
result() |
Instant |
started() |
String |
toString()
Prints the immutable value
ProgressState with attribute values. |
ImmutableProgressState |
withEnded(Instant value)
Copy the current immutable object by setting a present value for the optional
ended attribute. |
ImmutableProgressState |
withEnded(Optional<? extends Instant> optional)
Copy the current immutable object by setting an optional value for the
ended attribute. |
ImmutableProgressState |
withProgressId(ProgressId value)
Copy the current immutable object by setting a value for the
progressId attribute. |
ImmutableProgressState |
withResult(Result value)
Copy the current immutable object by setting a value for the
result attribute. |
ImmutableProgressState |
withStarted(Instant value)
Copy the current immutable object by setting a value for the
started attribute. |
public ProgressId progressId()
progressId in class ProgressStateprogressId attributepublic Instant started()
started in class ProgressStatestarted attributepublic Optional<Instant> ended()
ended in class ProgressStateended attributepublic Result result()
result in class ProgressStateresult attributepublic final ImmutableProgressState withProgressId(ProgressId value)
progressId attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for progressIdthis objectpublic final ImmutableProgressState withStarted(Instant value)
started attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for startedthis objectpublic final ImmutableProgressState withEnded(Instant value)
ended attribute.value - The value for endedthis objectpublic final ImmutableProgressState withEnded(Optional<? extends Instant> optional)
ended attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for endedthis objectpublic final ImmutableProgressState withResult(Result value)
result attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for resultthis objectpublic boolean equals(@Nullable Object another)
ImmutableProgressState that have equal attribute values.public int hashCode()
progressId, started, ended, result.public String toString()
ProgressState with attribute values.public static ImmutableProgressState copyOf(ProgressState instance)
ProgressState 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 ImmutableProgressState.Builder builder()
ImmutableProgressState.
ImmutableProgressState.builder()
.progressId(com.riadalabs.jira.plugins.insight.services.progress.model.ProgressId) // required progressId
.started(java.time.Instant) // required started
.ended(java.time.Instant) // optional ended
.result(com.riadalabs.jira.plugins.insight.services.progress.model.Result) // required result
.build();
Copyright © 2023 Atlassian. All rights reserved.