@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableProcedureMeta extends Object implements ProcedureMeta
ProcedureMeta.
Use the builder to create immutable instances:
ImmutableProcedureMeta.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableProcedureMeta.Builder
Builds instances of type
ImmutableProcedureMeta. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableProcedureMeta.Builder |
builder()
Creates a builder for
ImmutableProcedureMeta. |
static ImmutableProcedureMeta |
copyOf(ProcedureMeta instance)
Creates an immutable copy of a
ProcedureMeta value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableProcedureMeta that have equal attribute values. |
com.google.common.collect.ImmutableList<ArgumentMeta> |
getArgs() |
Optional<String> |
getComment() |
String |
getName() |
int |
hashCode()
Computes a hash code from attributes:
name, args, comment. |
String |
toString()
Prints the immutable value
ProcedureMeta with attribute values. |
ImmutableProcedureMeta |
withArgs(ArgumentMeta... elements)
Copy the current immutable object with elements that replace the content of
args. |
ImmutableProcedureMeta |
withArgs(Iterable<? extends ArgumentMeta> elements)
Copy the current immutable object with elements that replace the content of
args. |
ImmutableProcedureMeta |
withComment(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
comment attribute. |
ImmutableProcedureMeta |
withComment(String value)
Copy the current immutable object by setting a present value for the optional
comment attribute. |
ImmutableProcedureMeta |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
public String getName()
getName in interface ProcedureMetaname attributepublic com.google.common.collect.ImmutableList<ArgumentMeta> getArgs()
getArgs in interface ProcedureMetaargs attributepublic Optional<String> getComment()
getComment in interface ProcedureMetacomment attributepublic final ImmutableProcedureMeta withName(String value)
name attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for namethis objectpublic final ImmutableProcedureMeta withArgs(ArgumentMeta... elements)
args.elements - The elements to setthis objectpublic final ImmutableProcedureMeta withArgs(Iterable<? extends ArgumentMeta> elements)
args.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of args elements to setthis objectpublic final ImmutableProcedureMeta withComment(String value)
comment attribute.value - The value for commentthis objectpublic final ImmutableProcedureMeta withComment(Optional<String> optional)
comment attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for commentthis objectpublic boolean equals(@Nullable Object another)
ImmutableProcedureMeta that have equal attribute values.public int hashCode()
name, args, comment.public String toString()
ProcedureMeta with attribute values.public static ImmutableProcedureMeta copyOf(ProcedureMeta instance)
ProcedureMeta 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 ImmutableProcedureMeta.Builder builder()
ImmutableProcedureMeta.
ImmutableProcedureMeta.builder()
.name(String) // required name
.addArgs|addAllArgs(org.nuiton.db.meta.ArgumentMeta) // args elements
.comment(String) // optional comment
.build();
Copyright © 2019 Nuiton. All rights reserved.