E0
- type of items in bag-0E1
- type of items in bag-1public final class TwoBags<E0,E1> extends Object
Modifier and Type | Method and Description |
---|---|
Collection<E0> |
bag0()
Retrieves the bag at index 0.
|
Collection<E1> |
bag1()
Retrieves the bag at index 1.
|
void |
combineWith(TwoBags<E0,E1> that)
Combines this and the supplied container by merging all the supplied
container's data into this one.
|
boolean |
equals(Object o) |
int |
hashCode() |
static <E0,E1> TwoBags<E0,E1> |
twoBags()
Returns a new, empty
TwoBags container. |
static <E0,E1> TwoBags<E0,E1> |
twoBags(Collection<E0> bag0,
Collection<E1> bag1)
Returns a new
TwoBags container populated with the supplied
collections. |
@Nonnull public static <E0,E1> TwoBags<E0,E1> twoBags()
TwoBags
container.@Nonnull public static <E0,E1> TwoBags<E0,E1> twoBags(@Nonnull Collection<E0> bag0, @Nonnull Collection<E1> bag1)
TwoBags
container populated with the supplied
collections. Doesn't retain the supplied collections, but
copies them into newly created ones.@Nonnull public Collection<E0> bag0()
@Nonnull public Collection<E1> bag1()
public void combineWith(@Nonnull TwoBags<E0,E1> that)
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.