Class ImmutableVerification

  • All Implemented Interfaces:
    Verification

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

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

    • Method Detail

      • verified

        @Nullable
        public Boolean verified()
        Specified by:
        verified in interface Verification
        Returns:
        The value of the verified attribute
      • reason

        @Nullable
        public String reason()
        Specified by:
        reason in interface Verification
        Returns:
        The value of the reason attribute
      • signature

        @Nullable
        public String signature()
        Specified by:
        signature in interface Verification
        Returns:
        The value of the signature attribute
      • payload

        @Nullable
        public String payload()
        Specified by:
        payload in interface Verification
        Returns:
        The value of the payload attribute
      • withVerified

        public final ImmutableVerification withVerified​(@Nullable
                                                        Boolean value)
        Copy the current immutable object by setting a value for the verified attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for verified (can be null)
        Returns:
        A modified copy of the this object
      • withReason

        public final ImmutableVerification withReason​(@Nullable
                                                      String value)
        Copy the current immutable object by setting a value for the reason attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for reason (can be null)
        Returns:
        A modified copy of the this object
      • withSignature

        public final ImmutableVerification withSignature​(@Nullable
                                                         String value)
        Copy the current immutable object by setting a value for the signature attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for signature (can be null)
        Returns:
        A modified copy of the this object
      • withPayload

        public final ImmutableVerification withPayload​(@Nullable
                                                       String value)
        Copy the current immutable object by setting a value for the payload attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for payload (can be null)
        Returns:
        A modified copy of the this object
      • equals

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

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

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