Class ImmutableArgumentMeta
java.lang.Object
org.nuiton.db.meta.ImmutableArgumentMeta
- All Implemented Interfaces:
ArgumentMeta
@Generated(from="ArgumentMeta",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableArgumentMeta
extends Object
implements ArgumentMeta
Immutable implementation of
ArgumentMeta.
Use the builder to create immutable instances:
ImmutableArgumentMeta.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableArgumentMeta. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableArgumentMeta.static ImmutableArgumentMetacopyOf(ArgumentMeta instance) Creates an immutable copy of aArgumentMetavalue.booleanThis instance is equal to all instances ofImmutableArgumentMetathat have equal attribute values.getName()getType()inthashCode()Computes a hash code from attributes:type,name.toString()Prints the immutable valueArgumentMetawith attribute values.final ImmutableArgumentMetaCopy the current immutable object by setting a present value for the optionalnameattribute.final ImmutableArgumentMetaCopy the current immutable object by setting an optional value for thenameattribute.final ImmutableArgumentMetaCopy the current immutable object by setting a value for thetypeattribute.
-
Method Details
-
getType
- Specified by:
getTypein interfaceArgumentMeta- Returns:
- The value of the
typeattribute
-
getName
- Specified by:
getNamein interfaceArgumentMeta- Returns:
- The value of the
nameattribute
-
withType
Copy the current immutable object by setting a value for thetypeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy or the
thisobject
-
withName
Copy the current immutable object by setting a present value for the optionalnameattribute.- Parameters:
value- The value for name- Returns:
- A modified copy or
thisif not changed
-
withName
Copy the current immutable object by setting an optional value for thenameattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for name- Returns:
- A modified copy or
thisif not changed
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aArgumentMetavalue. 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 ArgumentMeta instance
-
builder
Creates a builder forImmutableArgumentMeta.ImmutableArgumentMeta.builder() .type(String) // required
type.name(Optional<String>) // optionalname.build();- Returns:
- A new ImmutableArgumentMeta builder
-