You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sc...@apache.org on 2003/11/18 23:50:44 UTC
cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections/decorators UnmodifiableBoundedCollection.java
scolebourne 2003/11/18 14:50:44
Modified: collections/src/java/org/apache/commons/collections
BoundedCollection.java CollectionUtils.java
BoundedFifoBuffer.java
collections/src/java/org/apache/commons/collections/collection
UnmodifiableBoundedCollection.java
collections/src/java/org/apache/commons/collections/decorators
UnmodifiableBoundedCollection.java
Added: collections/src/java/org/apache/commons/collections/collection
BoundedCollection.java
Log:
Move BoundedCollection to new collection subpackage
Revision Changes Path
1.5 +4 -19 jakarta-commons/collections/src/java/org/apache/commons/collections/BoundedCollection.java
Index: BoundedCollection.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/BoundedCollection.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- BoundedCollection.java 7 Sep 2003 08:48:46 -0000 1.4
+++ BoundedCollection.java 18 Nov 2003 22:50:44 -0000 1.5
@@ -57,8 +57,6 @@
*/
package org.apache.commons.collections;
-import java.util.Collection;
-
/**
* A BoundedCollection is a collection that is bounded in size.
* <p>
@@ -66,26 +64,13 @@
* maximum number of elements. This interface allows the querying of details
* associated with the maximum number of elements.
*
+ * @deprecated TO BE DELETED BEFORE v3.0, moved to collection subpackage
* @since Commons Collections 3.0
* @version $Revision$ $Date$
*
* @author Herve Quiroz
* @author Stephen Colebourne
*/
-public interface BoundedCollection extends Collection {
+public interface BoundedCollection extends org.apache.commons.collections.collection.BoundedCollection {
- /**
- * Returns true if this collection is full and no new elements can be added.
- *
- * @return <code>true</code> if the collection is full
- */
- boolean isFull();
-
- /**
- * Gets the maximum size of the collection (the bound).
- *
- * @return the maximum number of elements the collection can hold
- */
- int maxSize();
-
}
1.47 +3 -2 jakarta-commons/collections/src/java/org/apache/commons/collections/CollectionUtils.java
Index: CollectionUtils.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/CollectionUtils.java,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- CollectionUtils.java 16 Nov 2003 00:05:44 -0000 1.46
+++ CollectionUtils.java 18 Nov 2003 22:50:44 -0000 1.47
@@ -69,6 +69,7 @@
import java.util.Map;
import java.util.Set;
+import org.apache.commons.collections.collection.BoundedCollection;
import org.apache.commons.collections.collection.PredicatedCollection;
import org.apache.commons.collections.collection.SynchronizedCollection;
import org.apache.commons.collections.collection.TransformedCollection;
1.11 +4 -2 jakarta-commons/collections/src/java/org/apache/commons/collections/BoundedFifoBuffer.java
Index: BoundedFifoBuffer.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/BoundedFifoBuffer.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- BoundedFifoBuffer.java 7 Sep 2003 08:48:46 -0000 1.10
+++ BoundedFifoBuffer.java 18 Nov 2003 22:50:44 -0000 1.11
@@ -63,6 +63,8 @@
import java.util.Iterator;
import java.util.NoSuchElementException;
+import org.apache.commons.collections.collection.BoundedCollection;
+
/**
* The BoundedFifoBuffer is a <strong>very</strong> efficient implementation of
* Buffer that does not alter the size of the buffer at runtime.
1.2 +2 -4 jakarta-commons/collections/src/java/org/apache/commons/collections/collection/UnmodifiableBoundedCollection.java
Index: UnmodifiableBoundedCollection.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/collection/UnmodifiableBoundedCollection.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- UnmodifiableBoundedCollection.java 16 Nov 2003 00:05:47 -0000 1.1
+++ UnmodifiableBoundedCollection.java 18 Nov 2003 22:50:44 -0000 1.2
@@ -59,8 +59,6 @@
import java.util.Collection;
-import org.apache.commons.collections.BoundedCollection;
-
/**
* <code>UnmodifiableBoundedCollection</code> decorates another <code>BoundedCollection</code>
* to ensure it can't be altered.
1.1 jakarta-commons/collections/src/java/org/apache/commons/collections/collection/BoundedCollection.java
Index: BoundedCollection.java
===================================================================
/*
* $Header: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/collection/BoundedCollection.java,v 1.1 2003/11/18 22:50:44 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 2002-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
* any, must include the following acknowledgement:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgement may appear in the software itself,
* if and wherever such third-party acknowledgements normally appear.
*
* 4. The names "The Jakarta Project", "Commons", and "Apache Software
* Foundation" must not be used to endorse or promote products derived
* from this software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache"
* nor may "Apache" appear in their names without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
package org.apache.commons.collections.collection;
import java.util.Collection;
/**
* A BoundedCollection is a collection that is bounded in size.
* <p>
* The size of the collection 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 Commons Collections 3.0
* @version $Revision: 1.1 $ $Date: 2003/11/18 22:50:44 $
*
* @author Herve Quiroz
* @author Stephen Colebourne
*/
public interface BoundedCollection extends Collection {
/**
* Returns true if this collection is full and no new elements can be added.
*
* @return <code>true</code> if the collection is full
*/
boolean isFull();
/**
* Gets the maximum size of the collection (the bound).
*
* @return the maximum number of elements the collection can hold
*/
int maxSize();
}
1.6 +3 -3 jakarta-commons/collections/src/java/org/apache/commons/collections/decorators/UnmodifiableBoundedCollection.java
Index: UnmodifiableBoundedCollection.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/decorators/UnmodifiableBoundedCollection.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- UnmodifiableBoundedCollection.java 16 Nov 2003 00:39:37 -0000 1.5
+++ UnmodifiableBoundedCollection.java 18 Nov 2003 22:50:44 -0000 1.6
@@ -59,7 +59,7 @@
import java.util.Collection;
-import org.apache.commons.collections.BoundedCollection;
+import org.apache.commons.collections.collection.BoundedCollection;
/**
* <code>UnmodifiableBoundedCollection</code> decorates another <code>BoundedCollection</code>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org