Top Description Methods
org.apache.commons.collections4

public Interface BoundedMap<K, V>

extends IterableMap<K, V>
Known Direct Implementers
org.apache.commons.collections4.map.FixedSizeMap, org.apache.commons.collections4.map.FixedSizeSortedMap, org.apache.commons.collections4.map.LRUMap, org.apache.commons.collections4.map.SingletonMap
Type Parameters
<K>
the type of the keys in this map
<V>
the type of the values in this 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
3.0

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the map is full
isFull
()

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

public int

Returns:

the maximum number of elements the map can hold
maxSize
()

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

Method Detail

isFullback to summary
public boolean isFull()

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

Returns:boolean

true if the map is full

maxSizeback to summary
public int maxSize()

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

Returns:int

the maximum number of elements the map can hold