public class ContactCard extends Object
| Constructor and Description |
|---|
ContactCard() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getEmail() |
String |
getFullName() |
Long |
getId() |
String |
getPhone() |
int |
hashCode() |
void |
setEmail(String email) |
void |
setFullName(String fullName) |
void |
setId(Long id) |
void |
setPhone(String phone) |
public Long getId()
public void setId(Long id)
@NotNull(message="{contact.wrong.name}")
@Length(min=2,
max=20)
public String getFullName()
public void setFullName(String fullName)
public String getEmail()
public void setEmail(String email)
@Pattern(message="{contact.wrong.phone}",
regexp="[0-9]{3,9}")
public String getPhone()
public void setPhone(String phone)
Copyright © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.