public class PhoneWithType extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PhoneWithType.Builder
Class to build instances of
PhoneWithType. |
| Constructor and Description |
|---|
PhoneWithType()
Default constructor.
|
PhoneWithType(PhoneNumber phoneNumber,
PhoneType phoneType)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
PhoneNumber |
getPhoneNumber()
Getter for PhoneNumber.
|
PhoneType |
getPhoneType()
Getter for PhoneType.
|
void |
setPhoneNumber(PhoneNumber phoneNumber)
Setter for PhoneNumber.
|
void |
setPhoneType(PhoneType phoneType)
Setter for PhoneType.
|
PhoneWithType.Builder |
toBuilder()
Builds a new
PhoneWithType.Builder object. |
String |
toString()
Converts this PhoneWithType into string format.
|
public PhoneWithType()
public PhoneWithType(PhoneNumber phoneNumber, PhoneType phoneType)
phoneNumber - PhoneNumber value for phoneNumber.phoneType - PhoneType value for phoneType.public PhoneType getPhoneType()
public void setPhoneType(PhoneType phoneType)
phoneType - Value for PhoneTypepublic PhoneNumber getPhoneNumber()
public void setPhoneNumber(PhoneNumber phoneNumber)
phoneNumber - Value for PhoneNumberpublic String toString()
public PhoneWithType.Builder toBuilder()
PhoneWithType.Builder object.
Creates the instance with the state of the current model.PhoneWithType.Builder objectCopyright © 2025. All rights reserved.