Package org.bremersee.common.model
Class PhoneNumber
- java.lang.Object
-
- org.bremersee.common.model.PhoneNumber
-
- All Implemented Interfaces:
Serializable
@Validated public class PhoneNumber extends Object implements Serializable
A phone number.- Author:
- Christian Bremer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PhoneNumber(String value, String category)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCategory()
The category.@NotNull String
getValue()
The phone number.void
setCategory(String category)
Sets category.void
setValue(String value)
Sets value.
-
-
-
Method Detail
-
getValue
@NotNull public @NotNull String getValue()
The phone number.- Returns:
- value value
-
setValue
public void setValue(String value)
Sets value.- Parameters:
value
- the value
-
getCategory
public String getCategory()
The category.- Returns:
- category category
-
setCategory
public void setCategory(String category)
Sets category.- Parameters:
category
- the category
-
-