@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableComponentDefinition extends Object implements ComponentDefinition
ComponentDefinition.
Use the builder to create immutable instances:
new ImmutableComponentDefinition.Builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableComponentDefinition.Builder
Builds instances of type
ImmutableComponentDefinition. |
ComponentDefinition.Component, ComponentDefinition.Property, ComponentDefinition.PropertyRelation, ComponentDefinition.When| Modifier and Type | Method and Description |
|---|---|
static ImmutableComponentDefinition |
copyOf(ComponentDefinition instance)
Creates an immutable copy of a
ComponentDefinition value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableComponentDefinition that have equal attribute values. |
ComponentDefinition.Component |
getComponent() |
Map<String,ComponentDefinition.Property> |
getComponentProperties() |
Map<String,ComponentDefinition.Property> |
getEndpointProperties() |
int |
hashCode()
Computes a hash code from attributes:
component, componentProperties, endpointProperties. |
String |
toString()
Prints the immutable value
ComponentDefinition with attribute values. |
ImmutableComponentDefinition |
withComponent(ComponentDefinition.Component value)
Copy the current immutable object by setting a value for the
component attribute. |
ImmutableComponentDefinition |
withComponentProperties(Map<String,? extends ComponentDefinition.Property> entries)
Copy the current immutable object by replacing the
componentProperties map with the specified map. |
ImmutableComponentDefinition |
withEndpointProperties(Map<String,? extends ComponentDefinition.Property> entries)
Copy the current immutable object by replacing the
endpointProperties map with the specified map. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforSchemepublic ComponentDefinition.Component getComponent()
getComponent in interface ComponentDefinitioncomponent attributepublic Map<String,ComponentDefinition.Property> getComponentProperties()
getComponentProperties in interface ComponentDefinitioncomponentProperties attributepublic Map<String,ComponentDefinition.Property> getEndpointProperties()
getEndpointProperties in interface ComponentDefinitionendpointProperties attributepublic final ImmutableComponentDefinition withComponent(ComponentDefinition.Component value)
component attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for componentthis objectpublic final ImmutableComponentDefinition withComponentProperties(Map<String,? extends ComponentDefinition.Property> entries)
componentProperties map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.entries - The entries to be added to the componentProperties mapthis objectpublic final ImmutableComponentDefinition withEndpointProperties(Map<String,? extends ComponentDefinition.Property> entries)
endpointProperties map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.entries - The entries to be added to the endpointProperties mapthis objectpublic boolean equals(Object another)
ImmutableComponentDefinition that have equal attribute values.public int hashCode()
component, componentProperties, endpointProperties.public String toString()
ComponentDefinition with attribute values.public static ImmutableComponentDefinition copyOf(ComponentDefinition instance)
ComponentDefinition 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.