Class NamedStacksUniformSize
Object
NamedStacksUniformSize
Like
NamedStacks but enforces a condition that all stacks must have the same dimensions.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an element to the store.Exposes the stacks as aNamedStacks.
-
Constructor Details
-
NamedStacksUniformSize
public NamedStacksUniformSize()
-
-
Method Details
-
add
Adds an element to the store.- Parameters:
identifier- a unique identifier for the element.stack- the stack to add.- Throws:
OperationFailedException- if the identifier already exists, or otherwise the add operation fails.
-
asNamedStacks
Exposes the stacks as aNamedStacks.- Returns:
- an interface as
NamedStacks.
-