E0
- type of items in bag-0E1
- type of items in bag-1E2
- type of items in bag-2public final class ThreeBags<E0,E1,E2> 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.
|
Collection<E2> |
bag2()
Retrieves the bag at index 2.
|
void |
combineWith(ThreeBags<E0,E1,E2> 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,E2> ThreeBags<E0,E1,E2> |
threeBags()
Returns a new, empty
ThreeBags container. |
static <E0,E1,E2> ThreeBags<E0,E1,E2> |
threeBags(Collection<E0> bag0,
Collection<E1> bag1,
Collection<E2> bag2)
Returns a new
ThreeBags container populated with the supplied
collections. |
String |
toString() |
@Nonnull public static <E0,E1,E2> ThreeBags<E0,E1,E2> threeBags()
ThreeBags
container.@Nonnull public static <E0,E1,E2> ThreeBags<E0,E1,E2> threeBags(@Nonnull Collection<E0> bag0, @Nonnull Collection<E1> bag1, @Nonnull Collection<E2> bag2)
ThreeBags
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()
@Nonnull public Collection<E2> bag2()
public void combineWith(@Nonnull ThreeBags<E0,E1,E2> that)
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.