Class ImmutableRefLogResponseEntry

    • Method Detail

      • withRefLogId

        public final ImmutableRefLogResponseEntry withRefLogId​(String value)
        Copy the current immutable object by setting a value for the refLogId attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for refLogId
        Returns:
        A modified copy of the this object
      • withRefName

        public final ImmutableRefLogResponseEntry withRefName​(String value)
        Copy the current immutable object by setting a value for the refName attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for refName
        Returns:
        A modified copy of the this object
      • withRefType

        public final ImmutableRefLogResponseEntry withRefType​(String value)
        Copy the current immutable object by setting a value for the refType attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for refType
        Returns:
        A modified copy of the this object
      • withCommitHash

        public final ImmutableRefLogResponseEntry withCommitHash​(String value)
        Copy the current immutable object by setting a value for the commitHash attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for commitHash
        Returns:
        A modified copy of the this object
      • withParentRefLogId

        public final ImmutableRefLogResponseEntry withParentRefLogId​(String value)
        Copy the current immutable object by setting a value for the parentRefLogId attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for parentRefLogId
        Returns:
        A modified copy of the this object
      • withOperationTime

        public final ImmutableRefLogResponseEntry withOperationTime​(long value)
        Copy the current immutable object by setting a value for the operationTime attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for operationTime
        Returns:
        A modified copy of the this object
      • withOperation

        public final ImmutableRefLogResponseEntry withOperation​(String value)
        Copy the current immutable object by setting a value for the operation attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for operation
        Returns:
        A modified copy of the this object
      • withSourceHashes

        public final ImmutableRefLogResponseEntry withSourceHashes​(String... elements)
        Copy the current immutable object with elements that replace the content of sourceHashes.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withSourceHashes

        public final ImmutableRefLogResponseEntry withSourceHashes​(Iterable<String> elements)
        Copy the current immutable object with elements that replace the content of sourceHashes. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of sourceHashes elements to set
        Returns:
        A modified copy of this object
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutableRefLogResponseEntry 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: refLogId, refName, refType, commitHash, parentRefLogId, operationTime, operation, sourceHashes.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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