@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableAggregated<S,X> extends Aggregated<S,X>
Aggregated.
Use the static factory method to create immutable instances:
ImmutableAggregated.of().
| Modifier and Type | Method and Description |
|---|---|
protected FN1<List<S>,X> |
aggregation() |
static <S,X> ImmutableAggregated<S,X> |
copyOf(Aggregated<S,X> instance)
Creates an immutable copy of a
Aggregated value. |
Value<X> |
destination() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableAggregated that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
destination, sourceList, aggregation. |
static <S,X> ImmutableAggregated<S,X> |
of(Value<X> destination,
Iterable<? extends ValueSource<S>> sourceList,
FN1<List<S>,X> aggregation)
Construct a new immutable
Aggregated instance. |
static <S,X> ImmutableAggregated<S,X> |
of(Value<X> destination,
List<ValueSource<S>> sourceList,
FN1<List<S>,X> aggregation)
Construct a new immutable
Aggregated instance. |
protected com.google.common.collect.ImmutableList<ValueSource<S>> |
sourceList() |
String |
toString()
Prints the immutable value
Aggregated with attribute values. |
ImmutableAggregated<S,X> |
withAggregation(FN1<List<S>,X> value)
Copy the current immutable object by setting a value for the
aggregation attribute. |
ImmutableAggregated<S,X> |
withDestination(Value<X> value)
Copy the current immutable object by setting a value for the
destination attribute. |
ImmutableAggregated<S,X> |
withSourceList(Iterable<? extends ValueSource<S>> elements)
Copy the current immutable object with elements that replace the content of
sourceList. |
ImmutableAggregated<S,X> |
withSourceList(ValueSource<S>... elements)
Copy the current immutable object with elements that replace the content of
sourceList. |
asHumanReadable, calculate, sources, withclone, finalize, getClass, notify, notifyAll, wait, wait, waitasHumanReadableprotected com.google.common.collect.ImmutableList<ValueSource<S>> sourceList()
sourceList in class Aggregated<S,X>sourceList attributeprotected FN1<List<S>,X> aggregation()
aggregation in class Aggregated<S,X>aggregation attributepublic final ImmutableAggregated<S,X> withDestination(Value<X> value)
destination attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for destinationthis object@SafeVarargs public final ImmutableAggregated<S,X> withSourceList(ValueSource<S>... elements)
sourceList.elements - The elements to setthis objectpublic final ImmutableAggregated<S,X> withSourceList(Iterable<? extends ValueSource<S>> elements)
sourceList.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of sourceList elements to setthis objectpublic final ImmutableAggregated<S,X> withAggregation(FN1<List<S>,X> value)
aggregation attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for aggregationthis objectpublic boolean equals(@Nullable Object another)
ImmutableAggregated that have equal attribute values.public int hashCode()
destination, sourceList, aggregation.public String toString()
Aggregated with attribute values.public static <S,X> ImmutableAggregated<S,X> of(Value<X> destination, List<ValueSource<S>> sourceList, FN1<List<S>,X> aggregation)
Aggregated instance.S - generic parameter SX - generic parameter Xdestination - The value for the destination attributesourceList - The value for the sourceList attributeaggregation - The value for the aggregation attributepublic static <S,X> ImmutableAggregated<S,X> of(Value<X> destination, Iterable<? extends ValueSource<S>> sourceList, FN1<List<S>,X> aggregation)
Aggregated instance.S - generic parameter SX - generic parameter Xdestination - The value for the destination attributesourceList - The value for the sourceList attributeaggregation - The value for the aggregation attributepublic static <S,X> ImmutableAggregated<S,X> copyOf(Aggregated<S,X> instance)
Aggregated value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.S - generic parameter SX - generic parameter Xinstance - The instance to copyCopyright © 2023. All rights reserved.