java.lang.Object
io.jenetics.jpx.Person
- All Implemented Interfaces:
Serializable
A person or organization.
- Since:
- 1.0
- Version:
- 1.2
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetEmail()Return the email address.getLink()Return the link to Web site or other external information about person.getName()Return the name of the person or organization.inthashCode()booleanisEmpty()Returntrueif all person properties arenull.booleannonEmpty()Returntrueif not all person properties arenull.static Personof()Create a new emptyPerson.static PersonCreate a newPersonobject with the given parameters.static PersonCreate a newPersonobject with the given parameters.static PersonCreate a newPersonobject with the given parameters.toString()
-
Method Details
-
getName
Return the name of the person or organization.- Returns:
- the name of the person or organization
-
getEmail
Return the email address.- Returns:
- the email address
-
getLink
Return the link to Web site or other external information about person.- Returns:
- the link to Web site or other external information about person
-
isEmpty
Returntrueif all person properties arenull.- Returns:
trueif all person properties arenull
-
nonEmpty
Returntrueif not all person properties arenull.- Returns:
trueif not all person properties arenull- Since:
- 1.1
-
hashCode
-
equals
-
toString
-
of
Create a newPersonobject with the given parameters.- Parameters:
name- name of person or organizationemail- the person's email addresslink- link to Web site or other external information about person- Returns:
- a new
Personobject with the given parameters
-
of
Create a newPersonobject with the given parameters.- Parameters:
name- name of person or organizationemail- the person's email address- Returns:
- a new
Personobject with the given parameters
-
of
Create a newPersonobject with the given parameters.- Parameters:
name- name of person or organization- Returns:
- a new
Personobject with the given parameters
-
of
Create a new emptyPerson.- Returns:
- a new empty
Person
-