import org.mxchange.jcountry.data.Country;
/**
- * A POJO for dialable numbers
+ * A POJI for dial-able numbers
* <p>
* @author Roland Haeder<roland@mxchange.org>
*/
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
+ @Override
+ public void copyAll (final DialableCellphoneNumber sourceNumber) {
+ // Copy all
+ this.setCellphoneProvider(sourceNumber.getCellphoneProvider());
+ this.setPhoneEntryCreated(sourceNumber.getPhoneEntryCreated());
+ this.setPhoneId(sourceNumber.getPhoneId());
+ this.setPhoneNumber(sourceNumber.getPhoneNumber());
+ }
+
@Override
public boolean equals (final Object object) {
if (object == null) {
*/
void setCellphoneProvider (final SmsProvider cellphoneProvider);
+ /**
+ * Copy all fields from source object to this
+ * <p>
+ * @param sourceNumber Source number object
+ */
+ void copyAll (final DialableCellphoneNumber sourceNumber);
+
@Override
boolean equals (final Object object);
*/
public interface DialableFaxNumber extends DialableNumber {
+ /**
+ * Copy all fields from source object to this
+ * <p>
+ * @param sourceNumber Source number object
+ */
+ void copyAll (final DialableFaxNumber sourceNumber);
+
@Override
boolean equals (final Object object);
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
+ @Override
+ public void copyAll (final DialableFaxNumber sourceNumber) {
+ // Copy all
+ this.setPhoneAreaCode(sourceNumber.getPhoneAreaCode());
+ this.setPhoneCountry(sourceNumber.getPhoneCountry());
+ this.setPhoneEntryCreated(sourceNumber.getPhoneEntryCreated());
+ this.setPhoneId(sourceNumber.getPhoneId());
+ this.setPhoneNumber(sourceNumber.getPhoneNumber());
+ }
+
@Override
public boolean equals (final Object object) {
if (object == null) {
*/
public interface DialableLandLineNumber extends DialableNumber {
+ /**
+ * Copy all fields from source object to this
+ * <p>
+ * @param sourceNumber Source number object
+ */
+ void copyAll (final DialableLandLineNumber sourceNumber);
+
@Override
boolean equals (final Object object);
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
+ @Override
+ public void copyAll (final DialableLandLineNumber sourceNumber) {
+ // Copy all
+ this.setPhoneAreaCode(sourceNumber.getPhoneAreaCode());
+ this.setPhoneCountry(sourceNumber.getPhoneCountry());
+ this.setPhoneEntryCreated(sourceNumber.getPhoneEntryCreated());
+ this.setPhoneId(sourceNumber.getPhoneId());
+ this.setPhoneNumber(sourceNumber.getPhoneNumber());
+ }
+
@Override
public boolean equals (final Object object) {
if (object == null) {