@Experimental @Generated @ThreadSafe @Immutable public class Developer extends Contributor implements Serializable, InputLocationTracker
Modifier and Type | Class and Description |
---|---|
static class |
Developer.Builder
Builder class used to create Developer instances.
|
Modifier and Type | Method and Description |
---|---|
String |
getId()
The unique ID of the developer in the SCM.
|
InputLocation |
getLocation(Object key)
Gets the location of the specified field in the input source.
|
static Developer.Builder |
newBuilder()
Creates a new
Developer builder instance. |
static Developer.Builder |
newBuilder(boolean withDefaults)
Creates a new
Developer builder instance using default values or not. |
static Developer.Builder |
newBuilder(Developer from)
Creates a new
Developer builder instance using the specified object as a basis. |
static Developer.Builder |
newBuilder(Developer from,
boolean forceCopy)
Creates a new
Developer builder instance using the specified object as a basis. |
static Developer |
newInstance()
Creates a new
Developer instance. |
static Developer |
newInstance(boolean withDefaults)
Creates a new
Developer instance using default values or not. |
Developer.Builder |
with()
Creates a new builder with this object as the basis.
|
Developer |
withEmail(String email)
Creates a new
Developer instance using the specified email. |
Developer |
withId(String id)
Creates a new
Developer instance using the specified id. |
Developer |
withName(String name)
Creates a new
Developer instance using the specified name. |
Developer |
withOrganization(String organization)
Creates a new
Developer instance using the specified organization. |
Developer |
withOrganizationUrl(String organizationUrl)
Creates a new
Developer instance using the specified organizationUrl. |
Developer |
withProperties(Map<String,String> properties)
Creates a new
Developer instance using the specified properties. |
Developer |
withRoles(Collection<String> roles)
Creates a new
Developer instance using the specified roles. |
Developer |
withTimezone(String timezone)
Creates a new
Developer instance using the specified timezone. |
Developer |
withUrl(String url)
Creates a new
Developer instance using the specified url. |
getEmail, getName, getOrganization, getOrganizationUrl, getProperties, getRoles, getTimezone, getUrl, newBuilder, newBuilder
public String getId()
String
public InputLocation getLocation(Object key)
getLocation
in interface InputLocationTracker
getLocation
in class Contributor
@Nonnull public Developer.Builder with()
with
in class Contributor
Builder
@Nonnull public Developer withName(String name)
Developer
instance using the specified name.withName
in class Contributor
name
- the new String
to useDeveloper
with the specified name@Nonnull public Developer withEmail(String email)
Developer
instance using the specified email.withEmail
in class Contributor
email
- the new String
to useDeveloper
with the specified email@Nonnull public Developer withUrl(String url)
Developer
instance using the specified url.withUrl
in class Contributor
url
- the new String
to useDeveloper
with the specified url@Nonnull public Developer withOrganization(String organization)
Developer
instance using the specified organization.withOrganization
in class Contributor
organization
- the new String
to useDeveloper
with the specified organization@Nonnull public Developer withOrganizationUrl(String organizationUrl)
Developer
instance using the specified organizationUrl.withOrganizationUrl
in class Contributor
organizationUrl
- the new String
to useDeveloper
with the specified organizationUrl@Nonnull public Developer withRoles(Collection<String> roles)
Developer
instance using the specified roles.withRoles
in class Contributor
roles
- the new Collection<String>
to useDeveloper
with the specified roles@Nonnull public Developer withTimezone(String timezone)
Developer
instance using the specified timezone.withTimezone
in class Contributor
timezone
- the new String
to useDeveloper
with the specified timezone@Nonnull public Developer withProperties(Map<String,String> properties)
Developer
instance using the specified properties.withProperties
in class Contributor
properties
- the new Map<String, String>
to useDeveloper
with the specified properties@Nonnull public Developer withId(String id)
Developer
instance using the specified id.id
- the new String
to useDeveloper
with the specified id@Nonnull public static Developer newInstance()
Developer
instance.
Equivalent to newInstance( true )
.Developer
newInstance(boolean)
@Nonnull public static Developer newInstance(boolean withDefaults)
Developer
instance using default values or not.
Equivalent to newBuilder( withDefaults ).build()
.withDefaults
- the boolean indicating whether default values should be usedDeveloper
@Nonnull public static Developer.Builder newBuilder()
Developer
builder instance.
Equivalent to newBuilder( true )
.Builder
newBuilder(boolean)
@Nonnull public static Developer.Builder newBuilder(boolean withDefaults)
Developer
builder instance using default values or not.withDefaults
- the boolean indicating whether default values should be usedBuilder
@Nonnull public static Developer.Builder newBuilder(Developer from)
Developer
builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false )
.from
- the Developer
instance to use as a basisBuilder
@Nonnull public static Developer.Builder newBuilder(Developer from, boolean forceCopy)
Developer
builder instance using the specified object as a basis.from
- the Developer
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forcedBuilder
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.