(Collection<? extends V> clctn)
| 38 | } |
| 39 | |
| 40 | @Override |
| 41 | public boolean addAll(Collection<? extends V> clctn) |
| 42 | { |
| 43 | super.addAll(clctn); |
| 44 | while (size() > maxSize) |
| 45 | remove(last()); |
| 46 | return true; |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Returns the maximum size allowed for the bounded set |