Class PartitionArrayStack<T>
- java.lang.Object
-
- org.eclipse.collections.impl.partition.stack.PartitionArrayStack<T>
-
- All Implemented Interfaces:
PartitionOrderedIterable<T>
,PartitionIterable<T>
,PartitionMutableStack<T>
,PartitionStack<T>
public class PartitionArrayStack<T> extends java.lang.Object implements PartitionMutableStack<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PartitionArrayStack.PartitionPredicate2Procedure<T,P>
static class
PartitionArrayStack.PartitionProcedure<T>
-
Field Summary
Fields Modifier and Type Field Description private MutableList<T>
rejected
private MutableList<T>
selected
-
Constructor Summary
Constructors Constructor Description PartitionArrayStack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(T t)
MutableStack<T>
getRejected()
MutableStack<T>
getSelected()
PartitionImmutableStack<T>
toImmutable()
-
-
-
Field Detail
-
selected
private final MutableList<T> selected
-
rejected
private final MutableList<T> rejected
-
-
Method Detail
-
getSelected
public MutableStack<T> getSelected()
- Specified by:
getSelected
in interfacePartitionIterable<T>
- Specified by:
getSelected
in interfacePartitionMutableStack<T>
- Specified by:
getSelected
in interfacePartitionOrderedIterable<T>
- Specified by:
getSelected
in interfacePartitionStack<T>
-
getRejected
public MutableStack<T> getRejected()
- Specified by:
getRejected
in interfacePartitionIterable<T>
- Specified by:
getRejected
in interfacePartitionMutableStack<T>
- Specified by:
getRejected
in interfacePartitionOrderedIterable<T>
- Specified by:
getRejected
in interfacePartitionStack<T>
-
toImmutable
public PartitionImmutableStack<T> toImmutable()
- Specified by:
toImmutable
in interfacePartitionMutableStack<T>
-
add
public void add(T t)
- Specified by:
add
in interfacePartitionMutableStack<T>
-
-