@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableComponent extends Object implements ComponentDefinition.Component
ComponentDefinition.Component.
Use the builder to create immutable instances:
new ImmutableComponent.Builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableComponent.Builder
Builds instances of type
ImmutableComponent. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableComponent |
copyOf(ComponentDefinition.Component instance)
Creates an immutable copy of a
ComponentDefinition.Component value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableComponent that have equal attribute values. |
Optional<String> |
getAlternativeSchemes() |
Optional<String> |
getAlternativeSyntax() |
String |
getArtifactId() |
String |
getConsumerOnly() |
String |
getDeprecated() |
String |
getDescription() |
Optional<String> |
getFirstVersion() |
String |
getGroupId() |
String |
getJavaType() |
String |
getKind() |
String |
getLabel() |
String |
getProducerOnly() |
String |
getScheme() |
String |
getSyntax() |
String |
getTitle() |
String |
getVersion() |
int |
hashCode()
Computes a hash code from attributes:
kind, scheme, syntax, title, description, label, deprecated, consumerOnly, producerOnly, javaType, groupId, artifactId, version, alternativeSyntax, alternativeSchemes, firstVersion. |
String |
toString()
Prints the immutable value
Component with attribute values. |
ImmutableComponent |
withAlternativeSchemes(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
alternativeSchemes attribute. |
ImmutableComponent |
withAlternativeSchemes(String value)
Copy the current immutable object by setting a present value for the optional
alternativeSchemes attribute. |
ImmutableComponent |
withAlternativeSyntax(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
alternativeSyntax attribute. |
ImmutableComponent |
withAlternativeSyntax(String value)
Copy the current immutable object by setting a present value for the optional
alternativeSyntax attribute. |
ImmutableComponent |
withArtifactId(String value)
Copy the current immutable object by setting a value for the
artifactId attribute. |
ImmutableComponent |
withConsumerOnly(String value)
Copy the current immutable object by setting a value for the
consumerOnly attribute. |
ImmutableComponent |
withDeprecated(String value)
Copy the current immutable object by setting a value for the
deprecated attribute. |
ImmutableComponent |
withDescription(String value)
Copy the current immutable object by setting a value for the
description attribute. |
ImmutableComponent |
withFirstVersion(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
firstVersion attribute. |
ImmutableComponent |
withFirstVersion(String value)
Copy the current immutable object by setting a present value for the optional
firstVersion attribute. |
ImmutableComponent |
withGroupId(String value)
Copy the current immutable object by setting a value for the
groupId attribute. |
ImmutableComponent |
withJavaType(String value)
Copy the current immutable object by setting a value for the
javaType attribute. |
ImmutableComponent |
withKind(String value)
Copy the current immutable object by setting a value for the
kind attribute. |
ImmutableComponent |
withLabel(String value)
Copy the current immutable object by setting a value for the
label attribute. |
ImmutableComponent |
withProducerOnly(String value)
Copy the current immutable object by setting a value for the
producerOnly attribute. |
ImmutableComponent |
withScheme(String value)
Copy the current immutable object by setting a value for the
scheme attribute. |
ImmutableComponent |
withSyntax(String value)
Copy the current immutable object by setting a value for the
syntax attribute. |
ImmutableComponent |
withTitle(String value)
Copy the current immutable object by setting a value for the
title attribute. |
ImmutableComponent |
withVersion(String value)
Copy the current immutable object by setting a value for the
version attribute. |
public String getKind()
getKind in interface ComponentDefinition.Componentkind attributepublic String getScheme()
getScheme in interface ComponentDefinition.Componentscheme attributepublic String getSyntax()
getSyntax in interface ComponentDefinition.Componentsyntax attributepublic String getTitle()
getTitle in interface ComponentDefinition.Componenttitle attributepublic String getDescription()
getDescription in interface ComponentDefinition.Componentdescription attributepublic String getLabel()
getLabel in interface ComponentDefinition.Componentlabel attributepublic String getDeprecated()
getDeprecated in interface ComponentDefinition.Componentdeprecated attributepublic String getConsumerOnly()
getConsumerOnly in interface ComponentDefinition.ComponentconsumerOnly attributepublic String getProducerOnly()
getProducerOnly in interface ComponentDefinition.ComponentproducerOnly attributepublic String getJavaType()
getJavaType in interface ComponentDefinition.ComponentjavaType attributepublic String getGroupId()
getGroupId in interface ComponentDefinition.ComponentgroupId attributepublic String getArtifactId()
getArtifactId in interface ComponentDefinition.ComponentartifactId attributepublic String getVersion()
getVersion in interface ComponentDefinition.Componentversion attributepublic Optional<String> getAlternativeSyntax()
getAlternativeSyntax in interface ComponentDefinition.ComponentalternativeSyntax attributepublic Optional<String> getAlternativeSchemes()
getAlternativeSchemes in interface ComponentDefinition.ComponentalternativeSchemes attributepublic Optional<String> getFirstVersion()
getFirstVersion in interface ComponentDefinition.ComponentfirstVersion attributepublic final ImmutableComponent withKind(String value)
kind attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for kindthis objectpublic final ImmutableComponent withScheme(String value)
scheme attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for schemethis objectpublic final ImmutableComponent withSyntax(String value)
syntax attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for syntaxthis objectpublic final ImmutableComponent withTitle(String value)
title attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for titlethis objectpublic final ImmutableComponent withDescription(String value)
description attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for descriptionthis objectpublic final ImmutableComponent withLabel(String value)
label attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for labelthis objectpublic final ImmutableComponent withDeprecated(String value)
deprecated attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for deprecatedthis objectpublic final ImmutableComponent withConsumerOnly(String value)
consumerOnly attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for consumerOnlythis objectpublic final ImmutableComponent withProducerOnly(String value)
producerOnly attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for producerOnlythis objectpublic final ImmutableComponent withJavaType(String value)
javaType attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for javaTypethis objectpublic final ImmutableComponent withGroupId(String value)
groupId attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for groupIdthis objectpublic final ImmutableComponent withArtifactId(String value)
artifactId attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for artifactIdthis objectpublic final ImmutableComponent withVersion(String value)
version attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for versionthis objectpublic final ImmutableComponent withAlternativeSyntax(String value)
alternativeSyntax attribute.value - The value for alternativeSyntaxthis objectpublic final ImmutableComponent withAlternativeSyntax(Optional<String> optional)
alternativeSyntax attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for alternativeSyntaxthis objectpublic final ImmutableComponent withAlternativeSchemes(String value)
alternativeSchemes attribute.value - The value for alternativeSchemesthis objectpublic final ImmutableComponent withAlternativeSchemes(Optional<String> optional)
alternativeSchemes attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for alternativeSchemesthis objectpublic final ImmutableComponent withFirstVersion(String value)
firstVersion attribute.value - The value for firstVersionthis objectpublic final ImmutableComponent withFirstVersion(Optional<String> optional)
firstVersion attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for firstVersionthis objectpublic boolean equals(Object another)
ImmutableComponent that have equal attribute values.public int hashCode()
kind, scheme, syntax, title, description, label, deprecated, consumerOnly, producerOnly, javaType, groupId, artifactId, version, alternativeSyntax, alternativeSchemes, firstVersion.public String toString()
Component with attribute values.public static ImmutableComponent copyOf(ComponentDefinition.Component instance)
ComponentDefinition.Component value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copyCopyright © 2016–2019 Red Hat. All rights reserved.