@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableArgumentMeta extends Object implements ArgumentMeta
ArgumentMeta.
Use the builder to create immutable instances:
ImmutableArgumentMeta.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableArgumentMeta.Builder
Builds instances of type
ImmutableArgumentMeta. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableArgumentMeta.Builder |
builder()
Creates a builder for
ImmutableArgumentMeta. |
static ImmutableArgumentMeta |
copyOf(ArgumentMeta instance)
Creates an immutable copy of a
ArgumentMeta value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableArgumentMeta that have equal attribute values. |
Optional<String> |
getName() |
String |
getType() |
int |
hashCode()
Computes a hash code from attributes:
type, name. |
String |
toString()
Prints the immutable value
ArgumentMeta with attribute values. |
ImmutableArgumentMeta |
withName(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
name attribute. |
ImmutableArgumentMeta |
withName(String value)
Copy the current immutable object by setting a present value for the optional
name attribute. |
ImmutableArgumentMeta |
withType(String value)
Copy the current immutable object by setting a value for the
type attribute. |
public String getType()
getType in interface ArgumentMetatype attributepublic Optional<String> getName()
getName in interface ArgumentMetaname attributepublic final ImmutableArgumentMeta withType(String value)
type attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for typethis objectpublic final ImmutableArgumentMeta withName(String value)
name attribute.value - The value for namethis objectpublic final ImmutableArgumentMeta withName(Optional<String> optional)
name attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for namethis objectpublic boolean equals(@Nullable Object another)
ImmutableArgumentMeta that have equal attribute values.public int hashCode()
type, name.public String toString()
ArgumentMeta with attribute values.public static ImmutableArgumentMeta copyOf(ArgumentMeta instance)
ArgumentMeta 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 copypublic static ImmutableArgumentMeta.Builder builder()
ImmutableArgumentMeta.
ImmutableArgumentMeta.builder()
.type(String) // required type
.name(String) // optional name
.build();
Copyright © 2019 Nuiton. All rights reserved.