Class ImmutableCAAResult

  • All Implemented Interfaces:
    CAAResult

    @Generated("org.immutables.processor.ProxyProcessor")
    public final class ImmutableCAAResult
    extends Object
    implements CAAResult
    Immutable implementation of CAAResult.

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

    • Method Detail

      • withTag

        public final ImmutableCAAResult withTag​(String value)
        Copy the current immutable object by setting a present value for the optional tag attribute.
        Parameters:
        value - The value for tag
        Returns:
        A modified copy of this object
      • withTag

        public final ImmutableCAAResult withTag​(Optional<String> optional)
        Copy the current immutable object by setting an optional value for the tag attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for tag
        Returns:
        A modified copy of this object
      • withValue

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

        public final ImmutableCAAResult withValue​(Optional<String> optional)
        Copy the current immutable object by setting an optional value for the value attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for value
        Returns:
        A modified copy of this object
      • withFlags

        public final ImmutableCAAResult withFlags​(int value)
        Copy the current immutable object by setting a present value for the optional flags attribute.
        Parameters:
        value - The value for flags
        Returns:
        A modified copy of this object
      • withFlags

        public final ImmutableCAAResult withFlags​(Optional<Integer> optional)
        Copy the current immutable object by setting an optional value for the flags attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for flags
        Returns:
        A modified copy of this object
      • equals

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

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

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