2 * Copyright (C) 2016 Roland Haeder
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 package org.mxchange.jphone.phonenumbers;
19 import java.io.Serializable;
20 import java.util.Calendar;
21 import org.mxchange.jcountry.data.Country;
24 * A POJI for dial-able numbers
26 * @author Roland Haeder<roland@mxchange.org>
28 public interface DialableNumber extends Serializable {
31 * Getter for country instance ('s dial data)
33 * @return Country instance
35 Country getPhoneCountry ();
38 * Setter for country instance ('s dial data)
40 * @param country Country instance
42 void setPhoneCountry (final Country country);
45 * Getter for id number
52 * Setter for id number
54 * @param phoneId Id number
56 void setPhoneId (final Long phoneId);
59 * Getter for dial number without prefix
61 * @return Dial number without prefix
63 Long getPhoneNumber ();
66 * Setter for dial number without prefix
68 * @param phoneNumber Dial number without prefix
70 void setPhoneNumber (final Long phoneNumber);
73 * Getter for area code without dial prefix (example: 2151 for Krefeld)
75 * @return Area code without dial prefix
77 Integer getPhoneAreaCode ();
80 * Setter for area code without dial prefix (example: 2151 for Krefeld)
82 * @param phoneAreaCode Area code without dial prefix
84 void setPhoneAreaCode (final Integer phoneAreaCode);
87 * Getter for timestamp when this entry has been created
89 * @return Timestamp when this entry has been created
91 Calendar getPhoneEntryCreated ();
94 * Setter for timestamp when this entry has been created
96 * @param phoneEntryCreated Timestamp when this entry has been created
98 void setPhoneEntryCreated (final Calendar phoneEntryCreated);