Class PartitionHashBag<T>
- java.lang.Object
-
- org.eclipse.collections.impl.partition.bag.PartitionHashBag<T>
-
- All Implemented Interfaces:
PartitionBag<T>
,PartitionMutableBag<T>
,PartitionMutableBagIterable<T>
,PartitionUnsortedBag<T>
,PartitionIterable<T>
,PartitionMutableCollection<T>
public class PartitionHashBag<T> extends java.lang.Object implements PartitionMutableBag<T>
-
-
Field Summary
Fields Modifier and Type Field Description private MutableBag<T>
rejected
private MutableBag<T>
selected
-
Constructor Summary
Constructors Constructor Description PartitionHashBag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableBag<T>
getRejected()
MutableBag<T>
getSelected()
PartitionImmutableBag<T>
toImmutable()
-
-
-
Field Detail
-
selected
private final MutableBag<T> selected
-
rejected
private final MutableBag<T> rejected
-
-
Method Detail
-
getSelected
public MutableBag<T> getSelected()
- Specified by:
getSelected
in interfacePartitionBag<T>
- Specified by:
getSelected
in interfacePartitionIterable<T>
- Specified by:
getSelected
in interfacePartitionMutableBag<T>
- Specified by:
getSelected
in interfacePartitionMutableBagIterable<T>
- Specified by:
getSelected
in interfacePartitionMutableCollection<T>
- Specified by:
getSelected
in interfacePartitionUnsortedBag<T>
-
getRejected
public MutableBag<T> getRejected()
- Specified by:
getRejected
in interfacePartitionBag<T>
- Specified by:
getRejected
in interfacePartitionIterable<T>
- Specified by:
getRejected
in interfacePartitionMutableBag<T>
- Specified by:
getRejected
in interfacePartitionMutableBagIterable<T>
- Specified by:
getRejected
in interfacePartitionMutableCollection<T>
- Specified by:
getRejected
in interfacePartitionUnsortedBag<T>
-
toImmutable
public PartitionImmutableBag<T> toImmutable()
- Specified by:
toImmutable
in interfacePartitionMutableBag<T>
- Specified by:
toImmutable
in interfacePartitionMutableBagIterable<T>
- Specified by:
toImmutable
in interfacePartitionMutableCollection<T>
-
-