Class PartitionTreeBag<T>
- java.lang.Object
-
- org.eclipse.collections.impl.partition.bag.sorted.PartitionTreeBag<T>
-
- All Implemented Interfaces:
PartitionBag<T>
,PartitionMutableBagIterable<T>
,PartitionMutableSortedBag<T>
,PartitionSortedBag<T>
,PartitionOrderedIterable<T>
,PartitionReversibleIterable<T>
,PartitionSortedIterable<T>
,PartitionIterable<T>
,PartitionMutableCollection<T>
public class PartitionTreeBag<T> extends java.lang.Object implements PartitionMutableSortedBag<T>
- Since:
- 4.2
-
-
Field Summary
Fields Modifier and Type Field Description private MutableSortedBag<T>
rejected
private MutableSortedBag<T>
selected
-
Constructor Summary
Constructors Constructor Description PartitionTreeBag(java.util.Comparator<? super T> comparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableSortedBag<T>
getRejected()
MutableSortedBag<T>
getSelected()
PartitionImmutableSortedBag<T>
toImmutable()
-
-
-
Field Detail
-
selected
private final MutableSortedBag<T> selected
-
rejected
private final MutableSortedBag<T> rejected
-
-
Constructor Detail
-
PartitionTreeBag
public PartitionTreeBag(java.util.Comparator<? super T> comparator)
-
-
Method Detail
-
getSelected
public MutableSortedBag<T> getSelected()
- Specified by:
getSelected
in interfacePartitionBag<T>
- Specified by:
getSelected
in interfacePartitionIterable<T>
- Specified by:
getSelected
in interfacePartitionMutableBagIterable<T>
- Specified by:
getSelected
in interfacePartitionMutableCollection<T>
- Specified by:
getSelected
in interfacePartitionMutableSortedBag<T>
- Specified by:
getSelected
in interfacePartitionOrderedIterable<T>
- Specified by:
getSelected
in interfacePartitionReversibleIterable<T>
- Specified by:
getSelected
in interfacePartitionSortedBag<T>
- Specified by:
getSelected
in interfacePartitionSortedIterable<T>
-
getRejected
public MutableSortedBag<T> getRejected()
- Specified by:
getRejected
in interfacePartitionBag<T>
- Specified by:
getRejected
in interfacePartitionIterable<T>
- Specified by:
getRejected
in interfacePartitionMutableBagIterable<T>
- Specified by:
getRejected
in interfacePartitionMutableCollection<T>
- Specified by:
getRejected
in interfacePartitionMutableSortedBag<T>
- Specified by:
getRejected
in interfacePartitionOrderedIterable<T>
- Specified by:
getRejected
in interfacePartitionReversibleIterable<T>
- Specified by:
getRejected
in interfacePartitionSortedBag<T>
- Specified by:
getRejected
in interfacePartitionSortedIterable<T>
-
toImmutable
public PartitionImmutableSortedBag<T> toImmutable()
- Specified by:
toImmutable
in interfacePartitionMutableBagIterable<T>
- Specified by:
toImmutable
in interfacePartitionMutableCollection<T>
- Specified by:
toImmutable
in interfacePartitionMutableSortedBag<T>
-
-