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 classImmutableUpdateTracking.BuilderBuilds instances of typeImmutableUpdateTracking.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableUpdateTracking.Builderbuilder()Creates a builder forImmutableUpdateTracking.static ImmutableUpdateTrackingcopyOf(UpdateTracking instance)Creates an immutable copy of aUpdateTrackingvalue.GitHubInstantcreatedAt()Created datebooleanequals(Object another)This instance is equal to all instances ofImmutableUpdateTrackingthat have equal attribute values.inthashCode()Computes a hash code from attributes:createdAt,updatedAt.StringtoString()Prints the immutable valueUpdateTrackingwith attribute values.GitHubInstantupdatedAt()Updated dateImmutableUpdateTrackingwithCreatedAt(GitHubInstant value)Copy the current immutable object by setting a value for thecreatedAtattribute.ImmutableUpdateTrackingwithUpdatedAt(GitHubInstant value)Copy the current immutable object by setting a value for theupdatedAtattribute.
-
-
-
Method Detail
-
createdAt
@Nullable public GitHubInstant createdAt()
Created date- Specified by:
createdAtin interfaceUpdateTracking- Returns:
- The date when the issue was created
-
updatedAt
@Nullable public GitHubInstant updatedAt()
Updated date- Specified by:
updatedAtin 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 thecreatedAtattribute. 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
thisobject
-
withUpdatedAt
public final ImmutableUpdateTracking withUpdatedAt(@Nullable GitHubInstant value)
Copy the current immutable object by setting a value for theupdatedAtattribute. 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
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableUpdateTrackingthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:createdAt,updatedAt.
-
toString
public String toString()
Prints the immutable valueUpdateTrackingwith attribute values.
-
copyOf
public static ImmutableUpdateTracking copyOf(UpdateTracking instance)
Creates an immutable copy of aUpdateTrackingvalue. 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) // nullablecreatedAt.updatedAt(com.spotify.github.GitHubInstant | null) // nullableupdatedAt.build();- Returns:
- A new ImmutableUpdateTracking builder
-
-