[COLLECTIONS-539] Changed scope of CircularFifoQueue.isAtFullCapacity to public.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1648957 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2015-01-01 22:01:31 +00:00
parent 9dbf8388c5
commit f30855735a
2 changed files with 11 additions and 1 deletions

View File

@ -22,6 +22,9 @@
<body>
<release version="4.1" date="TBD" description="">
<action issue="COLLECTIONS-539" dev="tn" type="add" due-to="Guram Savinov">
Changed scope of "CircularFifoQueue#isAtFullCapacity()" to public.
</action>
<action issue="COLLECTIONS-525" dev="tn" type="fix" due-to="Zigler Zhang">
The map returned by "PatriciaTrie#prefixMap()" did not contain all keys
that are prefixed by the given search key in some rare cases.

View File

@ -189,7 +189,14 @@ public class CircularFifoQueue<E> extends AbstractCollection<E>
return false;
}
private boolean isAtFullCapacity() {
/**
* Returns {@code true} if the capacity limit of this queue has been reached,
* i.e. the number of elements stored in the queue equals its maximum size.
*
* @return {@code true} if the capacity limit has been reached, {@code false} otherwise
* @since 4.1
*/
public boolean isAtFullCapacity() {
return size() == maxElements;
}