/**
* Id number
*/
- private Long contactId;
+ private Long id;
/**
* Birth day
private String comment;
/**
- * Companyname
+ * Company name
*/
private String companyName;
}
/**
- * Companyname
+ * Company name
*
* @return the companyName
*/
}
/**
- * Companyname
+ * Company name
*
* @param companyName the companyName to set
*/
/**
* Id number
- * @return the contactId
+ * @return the id
*/
@Override
- public Long getContactId () {
- return this.contactId;
+ public Long getId () {
+ return this.id;
}
/**
* Id number
- * @param contactId the contactId to set
+ * @param id the id to set
*/
@Override
- public void setContactId (final Long contactId) {
- this.contactId = contactId;
+ public void setId (final Long id) {
+ this.id = id;
}
/**
throw new NullPointerException("contact is null"); //NOI18N
}
- // Is the contactId the same?
- if (Objects.equals(this.getContactId(), contact.getContactId())) {
- // Same contactId, means same contact
+ // Is the id the same?
+ if (Objects.equals(this.getId(), contact.getId())) {
+ // Same id, means same contact
return 0;
- } else if (this.getContactId() > contact.getContactId()) {
- // This contactId is larger than compared to
+ } else if (this.getId() > contact.getId()) {
+ // This id is larger than compared to
return -1;
}
- // The other contactId is larger
+ // The other id is larger
return 1;
}
}
* Id number
* @return the contactId
*/
- public Long getContactId ();
+ public Long getId ();
/**
* Id number
- * @param contactId the contactId to set
+ * @param id the contactId to set
*/
- public void setContactId (final Long contactId);
+ public void setId (final Long id);
/**
* Gender of the contact
public void setFamilyName (final String familyName);
/**
- * Companyname
+ * Company name
*
* @return the companyName
*/
public String getCompanyName ();
/**
- * Companyname
+ * Company name
*
* @param companyName the companyName to set
*/