@Experimental @Generated @ThreadSafe @Immutable public class Extension extends Object implements Serializable, InputLocationTracker
| Modifier and Type | Class and Description |
|---|---|
static class |
Extension.Builder
Builder class used to create Extension instances.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getArtifactId()
The artifact ID of the extension.
|
String |
getGroupId()
The group ID of the extension's artifact.
|
InputLocation |
getLocation(Object key)
Gets the location of the specified field in the input source.
|
String |
getVersion()
The version of the extension.
|
int |
hashCode() |
static Extension.Builder |
newBuilder()
Creates a new
Extension builder instance. |
static Extension.Builder |
newBuilder(boolean withDefaults)
Creates a new
Extension builder instance using default values or not. |
static Extension.Builder |
newBuilder(Extension from)
Creates a new
Extension builder instance using the specified object as a basis. |
static Extension.Builder |
newBuilder(Extension from,
boolean forceCopy)
Creates a new
Extension builder instance using the specified object as a basis. |
static Extension |
newInstance()
Creates a new
Extension instance. |
static Extension |
newInstance(boolean withDefaults)
Creates a new
Extension instance using default values or not. |
Extension.Builder |
with()
Creates a new builder with this object as the basis.
|
Extension |
withArtifactId(String artifactId)
Creates a new
Extension instance using the specified artifactId. |
Extension |
withGroupId(String groupId)
Creates a new
Extension instance using the specified groupId. |
Extension |
withVersion(String version)
Creates a new
Extension instance using the specified version. |
public String getGroupId()
Stringpublic String getArtifactId()
Stringpublic String getVersion()
Stringpublic InputLocation getLocation(Object key)
getLocation in interface InputLocationTracker@Nonnull public Extension.Builder with()
Builder@Nonnull public Extension withGroupId(String groupId)
Extension instance using the specified groupId.groupId - the new String to useExtension with the specified groupId@Nonnull public Extension withArtifactId(String artifactId)
Extension instance using the specified artifactId.artifactId - the new String to useExtension with the specified artifactId@Nonnull public Extension withVersion(String version)
Extension instance using the specified version.version - the new String to useExtension with the specified version@Nonnull public static Extension newInstance()
Extension instance.
Equivalent to newInstance( true ).ExtensionnewInstance(boolean)@Nonnull public static Extension newInstance(boolean withDefaults)
Extension instance using default values or not.
Equivalent to newBuilder( withDefaults ).build().withDefaults - the boolean indicating whether default values should be usedExtension@Nonnull public static Extension.Builder newBuilder()
Extension builder instance.
Equivalent to newBuilder( true ).BuildernewBuilder(boolean)@Nonnull public static Extension.Builder newBuilder(boolean withDefaults)
Extension builder instance using default values or not.withDefaults - the boolean indicating whether default values should be usedBuilder@Nonnull public static Extension.Builder newBuilder(Extension from)
Extension builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false ).from - the Extension instance to use as a basisBuilder@Nonnull public static Extension.Builder newBuilder(Extension from, boolean forceCopy)
Extension builder instance using the specified object as a basis.from - the Extension instance to use as a basisforceCopy - the boolean indicating if a copy should be forcedBuilderpublic boolean equals(Object o)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.