AddressComponentKt

public final class AddressComponentKt


Summary

Public methods

static final @NonNull AddressComponent
addressComponent(
    @NonNull String name,
    @NonNull List<@NonNull String> types,
    @ExtensionFunctionType Function1<@NonNull AddressComponent.BuilderUnit> actions
)

Builds a new AddressComponent.

Public methods

addressComponent

public static final @NonNull AddressComponent addressComponent(
    @NonNull String name,
    @NonNull List<@NonNull String> types,
    @ExtensionFunctionType Function1<@NonNull AddressComponent.BuilderUnit> actions
)

Builds a new AddressComponent.

Parameters
@NonNull String name

the name of this address component

@NonNull List<@NonNull String> types

the types of this address component

@ExtensionFunctionType Function1<@NonNull AddressComponent.BuilderUnit> actions

the actions to apply to the AddressComponent.Builder

Returns
@NonNull AddressComponent

the constructed AddressComponent

See also

Address types