Class ImmutableLocalizedLabelOperator.Builder

  • Enclosing class:
    ImmutableLocalizedLabelOperator

    @NotThreadSafe
    public static final class ImmutableLocalizedLabelOperator.Builder
    extends Object
    Builds instances of type ImmutableLocalizedLabelOperator. Initialize attributes and then invoke the build() method to create an immutable instance.

    Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

    • Method Detail

      • from

        @CanIgnoreReturnValue
        public final ImmutableLocalizedLabelOperator.Builder from​(LocalizedLabelOperator instance)
        Fill a builder with attribute values from the provided LocalizedLabelOperator instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • putValue

        @CanIgnoreReturnValue
        public final ImmutableLocalizedLabelOperator.Builder putValue​(String key,
                                                                      Expression value)
        Put one entry to the value map.
        Parameters:
        key - The key in the value map
        value - The associated value in the value map
        Returns:
        this builder for use in a chained invocation
      • value

        @CanIgnoreReturnValue
        public final ImmutableLocalizedLabelOperator.Builder value​(Map<String,​? extends Expression> entries)
        Sets or replaces all mappings from the specified map as entries for the value map. Nulls are not permitted
        Parameters:
        entries - The entries that will be added to the value map
        Returns:
        this builder for use in a chained invocation
      • putAllValue

        @CanIgnoreReturnValue
        public final ImmutableLocalizedLabelOperator.Builder putAllValue​(Map<String,​? extends Expression> entries)
        Put all mappings from the specified map as entries to value map. Nulls are not permitted
        Parameters:
        entries - The entries that will be added to the value map
        Returns:
        this builder for use in a chained invocation