You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tn...@apache.org on 2015/01/01 23:01:32 UTC
svn commit: r1648957 - in /commons/proper/collections/trunk/src:
changes/changes.xml
main/java/org/apache/commons/collections4/queue/CircularFifoQueue.java
Author: tn
Date: Thu Jan 1 22:01:31 2015
New Revision: 1648957
URL: http://svn.apache.org/r1648957
Log:
[COLLECTIONS-539] Changed scope of CircularFifoQueue.isAtFullCapacity to public.
Modified:
commons/proper/collections/trunk/src/changes/changes.xml
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/queue/CircularFifoQueue.java
Modified: commons/proper/collections/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/changes/changes.xml?rev=1648957&r1=1648956&r2=1648957&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/changes/changes.xml (original)
+++ commons/proper/collections/trunk/src/changes/changes.xml Thu Jan 1 22:01:31 2015
@@ -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.
Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/queue/CircularFifoQueue.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/queue/CircularFifoQueue.java?rev=1648957&r1=1648956&r2=1648957&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/queue/CircularFifoQueue.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/queue/CircularFifoQueue.java Thu Jan 1 22:01:31 2015
@@ -189,7 +189,14 @@ public class CircularFifoQueue<E> extend
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;
}