@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableSignature<T> extends Signature<T>
Signature.
Use the builder to create immutable instances:
ImmutableSignature.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableSignature.Builder<T>
Builds instances of type
ImmutableSignature. |
| Modifier and Type | Method and Description |
|---|---|
static <T> ImmutableSignature.Builder<T> |
builder(Class<T> returnType)
Creates a builder for
ImmutableSignature. |
static <T> ImmutableSignature<T> |
copyOf(Signature<T> instance)
Creates an immutable copy of a
Signature value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableSignature that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
parameters, isVarArg, returnType, minNumberOfArguments, maxNumberOfArguments. |
boolean |
isVarArg() |
int |
maxNumberOfArguments() |
int |
minNumberOfArguments() |
List<Parameter<?>> |
parameters() |
Class<T> |
returnType() |
String |
toString()
Prints the immutable value
Signature with attribute values. |
ImmutableSignature<T> |
withIsVarArg(boolean value)
Copy the current immutable object by setting a value for the
isVarArg attribute. |
ImmutableSignature<T> |
withParameters(Iterable<? extends Parameter<?>> elements)
Copy the current immutable object with elements that replace the content of
parameters. |
ImmutableSignature<T> |
withParameters(Parameter<?>... elements)
Copy the current immutable object with elements that replace the content of
parameters. |
ImmutableSignature<T> |
withReturnType(Class<T> value)
Copy the current immutable object by setting a value for the
returnType attribute. |
public List<Parameter<?>> parameters()
parameters in class Signature<T>parameters attributepublic boolean isVarArg()
public Class<T> returnType()
returnType in class Signature<T>returnType attributepublic int minNumberOfArguments()
minNumberOfArguments in class Signature<T>minNumberOfArguments attributepublic int maxNumberOfArguments()
maxNumberOfArguments in class Signature<T>maxNumberOfArguments attribute@SafeVarargs public final ImmutableSignature<T> withParameters(Parameter<?>... elements)
parameters.elements - The elements to setthis objectpublic final ImmutableSignature<T> withParameters(Iterable<? extends Parameter<?>> elements)
parameters.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of parameters elements to setthis objectpublic final ImmutableSignature<T> withIsVarArg(boolean value)
isVarArg attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isVarArgthis objectpublic final ImmutableSignature<T> withReturnType(Class<T> value)
returnType attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for returnTypethis objectpublic boolean equals(Object another)
ImmutableSignature that have equal attribute values.public int hashCode()
parameters, isVarArg, returnType, minNumberOfArguments, maxNumberOfArguments.public String toString()
Signature with attribute values.public static <T> ImmutableSignature<T> copyOf(Signature<T> instance)
Signature value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.T - generic parameter Tinstance - The instance to copypublic static <T> ImmutableSignature.Builder<T> builder(Class<T> returnType)
ImmutableSignature.
ImmutableSignature.<T>builder()
.addParameters|addAllParameters(de.flapdoodle.eval.core.evaluables.Parameter<?>) // parameters elements
.isVarArg(boolean) // optional isVarArg
.returnType(Class<T>) // required returnType
.build();
T - generic parameter TreturnType - returnType parameterCopyright © 2024. All rights reserved.