public class PartitionArrayStack<T> extends Object implements PartitionMutableStack<T>
Modifier and Type | Class and Description |
---|---|
static class |
PartitionArrayStack.PartitionPredicate2Procedure<T,P> |
static class |
PartitionArrayStack.PartitionProcedure<T> |
Constructor and Description |
---|
PartitionArrayStack() |
Modifier and Type | Method and Description |
---|---|
void |
add(T t) |
MutableStack<T> |
getRejected() |
MutableStack<T> |
getSelected() |
PartitionImmutableStack<T> |
toImmutable() |
public MutableStack<T> getSelected()
getSelected
in interface PartitionIterable<T>
getSelected
in interface PartitionMutableStack<T>
getSelected
in interface PartitionStack<T>
public MutableStack<T> getRejected()
getRejected
in interface PartitionIterable<T>
getRejected
in interface PartitionMutableStack<T>
getRejected
in interface PartitionStack<T>
public PartitionImmutableStack<T> toImmutable()
toImmutable
in interface PartitionMutableStack<T>
public void add(T t)
add
in interface PartitionMutableStack<T>
Copyright © 2004–2016. All rights reserved.