Class ImmutableDetached.Builder

  • Enclosing class:
    ImmutableDetached

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

        @CanIgnoreReturnValue
        public final ImmutableDetached.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
      • hash

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