@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutablePropertyRelation extends Object implements ComponentDefinition.PropertyRelation
ComponentDefinition.PropertyRelation.
Use the builder to create immutable instances:
new ImmutablePropertyRelation.Builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutablePropertyRelation.Builder
Builds instances of type
ImmutablePropertyRelation. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutablePropertyRelation |
copyOf(ComponentDefinition.PropertyRelation instance)
Creates an immutable copy of a
ComponentDefinition.PropertyRelation value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutablePropertyRelation that have equal attribute values. |
String |
getAction() |
List<ComponentDefinition.When> |
getWhen() |
int |
hashCode()
Computes a hash code from attributes:
action, when. |
String |
toString()
Prints the immutable value
PropertyRelation with attribute values. |
ImmutablePropertyRelation |
withAction(String value)
Copy the current immutable object by setting a value for the
action attribute. |
ImmutablePropertyRelation |
withWhen(ComponentDefinition.When... elements)
Copy the current immutable object with elements that replace the content of
when. |
ImmutablePropertyRelation |
withWhen(Iterable<? extends ComponentDefinition.When> elements)
Copy the current immutable object with elements that replace the content of
when. |
public String getAction()
getAction in interface ComponentDefinition.PropertyRelationaction attributepublic List<ComponentDefinition.When> getWhen()
getWhen in interface ComponentDefinition.PropertyRelationwhen attributepublic final ImmutablePropertyRelation withAction(String value)
action attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for actionthis objectpublic final ImmutablePropertyRelation withWhen(ComponentDefinition.When... elements)
when.elements - The elements to setthis objectpublic final ImmutablePropertyRelation withWhen(Iterable<? extends ComponentDefinition.When> elements)
when.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of when elements to setthis objectpublic boolean equals(Object another)
ImmutablePropertyRelation that have equal attribute values.public int hashCode()
action, when.public String toString()
PropertyRelation with attribute values.public static ImmutablePropertyRelation copyOf(ComponentDefinition.PropertyRelation instance)
ComponentDefinition.PropertyRelation 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.