public class PersonRepresentation extends Object
| Constructor and Description |
|---|
PersonRepresentation(String email,
String name,
URI self) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static PersonRepresentation |
from(Person person,
URI self) |
String |
getEmail() |
String |
getName() |
URI |
getSelf() |
int |
hashCode() |
Person |
toPerson() |
public static PersonRepresentation from(Person person, URI self)
@NotNull(message="is missing")
@Pattern(regexp="[^@]+@[^@]+",
message="is malformed")
public String getEmail()
@NotNull(message="is missing") public String getName()
public URI getSelf()
public Person toPerson()
Copyright © 2010-2016 Airlift. All Rights Reserved.