Class ImmutableCloseTracking

  • All Implemented Interfaces:
    CloseTracking, UpdateTracking

    @ParametersAreNonnullByDefault
    @Generated("org.immutables.processor.ProxyProcessor")
    @Immutable
    @CheckReturnValue
    public final class ImmutableCloseTracking
    extends Object
    implements CloseTracking
    Immutable implementation of CloseTracking.

    Use the builder to create immutable instances: ImmutableCloseTracking.builder().

    • Method Detail

      • withCreatedAt

        public final ImmutableCloseTracking withCreatedAt​(@Nullable
                                                          GitHubInstant value)
        Copy the current immutable object by setting a value for the createdAt attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for createdAt (can be null)
        Returns:
        A modified copy of the this object
      • withUpdatedAt

        public final ImmutableCloseTracking withUpdatedAt​(@Nullable
                                                          GitHubInstant value)
        Copy the current immutable object by setting a value for the updatedAt attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for updatedAt (can be null)
        Returns:
        A modified copy of the this object
      • withClosedAt

        public final ImmutableCloseTracking withClosedAt​(GitHubInstant value)
        Copy the current immutable object by setting a present value for the optional closedAt attribute.
        Parameters:
        value - The value for closedAt
        Returns:
        A modified copy of this object
      • withClosedAt

        public final ImmutableCloseTracking withClosedAt​(Optional<? extends GitHubInstant> optional)
        Copy the current immutable object by setting an optional value for the closedAt attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for closedAt
        Returns:
        A modified copy of this object
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutableCloseTracking that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: createdAt, updatedAt, closedAt.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value CloseTracking with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value
      • copyOf

        public static ImmutableCloseTracking copyOf​(CloseTracking instance)
        Creates an immutable copy of a CloseTracking 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 CloseTracking instance
      • builder

        public static ImmutableCloseTracking.Builder builder()
        Creates a builder for ImmutableCloseTracking.
         ImmutableCloseTracking.builder()
            .createdAt(com.spotify.github.GitHubInstant | null) // nullable createdAt
            .updatedAt(com.spotify.github.GitHubInstant | null) // nullable updatedAt
            .closedAt(com.spotify.github.GitHubInstant) // optional closedAt
            .build();
         
        Returns:
        A new ImmutableCloseTracking builder