public class Contributor extends AbstractPerson
| Constructor and Description |
|---|
Contributor(PersonName name,
ContributorType type) |
Contributor(String name,
ContributorType type)
Constructor that creates a PersonName out of a String.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
PersonName |
getName()
Retrieves the full name of the contributor.
|
ContributorType |
getType()
Retrieves the role of the contributor.
|
int |
hashCode() |
String |
toString() |
addAffiliations, addNameIdentifiers, getAffiliations, getFamilyName, getGivenName, getNameIdentifiers, setFamilyName, setGivenName, setNameIdentifierspublic Contributor(String name, ContributorType type)
name - the name of the contributortype - the role of the contributorpublic Contributor(PersonName name, ContributorType type)
public PersonName getName()
getName in class AbstractPersonpublic ContributorType getType()
public boolean equals(Object o)
equals in class AbstractPersonprotected boolean canEqual(Object other)
canEqual in class AbstractPersonpublic int hashCode()
hashCode in class AbstractPersonpublic String toString()
toString in class AbstractPersonCopyright © 2017–2019. All rights reserved.