public interface

BoundedMap

implements Map<K, V>
org.apache.commons.collections.BoundedMap
Known Indirect Subclasses

Class Overview

Defines a map that is bounded in size.

The size of the map 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 map is full and no new elements can be added.
abstract int maxSize()
Gets the maximum size of the map (the bound).
[Expand]
Inherited Methods
From interface java.util.Map

Public Methods

public abstract boolean isFull ()

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

Returns
  • true if the map is full

public abstract int maxSize ()

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

Returns
  • the maximum number of elements the map can hold