@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableF2WithLabel<A,B,R> extends F2.F2WithLabel<A,B,R>
F2.F2WithLabel.
Use the builder to create immutable instances:
ImmutableF2WithLabel.builder().
Use the static factory method to create immutable instances:
ImmutableF2WithLabel.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableF2WithLabel.Builder<A,B,R>
Builds instances of type
ImmutableF2WithLabel. |
F2.F2WithLabel<A,B,R>| Modifier and Type | Method and Description |
|---|---|
static <A,B,R> ImmutableF2WithLabel.Builder<A,B,R> |
builder()
Creates a builder for
ImmutableF2WithLabel. |
static <A,B,R> ImmutableF2WithLabel<A,B,R> |
copyOf(F2.F2WithLabel<A,B,R> instance)
Creates an immutable copy of a
F2.F2WithLabel value. |
protected F2<A,B,R> |
delegate() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableF2WithLabel that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
delegate, label. |
protected String |
label() |
static <A,B,R> ImmutableF2WithLabel<A,B,R> |
of(F2<A,B,R> delegate,
String label)
Construct a new immutable
F2WithLabel instance. |
String |
toString()
Prints the immutable value
F2WithLabel with attribute values. |
ImmutableF2WithLabel<A,B,R> |
withDelegate(F2<A,B,R> value)
Copy the current immutable object by setting a value for the
delegate attribute. |
ImmutableF2WithLabel<A,B,R> |
withLabel(String value)
Copy the current immutable object by setting a value for the
label attribute. |
apply, asHumanReadableclone, finalize, getClass, notify, notifyAll, wait, wait, waitandThenasHumanReadableprotected F2<A,B,R> delegate()
delegate in class F2.F2WithLabel<A,B,R>delegate attributeprotected String label()
label in class F2.F2WithLabel<A,B,R>label attributepublic final ImmutableF2WithLabel<A,B,R> withDelegate(F2<A,B,R> value)
delegate attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for delegatethis objectpublic final ImmutableF2WithLabel<A,B,R> withLabel(String value)
label attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for labelthis objectpublic boolean equals(@Nullable Object another)
ImmutableF2WithLabel that have equal attribute values.public int hashCode()
delegate, label.public String toString()
F2WithLabel with attribute values.public static <A,B,R> ImmutableF2WithLabel<A,B,R> of(F2<A,B,R> delegate, String label)
F2WithLabel instance.A - generic parameter AB - generic parameter BR - generic parameter Rdelegate - The value for the delegate attributelabel - The value for the label attributepublic static <A,B,R> ImmutableF2WithLabel<A,B,R> copyOf(F2.F2WithLabel<A,B,R> instance)
F2.F2WithLabel value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.A - generic parameter AB - generic parameter BR - generic parameter Rinstance - The instance to copypublic static <A,B,R> ImmutableF2WithLabel.Builder<A,B,R> builder()
ImmutableF2WithLabel.
ImmutableF2WithLabel.<A, B, R>builder()
.delegate(de.flapdoodle.formula.calculate.functions.F2<A, B, R>) // required delegate
.label(String) // required label
.build();
A - generic parameter AB - generic parameter BR - generic parameter RCopyright © 2023. All rights reserved.