Class ImmutableRequestReviewParameters


  • @ParametersAreNonnullByDefault
    @Generated("org.immutables.processor.ProxyProcessor")
    @Immutable
    @CheckReturnValue
    public final class ImmutableRequestReviewParameters
    extends RequestReviewParameters
    Immutable implementation of RequestReviewParameters.

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

    • Method Detail

      • withReviewers

        public final ImmutableRequestReviewParameters withReviewers​(List<String> value)
        Copy the current immutable object by setting a present value for the optional reviewers attribute.
        Parameters:
        value - The value for reviewers
        Returns:
        A modified copy of this object
      • withReviewers

        public final ImmutableRequestReviewParameters withReviewers​(Optional<? extends List<String>> optional)
        Copy the current immutable object by setting an optional value for the reviewers 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 reviewers
        Returns:
        A modified copy of this object
      • withTeamReviewers

        public final ImmutableRequestReviewParameters withTeamReviewers​(List<String> value)
        Copy the current immutable object by setting a present value for the optional teamReviewers attribute.
        Parameters:
        value - The value for teamReviewers
        Returns:
        A modified copy of this object
      • withTeamReviewers

        public final ImmutableRequestReviewParameters withTeamReviewers​(Optional<? extends List<String>> optional)
        Copy the current immutable object by setting an optional value for the teamReviewers 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 teamReviewers
        Returns:
        A modified copy of this object
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutableRequestReviewParameters 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: reviewers, teamReviewers.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

        public static ImmutableRequestReviewParameters copyOf​(RequestReviewParameters instance)
        Creates an immutable copy of a RequestReviewParameters 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 RequestReviewParameters instance