public class Person extends Object implements IClusterable
Constructor and Description |
---|
Person()
Construct.
|
Person(String name,
String lastName)
Construct.
|
Modifier and Type | Method and Description |
---|---|
Address |
getAddress()
Gets the address.
|
Date |
getDateOfBirth()
Gets the dateOfBirth.
|
String |
getFullName() |
String |
getLastName()
Gets the lastName.
|
String |
getName()
Gets the name.
|
void |
setAddress(Address address)
Sets the address.
|
void |
setDateOfBirth(Date dateOfBirth)
Sets the dateOfBirth.
|
void |
setLastName(String lastName)
Sets the lastName.
|
void |
setName(String name)
Sets the name.
|
String |
toString() |
public Date getDateOfBirth()
public void setDateOfBirth(Date dateOfBirth)
dateOfBirth
- dateOfBirthpublic String getLastName()
public void setLastName(String lastName)
lastName
- lastNamepublic String getName()
public void setName(String name)
name
- namepublic Address getAddress()
public void setAddress(Address address)
address
- addresspublic String getFullName()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.