@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableWhen extends Object implements ComponentDefinition.When
ComponentDefinition.When.
Use the builder to create immutable instances:
new ImmutableWhen.Builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableWhen.Builder
Builds instances of type
ImmutableWhen. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableWhen |
copyOf(ComponentDefinition.When instance)
Creates an immutable copy of a
ComponentDefinition.When value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableWhen that have equal attribute values. |
String |
getId() |
String |
getValue() |
int |
hashCode()
Computes a hash code from attributes:
id, value. |
String |
toString()
Prints the immutable value
When with attribute values. |
ImmutableWhen |
withId(String value)
Copy the current immutable object by setting a value for the
id attribute. |
ImmutableWhen |
withValue(String value)
Copy the current immutable object by setting a value for the
value attribute. |
public String getId()
getId in interface ComponentDefinition.Whenid attributepublic String getValue()
getValue in interface ComponentDefinition.Whenvalue attributepublic final ImmutableWhen withId(String value)
id attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for idthis objectpublic final ImmutableWhen withValue(String value)
value attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for valuethis objectpublic boolean equals(Object another)
ImmutableWhen that have equal attribute values.public int hashCode()
id, value.public String toString()
When with attribute values.public static ImmutableWhen copyOf(ComponentDefinition.When instance)
ComponentDefinition.When 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.