Package com.spotify.github
Class ImmutableUpdateTracking
- java.lang.Object
-
- com.spotify.github.ImmutableUpdateTracking
-
- All Implemented Interfaces:
UpdateTracking
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableUpdateTracking extends Object implements UpdateTracking
Immutable implementation ofUpdateTracking
.Use the builder to create immutable instances:
ImmutableUpdateTracking.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImmutableUpdateTracking.Builder
Builds instances of typeImmutableUpdateTracking
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableUpdateTracking.Builder
builder()
Creates a builder forImmutableUpdateTracking
.static ImmutableUpdateTracking
copyOf(UpdateTracking instance)
Creates an immutable copy of aUpdateTracking
value.GitHubInstant
createdAt()
Created dateboolean
equals(Object another)
This instance is equal to all instances ofImmutableUpdateTracking
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:createdAt
,updatedAt
.String
toString()
Prints the immutable valueUpdateTracking
with attribute values.GitHubInstant
updatedAt()
Updated dateImmutableUpdateTracking
withCreatedAt(GitHubInstant value)
Copy the current immutable object by setting a value for thecreatedAt
attribute.ImmutableUpdateTracking
withUpdatedAt(GitHubInstant value)
Copy the current immutable object by setting a value for theupdatedAt
attribute.
-
-
-
Method Detail
-
createdAt
@Nullable public GitHubInstant createdAt()
Created date- Specified by:
createdAt
in interfaceUpdateTracking
- Returns:
- The date when the issue was created
-
updatedAt
@Nullable public GitHubInstant updatedAt()
Updated date- Specified by:
updatedAt
in interfaceUpdateTracking
- Returns:
- The date when the issue was updated
-
withCreatedAt
public final ImmutableUpdateTracking withCreatedAt(@Nullable GitHubInstant value)
Copy the current immutable object by setting a value for thecreatedAt
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for createdAt (can benull
)- Returns:
- A modified copy of the
this
object
-
withUpdatedAt
public final ImmutableUpdateTracking withUpdatedAt(@Nullable GitHubInstant value)
Copy the current immutable object by setting a value for theupdatedAt
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for updatedAt (can benull
)- Returns:
- A modified copy of the
this
object
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableUpdateTracking
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:createdAt
,updatedAt
.
-
toString
public String toString()
Prints the immutable valueUpdateTracking
with attribute values.
-
copyOf
public static ImmutableUpdateTracking copyOf(UpdateTracking instance)
Creates an immutable copy of aUpdateTracking
value. 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 UpdateTracking instance
-
builder
public static ImmutableUpdateTracking.Builder builder()
Creates a builder forImmutableUpdateTracking
.ImmutableUpdateTracking.builder() .createdAt(com.spotify.github.GitHubInstant | null) // nullable
createdAt
.updatedAt(com.spotify.github.GitHubInstant | null) // nullableupdatedAt
.build();- Returns:
- A new ImmutableUpdateTracking builder
-
-