public class NamedStacksUniformSize extends Object
NamedStacks
but enforces a condition that all stacks must have the same dimensions.Constructor and Description |
---|
NamedStacksUniformSize() |
Modifier and Type | Method and Description |
---|---|
void |
add(String identifier,
Stack stack)
Adds an element to the store.
|
NamedStacks |
asNamedStacks()
Exposes the stacks as a
NamedStacks . |
public void add(String identifier, Stack stack) throws OperationFailedException
identifier
- a unique identifier for the element.stack
- the stack to add.OperationFailedException
- if the identifier already exists, or otherwise the add
operation fails.public NamedStacks asNamedStacks()
NamedStacks
.NamedStacks
.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.