@Experimental @Generated @ThreadSafe @Immutable public class Contributor extends Object implements Serializable, InputLocationTracker
| Modifier and Type | Class and Description |
|---|---|
static class |
Contributor.Builder
Builder class used to create Contributor instances.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEmail()
The email address of the contributor.
|
InputLocation |
getLocation(Object key)
Gets the location of the specified field in the input source.
|
String |
getName()
The full name of the contributor.
|
String |
getOrganization()
The organization to which the contributor belongs.
|
String |
getOrganizationUrl()
The URL of the organization.
|
Map<String,String> |
getProperties()
Properties about the contributor, such as an instant messenger handle.
|
List<String> |
getRoles()
The roles the contributor plays in the project.
|
String |
getTimezone()
The timezone the contributor is in.
|
String |
getUrl()
The URL for the homepage of the contributor.
|
static Contributor.Builder |
newBuilder()
Creates a new
Contributor builder instance. |
static Contributor.Builder |
newBuilder(boolean withDefaults)
Creates a new
Contributor builder instance using default values or not. |
static Contributor.Builder |
newBuilder(Contributor from)
Creates a new
Contributor builder instance using the specified object as a basis. |
static Contributor.Builder |
newBuilder(Contributor from,
boolean forceCopy)
Creates a new
Contributor builder instance using the specified object as a basis. |
static Contributor |
newInstance()
Creates a new
Contributor instance. |
static Contributor |
newInstance(boolean withDefaults)
Creates a new
Contributor instance using default values or not. |
Contributor.Builder |
with()
Creates a new builder with this object as the basis.
|
Contributor |
withEmail(String email)
Creates a new
Contributor instance using the specified email. |
Contributor |
withName(String name)
Creates a new
Contributor instance using the specified name. |
Contributor |
withOrganization(String organization)
Creates a new
Contributor instance using the specified organization. |
Contributor |
withOrganizationUrl(String organizationUrl)
Creates a new
Contributor instance using the specified organizationUrl. |
Contributor |
withProperties(Map<String,String> properties)
Creates a new
Contributor instance using the specified properties. |
Contributor |
withRoles(Collection<String> roles)
Creates a new
Contributor instance using the specified roles. |
Contributor |
withTimezone(String timezone)
Creates a new
Contributor instance using the specified timezone. |
Contributor |
withUrl(String url)
Creates a new
Contributor instance using the specified url. |
public String getName()
Stringpublic String getEmail()
Stringpublic String getUrl()
Stringpublic String getOrganization()
Stringpublic String getOrganizationUrl()
String@Nonnull public List<String> getRoles()
role element, the body of which is a role name. This can also be used to
describe the contribution.List<String>public String getTimezone()
String@Nonnull public Map<String,String> getProperties()
Map<String, String>public InputLocation getLocation(Object key)
getLocation in interface InputLocationTracker@Nonnull public Contributor.Builder with()
Builder@Nonnull public Contributor withName(String name)
Contributor instance using the specified name.name - the new String to useContributor with the specified name@Nonnull public Contributor withEmail(String email)
Contributor instance using the specified email.email - the new String to useContributor with the specified email@Nonnull public Contributor withUrl(String url)
Contributor instance using the specified url.url - the new String to useContributor with the specified url@Nonnull public Contributor withOrganization(String organization)
Contributor instance using the specified organization.organization - the new String to useContributor with the specified organization@Nonnull public Contributor withOrganizationUrl(String organizationUrl)
Contributor instance using the specified organizationUrl.organizationUrl - the new String to useContributor with the specified organizationUrl@Nonnull public Contributor withRoles(Collection<String> roles)
Contributor instance using the specified roles.roles - the new Collection<String> to useContributor with the specified roles@Nonnull public Contributor withTimezone(String timezone)
Contributor instance using the specified timezone.timezone - the new String to useContributor with the specified timezone@Nonnull public Contributor withProperties(Map<String,String> properties)
Contributor instance using the specified properties.properties - the new Map<String, String> to useContributor with the specified properties@Nonnull public static Contributor newInstance()
Contributor instance.
Equivalent to newInstance( true ).ContributornewInstance(boolean)@Nonnull public static Contributor newInstance(boolean withDefaults)
Contributor instance using default values or not.
Equivalent to newBuilder( withDefaults ).build().withDefaults - the boolean indicating whether default values should be usedContributor@Nonnull public static Contributor.Builder newBuilder()
Contributor builder instance.
Equivalent to newBuilder( true ).BuildernewBuilder(boolean)@Nonnull public static Contributor.Builder newBuilder(boolean withDefaults)
Contributor builder instance using default values or not.withDefaults - the boolean indicating whether default values should be usedBuilder@Nonnull public static Contributor.Builder newBuilder(Contributor from)
Contributor builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false ).from - the Contributor instance to use as a basisBuilder@Nonnull public static Contributor.Builder newBuilder(Contributor from, boolean forceCopy)
Contributor builder instance using the specified object as a basis.from - the Contributor instance to use as a basisforceCopy - the boolean indicating if a copy should be forcedBuilderCopyright © 2001–2022 The Apache Software Foundation. All rights reserved.