Class ImmutableVariableFinder.Variable

    • Method Detail

      • withName

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

        public final ImmutableVariableFinder.Variable withValueType​(ValueType value)
        Copy the current immutable object by setting a value for the valueType attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for valueType
        Returns:
        A modified copy of the this object
      • withScope

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

        public final ImmutableVariableFinder.Variable withScope​(Optional<String> optional)
        Copy the current immutable object by setting an optional value for the scope 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 scope
        Returns:
        A modified copy of this object
      • withPlaceHolderValue

        public final ImmutableVariableFinder.Variable withPlaceHolderValue​(Object value)
        Copy the current immutable object by setting a present value for the optional placeHolderValue attribute.
        Parameters:
        value - The value for placeHolderValue
        Returns:
        A modified copy of this object
      • withPlaceHolderValue

        public final ImmutableVariableFinder.Variable withPlaceHolderValue​(Optional<? extends Object> optional)
        Copy the current immutable object by setting an optional value for the placeHolderValue 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 placeHolderValue
        Returns:
        A modified copy of this object
      • withValueSetId

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

        public final ImmutableVariableFinder.Variable withValueSetId​(Optional<String> optional)
        Copy the current immutable object by setting an optional value for the valueSetId 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 valueSetId
        Returns:
        A modified copy of this object
      • equals

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

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