@Experimental @Generated @ThreadSafe @Immutable public class License extends Object implements Serializable, InputLocationTracker
| Modifier and Type | Class and Description |
|---|---|
static class |
License.Builder
Builder class used to create License instances.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getComments()
Addendum information pertaining to this license.
|
String |
getDistribution()
The primary method by which this project may be distributed.
|
InputLocation |
getLocation(Object key)
Gets the location of the specified field in the input source.
|
String |
getName()
The full legal name of the license.
|
String |
getUrl()
The official url for the license text.
|
static License.Builder |
newBuilder()
Creates a new
License builder instance. |
static License.Builder |
newBuilder(boolean withDefaults)
Creates a new
License builder instance using default values or not. |
static License.Builder |
newBuilder(License from)
Creates a new
License builder instance using the specified object as a basis. |
static License.Builder |
newBuilder(License from,
boolean forceCopy)
Creates a new
License builder instance using the specified object as a basis. |
static License |
newInstance()
Creates a new
License instance. |
static License |
newInstance(boolean withDefaults)
Creates a new
License instance using default values or not. |
License.Builder |
with()
Creates a new builder with this object as the basis.
|
License |
withComments(String comments)
Creates a new
License instance using the specified comments. |
License |
withDistribution(String distribution)
Creates a new
License instance using the specified distribution. |
License |
withName(String name)
Creates a new
License instance using the specified name. |
License |
withUrl(String url)
Creates a new
License instance using the specified url. |
public String getName()
Stringpublic String getUrl()
Stringpublic String getDistribution()
Stringpublic String getComments()
Stringpublic InputLocation getLocation(Object key)
getLocation in interface InputLocationTracker@Nonnull public License.Builder with()
Builder@Nonnull public License withName(String name)
License instance using the specified name.name - the new String to useLicense with the specified name@Nonnull public License withUrl(String url)
License instance using the specified url.url - the new String to useLicense with the specified url@Nonnull public License withDistribution(String distribution)
License instance using the specified distribution.distribution - the new String to useLicense with the specified distribution@Nonnull public License withComments(String comments)
License instance using the specified comments.comments - the new String to useLicense with the specified comments@Nonnull public static License newInstance()
License instance.
Equivalent to newInstance( true ).LicensenewInstance(boolean)@Nonnull public static License newInstance(boolean withDefaults)
License instance using default values or not.
Equivalent to newBuilder( withDefaults ).build().withDefaults - the boolean indicating whether default values should be usedLicense@Nonnull public static License.Builder newBuilder()
License builder instance.
Equivalent to newBuilder( true ).BuildernewBuilder(boolean)@Nonnull public static License.Builder newBuilder(boolean withDefaults)
License builder instance using default values or not.withDefaults - the boolean indicating whether default values should be usedBuilder@Nonnull public static License.Builder newBuilder(License from)
License builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false ).from - the License instance to use as a basisBuilder@Nonnull public static License.Builder newBuilder(License from, boolean forceCopy)
License builder instance using the specified object as a basis.from - the License instance to use as a basisforceCopy - the boolean indicating if a copy should be forcedBuilderCopyright © 2001–2022 The Apache Software Foundation. All rights reserved.