The size of the collection can vary, but it can never exceed a preset maximum number of elements. This interface allows the querying of details associated with the maximum number of elements.
CollectionUtils#isFull, CollectionUtils#maxSize
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the collection is full.Returns true if this collection is full and no new elements can be added. |
| public int | Returns: the maximum number of elements the collection can hold.Gets the maximum size of the collection (the bound). |
| isFull | back to summary |
|---|---|
| public boolean isFull() Returns true if this collection is full and no new elements can be added.
| |
| maxSize | back to summary |
|---|---|
| public int maxSize() Gets the maximum size of the collection (the bound).
| |