public interface

BoundedCollection

implements Collection<E>
org.apache.commons.collections.BoundedCollection
Known Indirect Subclasses

Class Overview

Defines a collection that is bounded in size.

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.

Summary

Public Methods
abstract boolean isFull()
Returns true if this collection is full and no new elements can be added.
abstract int maxSize()
Gets the maximum size of the collection (the bound).
[Expand]
Inherited Methods
From interface java.lang.Iterable
From interface java.util.Collection

Public Methods

public abstract boolean isFull ()

Returns true if this collection is full and no new elements can be added.

Returns
  • true if the collection is full

public abstract int maxSize ()

Gets the maximum size of the collection (the bound).

Returns
  • the maximum number of elements the collection can hold