Class ImmutableStoreState.Builder

  • Enclosing class:
    ImmutableStoreState

    @NotThreadSafe
    public static final class ImmutableStoreState.Builder
    extends Object
    Builds instances of type ImmutableStoreState. 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 ImmutableStoreState.Builder from​(DialobStore.StoreState instance)
        Fill a builder with attribute values from the provided StoreState 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
      • putRevs

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

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

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

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

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

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

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

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

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