[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:
parent
9dbf8388c5
commit
f30855735a
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue