Class ImmutableLocalizedLabelOperator

java.lang.Object
io.dialob.session.engine.program.expr.arith.ImmutableLocalizedLabelOperator
All Implemented Interfaces:
LocalizedLabelOperator, Expression, Serializable

@Generated(from="LocalizedLabelOperator", generator="Immutables") @ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableLocalizedLabelOperator extends Object implements LocalizedLabelOperator
Immutable implementation of LocalizedLabelOperator.

Use the builder to create immutable instances: ImmutableLocalizedLabelOperator.builder(). Use the static factory method to create immutable instances: ImmutableLocalizedLabelOperator.of().

See Also:
  • Method Details

    • getValue

      public com.google.common.collect.ImmutableMap<String,Expression> getValue()
      Specified by:
      getValue in interface LocalizedLabelOperator
      Returns:
      The value of the value attribute
    • withValue

      public final ImmutableLocalizedLabelOperator withValue(Map<String,? extends Expression> entries)
      Copy the current immutable object by replacing the value map with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      entries - The entries to replace the value map
      Returns:
      A modified copy or this if not changed
    • equals

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

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

      public static ImmutableLocalizedLabelOperator of(Map<String,? extends Expression> value)
      Construct a new immutable LocalizedLabelOperator instance.
      Parameters:
      value - The value for the value attribute
      Returns:
      An immutable LocalizedLabelOperator instance
    • copyOf

      Creates an immutable copy of a LocalizedLabelOperator 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 LocalizedLabelOperator instance
    • builder

      public static ImmutableLocalizedLabelOperator.Builder builder()
      Creates a builder for ImmutableLocalizedLabelOperator.
       ImmutableLocalizedLabelOperator.builder()
          .putValue|putAllValue(String => io.dialob.session.engine.program.model.Expression) // value mappings
          .build();
       
      Returns:
      A new ImmutableLocalizedLabelOperator builder