public interface CapacityPolicy
| Modifier and Type | Method and Description |
|---|---|
int |
ensureCapacity(int requiredCapacity,
int currentCapacity)
Ensuring the currentCapacity is save to accommodate new items that
totally defined as requiredCapacity.
|
int ensureCapacity(int requiredCapacity,
int currentCapacity)
requiredCapacity - is the required capacity.currentCapacity - is the current capacity.