Class ImmutableHash.Builder

  • Enclosing class:
    ImmutableHash

    @NotThreadSafe
    public static final class ImmutableHash.Builder
    extends Object
    Builds instances of type ImmutableHash. 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 ImmutableHash.Builder from​(Reference instance)
        Fill a builder with attribute values from the provided org.projectnessie.model.Reference instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

        @CanIgnoreReturnValue
        public final ImmutableHash.Builder from​(Hash instance)
        Fill a builder with attribute values from the provided org.projectnessie.model.Hash instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • name

        @CanIgnoreReturnValue
        public final ImmutableHash.Builder name​(String name)
        Initializes the value for the name attribute.
        Parameters:
        name - The value for name
        Returns:
        this builder for use in a chained invocation