Table of Contents

Interface IBuilder<T>

Namespace
Tudormobile.Strava.Client
Assembly
Tudormobile.Strava.Client.dll

Defines a mechanism for constructing an instance of type T.

public interface IBuilder<T>

Type Parameters

T

The type of object to be constructed by the builder.

Remarks

This is a generic builder interface that follows the Builder design pattern. It provides a consistent contract for any builder implementation in the library.

Methods

Build()

Creates and returns an instance of type T based on the current configuration.

T Build()

Returns

T

An instance of type T representing the constructed object.

Remarks

This method finalizes the builder configuration and produces the target object. After calling Build(), the builder should be considered consumed and should not be reused.

Implementations should validate that all required configuration has been provided before constructing the object, throwing appropriate exceptions if validation fails.