public class PhoneNumbersBuilder extends AbstractParent<SmsBuilder> implements Builder<PhoneNumberTranslatorPair>
PhoneNumber
to an
AddressedPhoneNumber
).
The PhoneNumber
is used by the developer to provide a simple phone
number without knowing how phone number works (no need to handle formats,
addressing, countries...). The AddressedPhoneNumber
is used by Ogham
implementations to have a phone number that is usable by a technical system.parent
Constructor and Description |
---|
PhoneNumbersBuilder(SmsBuilder parent,
BuildContext buildContext)
Initializes the builder with a parent builder.
|
Modifier and Type | Method and Description |
---|---|
PhoneNumberTranslatorPair |
build()
Instantiate and configures the instance.
|
SenderNumberBuilder |
from()
Configures the sender phone number conversion (from a
PhoneNumber
to an AddressedPhoneNumber ). |
RecipientNumberBuilder |
to()
Configures the recipient phone number conversion (from a
PhoneNumber to an AddressedPhoneNumber ). |
and
public PhoneNumbersBuilder(SmsBuilder parent, BuildContext buildContext)
AbstractParent.and()
method. The EnvironmentBuilder
is
used to evaluate properties when build()
method is called.parent
- the parent builderbuildContext
- for registering instances and property evaluationpublic SenderNumberBuilder from()
PhoneNumber
to an AddressedPhoneNumber
).
The PhoneNumber
is used by the developer to provide a simple
phone number without knowing how phone number works (no need to handle
formats, addressing, countries...). The AddressedPhoneNumber
is
used by Ogham implementations to have a phone number that is usable by a
technical system.public RecipientNumberBuilder to()
PhoneNumber
to an AddressedPhoneNumber
).
The PhoneNumber
is used by the developer to provide a simple
phone number without knowing how phone number works (no need to handle
formats, addressing, countries...). The AddressedPhoneNumber
is
used by Ogham implementations to have a phone number that is usable by a
technical system.public PhoneNumberTranslatorPair build()
Builder
build
in interface Builder<PhoneNumberTranslatorPair>
Copyright © 2021. All rights reserved.