commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1648957 - in /commons/proper/collections/trunk/src: changes/changes.xml main/java/org/apache/commons/collections4/queue/CircularFifoQueue.java
Date Thu, 01 Jan 2015 22:01:32 GMT
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;
     }
 



Mime
View raw message