T - public class PickAnyAccumulator<T> extends Object
AggregateOperations.pickAny() aggregate operation. It maintains the
 count of accumulated items so that it can properly set its value to
 null when all the items are deducted.| Constructor and Description | 
|---|
| PickAnyAccumulator()Constructs an empty  pickAnyaccumulator. | 
| PickAnyAccumulator(T value,
                  long count)Constructs a  pickAnyaccumulator with the full state passed in
 the parameters. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | accumulate(T t)Accumulates an item. | 
| void | combine(PickAnyAccumulator<T> other)Combines another accumulator with this one. | 
| long | count()Returns the count of accumulated objects. | 
| void | deduct(PickAnyAccumulator<T> other)Deducts another accumulator from this one. | 
| boolean | equals(Object o) | 
| T | get()Returns the picked object. | 
| int | hashCode() | 
| String | toString() | 
public PickAnyAccumulator()
pickAny accumulator.public PickAnyAccumulator(T value, long count)
pickAny accumulator with the full state passed in
 the parameters.value - the picked objectcount - the count of accumulated objectspublic void combine(@Nonnull PickAnyAccumulator<T> other)
public void deduct(@Nonnull PickAnyAccumulator<T> other)
public T get()
public long count()
Copyright © 2022 Hazelcast, Inc.. All rights reserved.