⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
org.apache.commons.collections

Interface BoundedMap

All Superinterfaces:
Map


public interface BoundedMap
implements Map

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.

Since:
Commons Collections 3.0
Author:
Stephen Colebourne

Method Summary

boolean

isFull()

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

int

maxSize()

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

Method Details

isFull

public boolean isFull()

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

Returns:
true if the map is full

maxSize

public int maxSize()

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

Returns:
the maximum number of elements the map can hold