Top Description Methods
org.eclipse.collections.api.partition.bag

public Interface PartitionBag<T>

extends PartitionIterable<T>
Known Direct Subinterfaces
org.eclipse.collections.api.partition.bag.PartitionImmutableBagIterable, org.eclipse.collections.api.partition.bag.PartitionMutableBagIterable, org.eclipse.collections.api.partition.bag.PartitionUnsortedBag, org.eclipse.collections.api.partition.bag.sorted.PartitionSortedBag
Imports
org.eclipse.collections.api.bag.Bag, org.eclipse.collections.api.partition.PartitionIterable

A PartitionBag is the result of splitting a bag into two Bags based on a Predicate. The results that answer true for the Predicate will be returned from the getSelected() method and the results that answer false for the predicate will be returned from the getRejected() method.

Method Summary

Modifier and TypeMethod and Description
public Bag<T>
public Bag<T>

Method Detail

getRejectedback to summary
public Bag<T> getRejected()

Redeclares org.eclipse.collections.api.partition.PartitionIterable.getRejected.

Annotations
@Override
getSelectedback to summary
public Bag<T> getSelected()

Redeclares org.eclipse.collections.api.partition.PartitionIterable.getSelected.

Annotations
@Override