Class ImmutableProcedureMeta
java.lang.Object
org.nuiton.db.meta.ImmutableProcedureMeta
- All Implemented Interfaces:
ProcedureMeta
@Generated(from="ProcedureMeta",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableProcedureMeta
extends Object
implements ProcedureMeta
Immutable implementation of
ProcedureMeta.
Use the builder to create immutable instances:
ImmutableProcedureMeta.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableProcedureMeta. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableProcedureMeta.static ImmutableProcedureMetacopyOf(ProcedureMeta instance) Creates an immutable copy of aProcedureMetavalue.booleanThis instance is equal to all instances ofImmutableProcedureMetathat have equal attribute values.com.google.common.collect.ImmutableList<ArgumentMeta> getArgs()getName()inthashCode()Computes a hash code from attributes:name,args,comment.toString()Prints the immutable valueProcedureMetawith attribute values.final ImmutableProcedureMetawithArgs(Iterable<? extends ArgumentMeta> elements) Copy the current immutable object with elements that replace the content ofargs.final ImmutableProcedureMetawithArgs(ArgumentMeta... elements) Copy the current immutable object with elements that replace the content ofargs.final ImmutableProcedureMetawithComment(String value) Copy the current immutable object by setting a present value for the optionalcommentattribute.final ImmutableProcedureMetawithComment(Optional<String> optional) Copy the current immutable object by setting an optional value for thecommentattribute.final ImmutableProcedureMetaCopy the current immutable object by setting a value for thenameattribute.
-
Method Details
-
getName
- Specified by:
getNamein interfaceProcedureMeta- Returns:
- The value of the
nameattribute
-
getArgs
- Specified by:
getArgsin interfaceProcedureMeta- Returns:
- The value of the
argsattribute
-
getComment
- Specified by:
getCommentin interfaceProcedureMeta- Returns:
- The value of the
commentattribute
-
withName
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- Returns:
- A modified copy or the
thisobject
-
withArgs
Copy the current immutable object with elements that replace the content ofargs.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withArgs
Copy the current immutable object with elements that replace the content ofargs. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of args elements to set- Returns:
- A modified copy or
thisif not changed
-
withComment
Copy the current immutable object by setting a present value for the optionalcommentattribute.- Parameters:
value- The value for comment- Returns:
- A modified copy or
thisif not changed
-
withComment
Copy the current immutable object by setting an optional value for thecommentattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for comment- Returns:
- A modified copy or
thisif not changed
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aProcedureMetavalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable ProcedureMeta instance
-
builder
Creates a builder forImmutableProcedureMeta.ImmutableProcedureMeta.builder() .name(String) // required
name.addArgs|addAllArgs(org.nuiton.db.meta.ArgumentMeta) //argselements .comment(Optional<String>) // optionalcomment.build();- Returns:
- A new ImmutableProcedureMeta builder
-