diff --git a/findbugs-exclude-filter.xml b/findbugs-exclude-filter.xml
index 934ec0f02..cf2bb2c62 100644
--- a/findbugs-exclude-filter.xml
+++ b/findbugs-exclude-filter.xml
@@ -25,7 +25,7 @@
-
+
@@ -45,7 +45,7 @@
-
+
@@ -53,15 +53,15 @@
-
-
+
+
-
+
diff --git a/src/main/java/org/apache/commons/collections/ArrayStack.java b/src/main/java/org/apache/commons/collections4/ArrayStack.java
similarity index 99%
rename from src/main/java/org/apache/commons/collections/ArrayStack.java
rename to src/main/java/org/apache/commons/collections4/ArrayStack.java
index 43ecbeb73..d46fb7917 100644
--- a/src/main/java/org/apache/commons/collections/ArrayStack.java
+++ b/src/main/java/org/apache/commons/collections4/ArrayStack.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.util.ArrayList;
import java.util.EmptyStackException;
diff --git a/src/main/java/org/apache/commons/collections/Bag.java b/src/main/java/org/apache/commons/collections4/Bag.java
similarity index 99%
rename from src/main/java/org/apache/commons/collections/Bag.java
rename to src/main/java/org/apache/commons/collections4/Bag.java
index 8b528a6a8..5b8c14842 100644
--- a/src/main/java/org/apache/commons/collections/Bag.java
+++ b/src/main/java/org/apache/commons/collections4/Bag.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.util.Collection;
import java.util.Iterator;
diff --git a/src/main/java/org/apache/commons/collections/BagUtils.java b/src/main/java/org/apache/commons/collections4/BagUtils.java
similarity index 93%
rename from src/main/java/org/apache/commons/collections/BagUtils.java
rename to src/main/java/org/apache/commons/collections4/BagUtils.java
index 3c4f3c54d..8657e4e04 100644
--- a/src/main/java/org/apache/commons/collections/BagUtils.java
+++ b/src/main/java/org/apache/commons/collections4/BagUtils.java
@@ -14,18 +14,18 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
-import org.apache.commons.collections.bag.HashBag;
-import org.apache.commons.collections.bag.PredicatedBag;
-import org.apache.commons.collections.bag.PredicatedSortedBag;
-import org.apache.commons.collections.bag.SynchronizedBag;
-import org.apache.commons.collections.bag.SynchronizedSortedBag;
-import org.apache.commons.collections.bag.TransformedBag;
-import org.apache.commons.collections.bag.TransformedSortedBag;
-import org.apache.commons.collections.bag.TreeBag;
-import org.apache.commons.collections.bag.UnmodifiableBag;
-import org.apache.commons.collections.bag.UnmodifiableSortedBag;
+import org.apache.commons.collections4.bag.HashBag;
+import org.apache.commons.collections4.bag.PredicatedBag;
+import org.apache.commons.collections4.bag.PredicatedSortedBag;
+import org.apache.commons.collections4.bag.SynchronizedBag;
+import org.apache.commons.collections4.bag.SynchronizedSortedBag;
+import org.apache.commons.collections4.bag.TransformedBag;
+import org.apache.commons.collections4.bag.TransformedSortedBag;
+import org.apache.commons.collections4.bag.TreeBag;
+import org.apache.commons.collections4.bag.UnmodifiableBag;
+import org.apache.commons.collections4.bag.UnmodifiableSortedBag;
/**
* Provides utility methods and decorators for {@link Bag} and {@link SortedBag} instances.
diff --git a/src/main/java/org/apache/commons/collections/BidiMap.java b/src/main/java/org/apache/commons/collections4/BidiMap.java
similarity index 99%
rename from src/main/java/org/apache/commons/collections/BidiMap.java
rename to src/main/java/org/apache/commons/collections4/BidiMap.java
index 6bfe4df45..5c5f0dc58 100644
--- a/src/main/java/org/apache/commons/collections/BidiMap.java
+++ b/src/main/java/org/apache/commons/collections4/BidiMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
/**
* Defines a map that allows bidirectional lookup between key and values.
diff --git a/src/main/java/org/apache/commons/collections/BoundedCollection.java b/src/main/java/org/apache/commons/collections4/BoundedCollection.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/BoundedCollection.java
rename to src/main/java/org/apache/commons/collections4/BoundedCollection.java
index 381f1ab38..0853c7377 100644
--- a/src/main/java/org/apache/commons/collections/BoundedCollection.java
+++ b/src/main/java/org/apache/commons/collections4/BoundedCollection.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.util.Collection;
diff --git a/src/main/java/org/apache/commons/collections/BoundedMap.java b/src/main/java/org/apache/commons/collections4/BoundedMap.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/BoundedMap.java
rename to src/main/java/org/apache/commons/collections4/BoundedMap.java
index 8c4edf36f..597e93c2c 100644
--- a/src/main/java/org/apache/commons/collections/BoundedMap.java
+++ b/src/main/java/org/apache/commons/collections4/BoundedMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
/**
* Defines a map that is bounded in size.
diff --git a/src/main/java/org/apache/commons/collections/Closure.java b/src/main/java/org/apache/commons/collections4/Closure.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/Closure.java
rename to src/main/java/org/apache/commons/collections4/Closure.java
index ec5dde43c..046326a26 100644
--- a/src/main/java/org/apache/commons/collections/Closure.java
+++ b/src/main/java/org/apache/commons/collections4/Closure.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
/**
* Defines a functor interface implemented by classes that do something.
diff --git a/src/main/java/org/apache/commons/collections/ClosureUtils.java b/src/main/java/org/apache/commons/collections4/ClosureUtils.java
similarity index 88%
rename from src/main/java/org/apache/commons/collections/ClosureUtils.java
rename to src/main/java/org/apache/commons/collections4/ClosureUtils.java
index b7ca4e8a4..0528b7bf2 100644
--- a/src/main/java/org/apache/commons/collections/ClosureUtils.java
+++ b/src/main/java/org/apache/commons/collections4/ClosureUtils.java
@@ -14,21 +14,21 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.util.Collection;
import java.util.Map;
-import org.apache.commons.collections.functors.ChainedClosure;
-import org.apache.commons.collections.functors.EqualPredicate;
-import org.apache.commons.collections.functors.ExceptionClosure;
-import org.apache.commons.collections.functors.ForClosure;
-import org.apache.commons.collections.functors.IfClosure;
-import org.apache.commons.collections.functors.InvokerTransformer;
-import org.apache.commons.collections.functors.NOPClosure;
-import org.apache.commons.collections.functors.SwitchClosure;
-import org.apache.commons.collections.functors.TransformerClosure;
-import org.apache.commons.collections.functors.WhileClosure;
+import org.apache.commons.collections4.functors.ChainedClosure;
+import org.apache.commons.collections4.functors.EqualPredicate;
+import org.apache.commons.collections4.functors.ExceptionClosure;
+import org.apache.commons.collections4.functors.ForClosure;
+import org.apache.commons.collections4.functors.IfClosure;
+import org.apache.commons.collections4.functors.InvokerTransformer;
+import org.apache.commons.collections4.functors.NOPClosure;
+import org.apache.commons.collections4.functors.SwitchClosure;
+import org.apache.commons.collections4.functors.TransformerClosure;
+import org.apache.commons.collections4.functors.WhileClosure;
/**
* ClosureUtils provides reference implementations and utilities
@@ -61,7 +61,7 @@ public class ClosureUtils {
* Gets a Closure that always throws an exception.
* This could be useful during testing as a placeholder.
*
- * @see org.apache.commons.collections.functors.ExceptionClosure
+ * @see org.apache.commons.collections4.functors.ExceptionClosure
*
* @param the type that the closure acts on
* @return the closure
@@ -74,7 +74,7 @@ public class ClosureUtils {
* Gets a Closure that will do nothing.
* This could be useful during testing as a placeholder.
*
- * @see org.apache.commons.collections.functors.NOPClosure
+ * @see org.apache.commons.collections4.functors.NOPClosure
*
* @param the type that the closure acts on
* @return the closure
@@ -88,7 +88,7 @@ public class ClosureUtils {
* The transformer will be called using the closure's input object.
* The transformer's result will be ignored.
*
- * @see org.apache.commons.collections.functors.TransformerClosure
+ * @see org.apache.commons.collections4.functors.TransformerClosure
*
* @param the type that the closure acts on
* @param transformer the transformer to run each time in the closure, null means nop
@@ -103,7 +103,7 @@ public class ClosureUtils {
*
* A null closure or zero count returns the NOPClosure.
*
- * @see org.apache.commons.collections.functors.ForClosure
+ * @see org.apache.commons.collections4.functors.ForClosure
*
* @param the type that the closure acts on
* @param count the number of times to loop
@@ -118,7 +118,7 @@ public class ClosureUtils {
* Creates a Closure that will call the closure repeatedly until the
* predicate returns false.
*
- * @see org.apache.commons.collections.functors.WhileClosure
+ * @see org.apache.commons.collections4.functors.WhileClosure
*
* @param the type that the closure acts on
* @param predicate the predicate to use as an end of loop test, not null
@@ -134,7 +134,7 @@ public class ClosureUtils {
* Creates a Closure that will call the closure once and then repeatedly
* until the predicate returns false.
*
- * @see org.apache.commons.collections.functors.WhileClosure
+ * @see org.apache.commons.collections4.functors.WhileClosure
*
* @param the type that the closure acts on
* @param closure the closure to call repeatedly, not null
@@ -151,8 +151,8 @@ public class ClosureUtils {
* Creates a Closure that will invoke a specific method on the closure's
* input object by reflection.
*
- * @see org.apache.commons.collections.functors.InvokerTransformer
- * @see org.apache.commons.collections.functors.TransformerClosure
+ * @see org.apache.commons.collections4.functors.InvokerTransformer
+ * @see org.apache.commons.collections4.functors.TransformerClosure
*
* @param the type that the closure acts on
* @param methodName the name of the method
@@ -168,8 +168,8 @@ public class ClosureUtils {
* Creates a Closure that will invoke a specific method on the closure's
* input object by reflection.
*
- * @see org.apache.commons.collections.functors.InvokerTransformer
- * @see org.apache.commons.collections.functors.TransformerClosure
+ * @see org.apache.commons.collections4.functors.InvokerTransformer
+ * @see org.apache.commons.collections4.functors.TransformerClosure
*
* @param the type that the closure acts on
* @param methodName the name of the method
@@ -189,7 +189,7 @@ public class ClosureUtils {
* Create a new Closure that calls two Closures, passing the result of
* the first into the second.
*
- * @see org.apache.commons.collections.functors.ChainedClosure
+ * @see org.apache.commons.collections4.functors.ChainedClosure
*
* @param the type that the closure acts on
* @param closure1 the first closure
@@ -205,7 +205,7 @@ public class ClosureUtils {
* Create a new Closure that calls each closure in turn, passing the
* result into the next closure.
*
- * @see org.apache.commons.collections.functors.ChainedClosure
+ * @see org.apache.commons.collections4.functors.ChainedClosure
*
* @param the type that the closure acts on
* @param closures an array of closures to chain
@@ -222,7 +222,7 @@ public class ClosureUtils {
* result into the next closure. The ordering is that of the iterator()
* method on the collection.
*
- * @see org.apache.commons.collections.functors.ChainedClosure
+ * @see org.apache.commons.collections4.functors.ChainedClosure
*
* @param the type that the closure acts on
* @param closures a collection of closures to chain
@@ -239,7 +239,7 @@ public class ClosureUtils {
* Create a new Closure that calls another closure based on the
* result of the specified predicate.
*
- * @see org.apache.commons.collections.functors.IfClosure
+ * @see org.apache.commons.collections4.functors.IfClosure
*
* @param the type that the closure acts on
* @param predicate the validating predicate
@@ -258,7 +258,7 @@ public class ClosureUtils {
* Create a new Closure that calls one of two closures depending
* on the specified predicate.
*
- * @see org.apache.commons.collections.functors.IfClosure
+ * @see org.apache.commons.collections4.functors.IfClosure
*
* @param the type that the closure acts on
* @param predicate the predicate to switch on
@@ -282,7 +282,7 @@ public class ClosureUtils {
* location 0 returned true. Each predicate is evaluated
* until one returns true.
*
- * @see org.apache.commons.collections.functors.SwitchClosure
+ * @see org.apache.commons.collections4.functors.SwitchClosure
*
* @param the type that the closure acts on
* @param predicates an array of predicates to check, not null
@@ -306,7 +306,7 @@ public class ClosureUtils {
* until one returns true. If no predicates evaluate to true, the default
* closure is called.
*
- * @see org.apache.commons.collections.functors.SwitchClosure
+ * @see org.apache.commons.collections4.functors.SwitchClosure
*
* @param the type that the closure acts on
* @param predicates an array of predicates to check, not null
@@ -334,7 +334,7 @@ public class ClosureUtils {
* null key. The ordering is that of the iterator() method on the entryset
* collection of the map.
*
- * @see org.apache.commons.collections.functors.SwitchClosure
+ * @see org.apache.commons.collections4.functors.SwitchClosure
*
* @param the type that the closure acts on
* @param predicatesAndClosures a map of predicates to closures
@@ -357,7 +357,7 @@ public class ClosureUtils {
* default closure is called. The default closure is set in the map
* using a null key.
*
- * @see org.apache.commons.collections.functors.SwitchClosure
+ * @see org.apache.commons.collections4.functors.SwitchClosure
*
* @param the type that the closure acts on
* @param objectsAndClosures a map of objects to closures
diff --git a/src/main/java/org/apache/commons/collections/CollectionUtils.java b/src/main/java/org/apache/commons/collections4/CollectionUtils.java
similarity index 99%
rename from src/main/java/org/apache/commons/collections/CollectionUtils.java
rename to src/main/java/org/apache/commons/collections4/CollectionUtils.java
index 6053af435..b3a5a12cc 100644
--- a/src/main/java/org/apache/commons/collections/CollectionUtils.java
+++ b/src/main/java/org/apache/commons/collections4/CollectionUtils.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.lang.reflect.Array;
import java.util.ArrayList;
@@ -28,14 +28,14 @@ import java.util.ListIterator;
import java.util.Map;
import java.util.Set;
-import org.apache.commons.collections.bag.HashBag;
-import org.apache.commons.collections.collection.PredicatedCollection;
-import org.apache.commons.collections.collection.SynchronizedCollection;
-import org.apache.commons.collections.collection.TransformedCollection;
-import org.apache.commons.collections.collection.UnmodifiableBoundedCollection;
-import org.apache.commons.collections.collection.UnmodifiableCollection;
-import org.apache.commons.collections.functors.Equator;
-import org.apache.commons.collections.functors.TruePredicate;
+import org.apache.commons.collections4.bag.HashBag;
+import org.apache.commons.collections4.collection.PredicatedCollection;
+import org.apache.commons.collections4.collection.SynchronizedCollection;
+import org.apache.commons.collections4.collection.TransformedCollection;
+import org.apache.commons.collections4.collection.UnmodifiableBoundedCollection;
+import org.apache.commons.collections4.collection.UnmodifiableCollection;
+import org.apache.commons.collections4.functors.Equator;
+import org.apache.commons.collections4.functors.TruePredicate;
/**
* Provides utility methods and decorators for {@link Collection} instances.
diff --git a/src/main/java/org/apache/commons/collections/ComparatorUtils.java b/src/main/java/org/apache/commons/collections4/ComparatorUtils.java
similarity index 95%
rename from src/main/java/org/apache/commons/collections/ComparatorUtils.java
rename to src/main/java/org/apache/commons/collections4/ComparatorUtils.java
index ab4b30a81..db4ff7b8a 100644
--- a/src/main/java/org/apache/commons/collections/ComparatorUtils.java
+++ b/src/main/java/org/apache/commons/collections4/ComparatorUtils.java
@@ -14,17 +14,17 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.util.Collection;
import java.util.Comparator;
-import org.apache.commons.collections.comparators.BooleanComparator;
-import org.apache.commons.collections.comparators.ComparableComparator;
-import org.apache.commons.collections.comparators.ComparatorChain;
-import org.apache.commons.collections.comparators.NullComparator;
-import org.apache.commons.collections.comparators.ReverseComparator;
-import org.apache.commons.collections.comparators.TransformingComparator;
+import org.apache.commons.collections4.comparators.BooleanComparator;
+import org.apache.commons.collections4.comparators.ComparableComparator;
+import org.apache.commons.collections4.comparators.ComparatorChain;
+import org.apache.commons.collections4.comparators.NullComparator;
+import org.apache.commons.collections4.comparators.ReverseComparator;
+import org.apache.commons.collections4.comparators.TransformingComparator;
/**
* Provides convenient static utility methods for Comparator
diff --git a/src/main/java/org/apache/commons/collections/EnumerationUtils.java b/src/main/java/org/apache/commons/collections4/EnumerationUtils.java
similarity index 95%
rename from src/main/java/org/apache/commons/collections/EnumerationUtils.java
rename to src/main/java/org/apache/commons/collections4/EnumerationUtils.java
index c2d5f42c7..98d86ec99 100644
--- a/src/main/java/org/apache/commons/collections/EnumerationUtils.java
+++ b/src/main/java/org/apache/commons/collections4/EnumerationUtils.java
@@ -14,14 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import java.util.StringTokenizer;
-import org.apache.commons.collections.iterators.EnumerationIterator;
+import org.apache.commons.collections4.iterators.EnumerationIterator;
/**
* Provides utility methods for {@link Enumeration} instances.
diff --git a/src/main/java/org/apache/commons/collections/Factory.java b/src/main/java/org/apache/commons/collections4/Factory.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/Factory.java
rename to src/main/java/org/apache/commons/collections4/Factory.java
index be6ee00fe..b11202440 100644
--- a/src/main/java/org/apache/commons/collections/Factory.java
+++ b/src/main/java/org/apache/commons/collections4/Factory.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
/**
* Defines a functor interface implemented by classes that create objects.
diff --git a/src/main/java/org/apache/commons/collections/FactoryUtils.java b/src/main/java/org/apache/commons/collections4/FactoryUtils.java
similarity index 87%
rename from src/main/java/org/apache/commons/collections/FactoryUtils.java
rename to src/main/java/org/apache/commons/collections4/FactoryUtils.java
index a0fddaade..1c8acc0b8 100644
--- a/src/main/java/org/apache/commons/collections/FactoryUtils.java
+++ b/src/main/java/org/apache/commons/collections4/FactoryUtils.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
-import org.apache.commons.collections.functors.ConstantFactory;
-import org.apache.commons.collections.functors.InstantiateFactory;
-import org.apache.commons.collections.functors.ExceptionFactory;
-import org.apache.commons.collections.functors.PrototypeFactory;
+import org.apache.commons.collections4.functors.ConstantFactory;
+import org.apache.commons.collections4.functors.ExceptionFactory;
+import org.apache.commons.collections4.functors.InstantiateFactory;
+import org.apache.commons.collections4.functors.PrototypeFactory;
/**
* FactoryUtils provides reference implementations and utilities
@@ -47,7 +47,7 @@ public class FactoryUtils {
* Gets a Factory that always throws an exception.
* This could be useful during testing as a placeholder.
*
- * @see org.apache.commons.collections.functors.ExceptionFactory
+ * @see org.apache.commons.collections4.functors.ExceptionFactory
*
* @param the type that the factory creates
* @return the factory
@@ -60,7 +60,7 @@ public class FactoryUtils {
* Gets a Factory that will return null each time the factory is used.
* This could be useful during testing as a placeholder.
*
- * @see org.apache.commons.collections.functors.ConstantFactory
+ * @see org.apache.commons.collections4.functors.ConstantFactory
* @param the "type" of null object the factory should return.
* @return the factory
*/
@@ -74,7 +74,7 @@ public class FactoryUtils {
* immutable objects should use the constant factory. Mutable objects should
* use the prototype factory.
*
- * @see org.apache.commons.collections.functors.ConstantFactory
+ * @see org.apache.commons.collections4.functors.ConstantFactory
*
* @param the type that the factory creates
* @param constantToReturn the constant object to return each time in the factory
@@ -94,7 +94,7 @@ public class FactoryUtils {
*
serialization clone
*
*
- * @see org.apache.commons.collections.functors.PrototypeFactory
+ * @see org.apache.commons.collections4.functors.PrototypeFactory
*
* @param the type that the factory creates
* @param prototype the object to clone each time in the factory
@@ -110,7 +110,7 @@ public class FactoryUtils {
* Creates a Factory that can create objects of a specific type using
* a no-args constructor.
*
- * @see org.apache.commons.collections.functors.InstantiateFactory
+ * @see org.apache.commons.collections4.functors.InstantiateFactory
*
* @param the type that the factory creates
* @param classToInstantiate the Class to instantiate each time in the factory
@@ -125,7 +125,7 @@ public class FactoryUtils {
* Creates a Factory that can create objects of a specific type using
* the arguments specified to this method.
*
- * @see org.apache.commons.collections.functors.InstantiateFactory
+ * @see org.apache.commons.collections4.functors.InstantiateFactory
*
* @param the type that the factory creates
* @param classToInstantiate the Class to instantiate each time in the factory
diff --git a/src/main/java/org/apache/commons/collections/FunctorException.java b/src/main/java/org/apache/commons/collections4/FunctorException.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/FunctorException.java
rename to src/main/java/org/apache/commons/collections4/FunctorException.java
index 8f01657d5..d3c32fcd0 100644
--- a/src/main/java/org/apache/commons/collections/FunctorException.java
+++ b/src/main/java/org/apache/commons/collections4/FunctorException.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
/**
* Runtime exception thrown from functors.
diff --git a/src/main/java/org/apache/commons/collections/Get.java b/src/main/java/org/apache/commons/collections4/Get.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/Get.java
rename to src/main/java/org/apache/commons/collections4/Get.java
index cad8fe9c9..8af5a74e7 100644
--- a/src/main/java/org/apache/commons/collections/Get.java
+++ b/src/main/java/org/apache/commons/collections4/Get.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.util.Collection;
import java.util.Set;
diff --git a/src/main/java/org/apache/commons/collections/IterableGet.java b/src/main/java/org/apache/commons/collections4/IterableGet.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/IterableGet.java
rename to src/main/java/org/apache/commons/collections4/IterableGet.java
index 6ca4e58fc..9f018e57c 100644
--- a/src/main/java/org/apache/commons/collections/IterableGet.java
+++ b/src/main/java/org/apache/commons/collections4/IterableGet.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
/**
* The "read" subset of the {@link java.util.Map} interface.
diff --git a/src/main/java/org/apache/commons/collections/IterableMap.java b/src/main/java/org/apache/commons/collections4/IterableMap.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/IterableMap.java
rename to src/main/java/org/apache/commons/collections4/IterableMap.java
index c0818c259..9169561b0 100644
--- a/src/main/java/org/apache/commons/collections/IterableMap.java
+++ b/src/main/java/org/apache/commons/collections4/IterableMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.util.Map;
diff --git a/src/main/java/org/apache/commons/collections/IterableSortedMap.java b/src/main/java/org/apache/commons/collections4/IterableSortedMap.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/IterableSortedMap.java
rename to src/main/java/org/apache/commons/collections4/IterableSortedMap.java
index 4fc162b01..460bfd235 100644
--- a/src/main/java/org/apache/commons/collections/IterableSortedMap.java
+++ b/src/main/java/org/apache/commons/collections4/IterableSortedMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.util.SortedMap;
diff --git a/src/main/java/org/apache/commons/collections/IteratorUtils.java b/src/main/java/org/apache/commons/collections4/IteratorUtils.java
similarity index 95%
rename from src/main/java/org/apache/commons/collections/IteratorUtils.java
rename to src/main/java/org/apache/commons/collections4/IteratorUtils.java
index d6d908450..676d406c7 100644
--- a/src/main/java/org/apache/commons/collections/IteratorUtils.java
+++ b/src/main/java/org/apache/commons/collections4/IteratorUtils.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.lang.reflect.Array;
import java.lang.reflect.InvocationTargetException;
@@ -29,33 +29,33 @@ import java.util.List;
import java.util.ListIterator;
import java.util.Map;
-import org.apache.commons.collections.iterators.ArrayIterator;
-import org.apache.commons.collections.iterators.ArrayListIterator;
-import org.apache.commons.collections.iterators.CollatingIterator;
-import org.apache.commons.collections.iterators.EmptyIterator;
-import org.apache.commons.collections.iterators.EmptyListIterator;
-import org.apache.commons.collections.iterators.EmptyMapIterator;
-import org.apache.commons.collections.iterators.EmptyOrderedIterator;
-import org.apache.commons.collections.iterators.EmptyOrderedMapIterator;
-import org.apache.commons.collections.iterators.EnumerationIterator;
-import org.apache.commons.collections.iterators.FilterIterator;
-import org.apache.commons.collections.iterators.FilterListIterator;
-import org.apache.commons.collections.iterators.IteratorChain;
-import org.apache.commons.collections.iterators.IteratorEnumeration;
-import org.apache.commons.collections.iterators.IteratorIterable;
-import org.apache.commons.collections.iterators.ListIteratorWrapper;
-import org.apache.commons.collections.iterators.LoopingIterator;
-import org.apache.commons.collections.iterators.LoopingListIterator;
-import org.apache.commons.collections.iterators.NodeListIterator;
-import org.apache.commons.collections.iterators.ObjectArrayIterator;
-import org.apache.commons.collections.iterators.ObjectArrayListIterator;
-import org.apache.commons.collections.iterators.ObjectGraphIterator;
-import org.apache.commons.collections.iterators.SingletonIterator;
-import org.apache.commons.collections.iterators.SingletonListIterator;
-import org.apache.commons.collections.iterators.TransformIterator;
-import org.apache.commons.collections.iterators.UnmodifiableIterator;
-import org.apache.commons.collections.iterators.UnmodifiableListIterator;
-import org.apache.commons.collections.iterators.UnmodifiableMapIterator;
+import org.apache.commons.collections4.iterators.ArrayIterator;
+import org.apache.commons.collections4.iterators.ArrayListIterator;
+import org.apache.commons.collections4.iterators.CollatingIterator;
+import org.apache.commons.collections4.iterators.EmptyIterator;
+import org.apache.commons.collections4.iterators.EmptyListIterator;
+import org.apache.commons.collections4.iterators.EmptyMapIterator;
+import org.apache.commons.collections4.iterators.EmptyOrderedIterator;
+import org.apache.commons.collections4.iterators.EmptyOrderedMapIterator;
+import org.apache.commons.collections4.iterators.EnumerationIterator;
+import org.apache.commons.collections4.iterators.FilterIterator;
+import org.apache.commons.collections4.iterators.FilterListIterator;
+import org.apache.commons.collections4.iterators.IteratorChain;
+import org.apache.commons.collections4.iterators.IteratorEnumeration;
+import org.apache.commons.collections4.iterators.IteratorIterable;
+import org.apache.commons.collections4.iterators.ListIteratorWrapper;
+import org.apache.commons.collections4.iterators.LoopingIterator;
+import org.apache.commons.collections4.iterators.LoopingListIterator;
+import org.apache.commons.collections4.iterators.NodeListIterator;
+import org.apache.commons.collections4.iterators.ObjectArrayIterator;
+import org.apache.commons.collections4.iterators.ObjectArrayListIterator;
+import org.apache.commons.collections4.iterators.ObjectGraphIterator;
+import org.apache.commons.collections4.iterators.SingletonIterator;
+import org.apache.commons.collections4.iterators.SingletonListIterator;
+import org.apache.commons.collections4.iterators.TransformIterator;
+import org.apache.commons.collections4.iterators.UnmodifiableIterator;
+import org.apache.commons.collections4.iterators.UnmodifiableListIterator;
+import org.apache.commons.collections4.iterators.UnmodifiableMapIterator;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
diff --git a/src/main/java/org/apache/commons/collections/KeyValue.java b/src/main/java/org/apache/commons/collections4/KeyValue.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/KeyValue.java
rename to src/main/java/org/apache/commons/collections4/KeyValue.java
index 7b6ad0965..d2728f290 100644
--- a/src/main/java/org/apache/commons/collections/KeyValue.java
+++ b/src/main/java/org/apache/commons/collections4/KeyValue.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
/**
* Defines a simple key value pair.
diff --git a/src/main/java/org/apache/commons/collections/ListUtils.java b/src/main/java/org/apache/commons/collections4/ListUtils.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/ListUtils.java
rename to src/main/java/org/apache/commons/collections4/ListUtils.java
index c82b69160..96de85e8e 100644
--- a/src/main/java/org/apache/commons/collections/ListUtils.java
+++ b/src/main/java/org/apache/commons/collections4/ListUtils.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.util.AbstractList;
import java.util.ArrayList;
@@ -24,12 +24,12 @@ import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
-import org.apache.commons.collections.bag.HashBag;
-import org.apache.commons.collections.list.FixedSizeList;
-import org.apache.commons.collections.list.LazyList;
-import org.apache.commons.collections.list.PredicatedList;
-import org.apache.commons.collections.list.TransformedList;
-import org.apache.commons.collections.list.UnmodifiableList;
+import org.apache.commons.collections4.bag.HashBag;
+import org.apache.commons.collections4.list.FixedSizeList;
+import org.apache.commons.collections4.list.LazyList;
+import org.apache.commons.collections4.list.PredicatedList;
+import org.apache.commons.collections4.list.TransformedList;
+import org.apache.commons.collections4.list.UnmodifiableList;
/**
* Provides utility methods and decorators for {@link List} instances.
diff --git a/src/main/java/org/apache/commons/collections/MapIterator.java b/src/main/java/org/apache/commons/collections4/MapIterator.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/MapIterator.java
rename to src/main/java/org/apache/commons/collections4/MapIterator.java
index 4a2fa2a74..6c6d36f6b 100644
--- a/src/main/java/org/apache/commons/collections/MapIterator.java
+++ b/src/main/java/org/apache/commons/collections4/MapIterator.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.util.Iterator;
diff --git a/src/main/java/org/apache/commons/collections/MapUtils.java b/src/main/java/org/apache/commons/collections4/MapUtils.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/MapUtils.java
rename to src/main/java/org/apache/commons/collections4/MapUtils.java
index e88b2fe88..3eb507890 100644
--- a/src/main/java/org/apache/commons/collections/MapUtils.java
+++ b/src/main/java/org/apache/commons/collections4/MapUtils.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.io.PrintStream;
import java.text.NumberFormat;
@@ -31,20 +31,20 @@ import java.util.ResourceBundle;
import java.util.SortedMap;
import java.util.TreeMap;
-import org.apache.commons.collections.map.AbstractMapDecorator;
-import org.apache.commons.collections.map.AbstractSortedMapDecorator;
-import org.apache.commons.collections.map.FixedSizeMap;
-import org.apache.commons.collections.map.FixedSizeSortedMap;
-import org.apache.commons.collections.map.LazyMap;
-import org.apache.commons.collections.map.LazySortedMap;
-import org.apache.commons.collections.map.ListOrderedMap;
-import org.apache.commons.collections.map.MultiValueMap;
-import org.apache.commons.collections.map.PredicatedMap;
-import org.apache.commons.collections.map.PredicatedSortedMap;
-import org.apache.commons.collections.map.TransformedMap;
-import org.apache.commons.collections.map.TransformedSortedMap;
-import org.apache.commons.collections.map.UnmodifiableMap;
-import org.apache.commons.collections.map.UnmodifiableSortedMap;
+import org.apache.commons.collections4.map.AbstractMapDecorator;
+import org.apache.commons.collections4.map.AbstractSortedMapDecorator;
+import org.apache.commons.collections4.map.FixedSizeMap;
+import org.apache.commons.collections4.map.FixedSizeSortedMap;
+import org.apache.commons.collections4.map.LazyMap;
+import org.apache.commons.collections4.map.LazySortedMap;
+import org.apache.commons.collections4.map.ListOrderedMap;
+import org.apache.commons.collections4.map.MultiValueMap;
+import org.apache.commons.collections4.map.PredicatedMap;
+import org.apache.commons.collections4.map.PredicatedSortedMap;
+import org.apache.commons.collections4.map.TransformedMap;
+import org.apache.commons.collections4.map.TransformedSortedMap;
+import org.apache.commons.collections4.map.UnmodifiableMap;
+import org.apache.commons.collections4.map.UnmodifiableSortedMap;
/**
* Provides utility methods and decorators for
diff --git a/src/main/java/org/apache/commons/collections/MultiMap.java b/src/main/java/org/apache/commons/collections4/MultiMap.java
similarity index 99%
rename from src/main/java/org/apache/commons/collections/MultiMap.java
rename to src/main/java/org/apache/commons/collections4/MultiMap.java
index 3cfd2a967..fb7e2da61 100644
--- a/src/main/java/org/apache/commons/collections/MultiMap.java
+++ b/src/main/java/org/apache/commons/collections4/MultiMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.util.Collection;
diff --git a/src/main/java/org/apache/commons/collections/OrderedBidiMap.java b/src/main/java/org/apache/commons/collections4/OrderedBidiMap.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/OrderedBidiMap.java
rename to src/main/java/org/apache/commons/collections4/OrderedBidiMap.java
index 8b90fb801..c9266342c 100644
--- a/src/main/java/org/apache/commons/collections/OrderedBidiMap.java
+++ b/src/main/java/org/apache/commons/collections4/OrderedBidiMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
/**
* Defines a map that allows bidirectional lookup between key and values
diff --git a/src/main/java/org/apache/commons/collections/OrderedIterator.java b/src/main/java/org/apache/commons/collections4/OrderedIterator.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/OrderedIterator.java
rename to src/main/java/org/apache/commons/collections4/OrderedIterator.java
index d6339aa1c..64890236e 100644
--- a/src/main/java/org/apache/commons/collections/OrderedIterator.java
+++ b/src/main/java/org/apache/commons/collections4/OrderedIterator.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.util.Iterator;
diff --git a/src/main/java/org/apache/commons/collections/OrderedMap.java b/src/main/java/org/apache/commons/collections4/OrderedMap.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/OrderedMap.java
rename to src/main/java/org/apache/commons/collections4/OrderedMap.java
index 71b6c6ea9..f73a35eec 100644
--- a/src/main/java/org/apache/commons/collections/OrderedMap.java
+++ b/src/main/java/org/apache/commons/collections4/OrderedMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
/**
* Defines a map that maintains order and allows both forward and backward
diff --git a/src/main/java/org/apache/commons/collections/OrderedMapIterator.java b/src/main/java/org/apache/commons/collections4/OrderedMapIterator.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/OrderedMapIterator.java
rename to src/main/java/org/apache/commons/collections4/OrderedMapIterator.java
index 24de17137..5f22f5d41 100644
--- a/src/main/java/org/apache/commons/collections/OrderedMapIterator.java
+++ b/src/main/java/org/apache/commons/collections4/OrderedMapIterator.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
/**
* Defines an iterator that operates over an ordered Map.
diff --git a/src/main/java/org/apache/commons/collections/Predicate.java b/src/main/java/org/apache/commons/collections4/Predicate.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/Predicate.java
rename to src/main/java/org/apache/commons/collections4/Predicate.java
index c0baf7250..983d78bd3 100644
--- a/src/main/java/org/apache/commons/collections/Predicate.java
+++ b/src/main/java/org/apache/commons/collections4/Predicate.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
/**
* Defines a functor interface implemented by classes that perform a predicate
diff --git a/src/main/java/org/apache/commons/collections/PredicateUtils.java b/src/main/java/org/apache/commons/collections4/PredicateUtils.java
similarity index 85%
rename from src/main/java/org/apache/commons/collections/PredicateUtils.java
rename to src/main/java/org/apache/commons/collections4/PredicateUtils.java
index 19beaa554..bab7e4e42 100644
--- a/src/main/java/org/apache/commons/collections/PredicateUtils.java
+++ b/src/main/java/org/apache/commons/collections4/PredicateUtils.java
@@ -14,32 +14,32 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.util.Collection;
-import org.apache.commons.collections.functors.AllPredicate;
-import org.apache.commons.collections.functors.AndPredicate;
-import org.apache.commons.collections.functors.AnyPredicate;
-import org.apache.commons.collections.functors.EqualPredicate;
-import org.apache.commons.collections.functors.ExceptionPredicate;
-import org.apache.commons.collections.functors.FalsePredicate;
-import org.apache.commons.collections.functors.IdentityPredicate;
-import org.apache.commons.collections.functors.InstanceofPredicate;
-import org.apache.commons.collections.functors.InvokerTransformer;
-import org.apache.commons.collections.functors.NonePredicate;
-import org.apache.commons.collections.functors.NotNullPredicate;
-import org.apache.commons.collections.functors.NotPredicate;
-import org.apache.commons.collections.functors.NullIsExceptionPredicate;
-import org.apache.commons.collections.functors.NullIsFalsePredicate;
-import org.apache.commons.collections.functors.NullIsTruePredicate;
-import org.apache.commons.collections.functors.NullPredicate;
-import org.apache.commons.collections.functors.OnePredicate;
-import org.apache.commons.collections.functors.OrPredicate;
-import org.apache.commons.collections.functors.TransformedPredicate;
-import org.apache.commons.collections.functors.TransformerPredicate;
-import org.apache.commons.collections.functors.TruePredicate;
-import org.apache.commons.collections.functors.UniquePredicate;
+import org.apache.commons.collections4.functors.AllPredicate;
+import org.apache.commons.collections4.functors.AndPredicate;
+import org.apache.commons.collections4.functors.AnyPredicate;
+import org.apache.commons.collections4.functors.EqualPredicate;
+import org.apache.commons.collections4.functors.ExceptionPredicate;
+import org.apache.commons.collections4.functors.FalsePredicate;
+import org.apache.commons.collections4.functors.IdentityPredicate;
+import org.apache.commons.collections4.functors.InstanceofPredicate;
+import org.apache.commons.collections4.functors.InvokerTransformer;
+import org.apache.commons.collections4.functors.NonePredicate;
+import org.apache.commons.collections4.functors.NotNullPredicate;
+import org.apache.commons.collections4.functors.NotPredicate;
+import org.apache.commons.collections4.functors.NullIsExceptionPredicate;
+import org.apache.commons.collections4.functors.NullIsFalsePredicate;
+import org.apache.commons.collections4.functors.NullIsTruePredicate;
+import org.apache.commons.collections4.functors.NullPredicate;
+import org.apache.commons.collections4.functors.OnePredicate;
+import org.apache.commons.collections4.functors.OrPredicate;
+import org.apache.commons.collections4.functors.TransformedPredicate;
+import org.apache.commons.collections4.functors.TransformerPredicate;
+import org.apache.commons.collections4.functors.TruePredicate;
+import org.apache.commons.collections4.functors.UniquePredicate;
/**
* PredicateUtils provides reference implementations and utilities
@@ -85,7 +85,7 @@ public class PredicateUtils {
*
* @param the type that the predicate queries
* @return the predicate
- * @see org.apache.commons.collections.functors.ExceptionPredicate
+ * @see org.apache.commons.collections4.functors.ExceptionPredicate
*/
public static Predicate exceptionPredicate() {
return ExceptionPredicate.exceptionPredicate();
@@ -96,7 +96,7 @@ public class PredicateUtils {
*
* @param the type that the predicate queries
* @return the predicate
- * @see org.apache.commons.collections.functors.TruePredicate
+ * @see org.apache.commons.collections4.functors.TruePredicate
*/
public static Predicate truePredicate() {
return TruePredicate.truePredicate();
@@ -107,7 +107,7 @@ public class PredicateUtils {
*
* @param the type that the predicate queries
* @return the predicate
- * @see org.apache.commons.collections.functors.FalsePredicate
+ * @see org.apache.commons.collections4.functors.FalsePredicate
*/
public static Predicate falsePredicate() {
return FalsePredicate. falsePredicate();
@@ -118,7 +118,7 @@ public class PredicateUtils {
*
* @param the type that the predicate queries
* @return the predicate
- * @see org.apache.commons.collections.functors.NullPredicate
+ * @see org.apache.commons.collections4.functors.NullPredicate
*/
public static Predicate nullPredicate() {
return NullPredicate.nullPredicate();
@@ -129,7 +129,7 @@ public class PredicateUtils {
*
* @param the type that the predicate queries
* @return the predicate
- * @see org.apache.commons.collections.functors.NotNullPredicate
+ * @see org.apache.commons.collections4.functors.NotNullPredicate
*/
public static Predicate notNullPredicate() {
return NotNullPredicate.notNullPredicate();
@@ -142,7 +142,7 @@ public class PredicateUtils {
* @param the type that the predicate queries
* @param value the value to compare against
* @return the predicate
- * @see org.apache.commons.collections.functors.EqualPredicate
+ * @see org.apache.commons.collections4.functors.EqualPredicate
*/
public static Predicate equalPredicate(final T value) {
return EqualPredicate.equalPredicate(value);
@@ -155,7 +155,7 @@ public class PredicateUtils {
* @param the type that the predicate queries
* @param value the value to compare against
* @return the predicate
- * @see org.apache.commons.collections.functors.IdentityPredicate
+ * @see org.apache.commons.collections4.functors.IdentityPredicate
*/
public static Predicate identityPredicate(final T value) {
return IdentityPredicate.identityPredicate(value);
@@ -169,7 +169,7 @@ public class PredicateUtils {
* @param type the type to check for, may not be null
* @return the predicate
* @throws IllegalArgumentException if the class is null
- * @see org.apache.commons.collections.functors.InstanceofPredicate
+ * @see org.apache.commons.collections4.functors.InstanceofPredicate
*/
public static Predicate
*
- * @see org.apache.commons.collections.Predicate#evaluate(java.lang.Object)
+ * @see org.apache.commons.collections4.Predicate#evaluate(java.lang.Object)
* @see java.util.Comparator#compare(java.lang.Object first, java.lang.Object second)
*
* @param target the target object to compare to
diff --git a/src/main/java/org/apache/commons/collections/functors/ConstantFactory.java b/src/main/java/org/apache/commons/collections4/functors/ConstantFactory.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/functors/ConstantFactory.java
rename to src/main/java/org/apache/commons/collections4/functors/ConstantFactory.java
index b992167af..02851b712 100644
--- a/src/main/java/org/apache/commons/collections/functors/ConstantFactory.java
+++ b/src/main/java/org/apache/commons/collections4/functors/ConstantFactory.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
-import org.apache.commons.collections.Factory;
+import org.apache.commons.collections4.Factory;
/**
* Factory implementation that returns the same constant each time.
diff --git a/src/main/java/org/apache/commons/collections/functors/ConstantTransformer.java b/src/main/java/org/apache/commons/collections4/functors/ConstantTransformer.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/functors/ConstantTransformer.java
rename to src/main/java/org/apache/commons/collections4/functors/ConstantTransformer.java
index db6f7f99c..d35e650e4 100644
--- a/src/main/java/org/apache/commons/collections/functors/ConstantTransformer.java
+++ b/src/main/java/org/apache/commons/collections4/functors/ConstantTransformer.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
-import org.apache.commons.collections.Transformer;
+import org.apache.commons.collections4.Transformer;
/**
* Transformer implementation that returns the same constant each time.
diff --git a/src/main/java/org/apache/commons/collections/functors/DefaultEquator.java b/src/main/java/org/apache/commons/collections4/functors/DefaultEquator.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/functors/DefaultEquator.java
rename to src/main/java/org/apache/commons/collections4/functors/DefaultEquator.java
index c03b3df15..4cbc9bb41 100644
--- a/src/main/java/org/apache/commons/collections/functors/DefaultEquator.java
+++ b/src/main/java/org/apache/commons/collections4/functors/DefaultEquator.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
/**
* Default {@link Equator} implementation.
diff --git a/src/main/java/org/apache/commons/collections/functors/EqualPredicate.java b/src/main/java/org/apache/commons/collections4/functors/EqualPredicate.java
similarity index 95%
rename from src/main/java/org/apache/commons/collections/functors/EqualPredicate.java
rename to src/main/java/org/apache/commons/collections4/functors/EqualPredicate.java
index 70a703c67..a34297cd1 100644
--- a/src/main/java/org/apache/commons/collections/functors/EqualPredicate.java
+++ b/src/main/java/org/apache/commons/collections4/functors/EqualPredicate.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
-import static org.apache.commons.collections.functors.NullPredicate.nullPredicate;
+import static org.apache.commons.collections4.functors.NullPredicate.nullPredicate;
import java.io.Serializable;
-import org.apache.commons.collections.Predicate;
+import org.apache.commons.collections4.Predicate;
/**
* Predicate implementation that returns true if the input is the same object
diff --git a/src/main/java/org/apache/commons/collections/functors/Equator.java b/src/main/java/org/apache/commons/collections4/functors/Equator.java
similarity index 92%
rename from src/main/java/org/apache/commons/collections/functors/Equator.java
rename to src/main/java/org/apache/commons/collections4/functors/Equator.java
index 5efb0a07d..4a721b7ed 100644
--- a/src/main/java/org/apache/commons/collections/functors/Equator.java
+++ b/src/main/java/org/apache/commons/collections4/functors/Equator.java
@@ -8,7 +8,7 @@
* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
* for the specific language governing permissions and limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
/**
*
@@ -37,7 +37,7 @@ public interface Equator {
* Calculates the hash for the object, based on the method of equality used in the equate
* method. This is used for classes that delegate their {@link Object#equals(Object) equals(Object)} method to an
* Equator (and so must also delegate their {@link Object#hashCode() hashCode()} method), or for implementations
- * of {@link org.apache.commons.collections.map.HashedMap} that use an Equator for the key objects.
+ * of {@link org.apache.commons.collections4.map.HashedMap} that use an Equator for the key objects.
*
* @param o the object to calculate the hash for.
* @return the hash of the object.
diff --git a/src/main/java/org/apache/commons/collections/functors/ExceptionClosure.java b/src/main/java/org/apache/commons/collections4/functors/ExceptionClosure.java
similarity index 92%
rename from src/main/java/org/apache/commons/collections/functors/ExceptionClosure.java
rename to src/main/java/org/apache/commons/collections4/functors/ExceptionClosure.java
index abd1c260d..5703dcc33 100644
--- a/src/main/java/org/apache/commons/collections/functors/ExceptionClosure.java
+++ b/src/main/java/org/apache/commons/collections4/functors/ExceptionClosure.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
-import org.apache.commons.collections.Closure;
-import org.apache.commons.collections.FunctorException;
+import org.apache.commons.collections4.Closure;
+import org.apache.commons.collections4.FunctorException;
/**
* Closure implementation that always throws an exception.
diff --git a/src/main/java/org/apache/commons/collections/functors/ExceptionFactory.java b/src/main/java/org/apache/commons/collections4/functors/ExceptionFactory.java
similarity index 92%
rename from src/main/java/org/apache/commons/collections/functors/ExceptionFactory.java
rename to src/main/java/org/apache/commons/collections4/functors/ExceptionFactory.java
index 02509961b..6071158de 100644
--- a/src/main/java/org/apache/commons/collections/functors/ExceptionFactory.java
+++ b/src/main/java/org/apache/commons/collections4/functors/ExceptionFactory.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
-import org.apache.commons.collections.Factory;
-import org.apache.commons.collections.FunctorException;
+import org.apache.commons.collections4.Factory;
+import org.apache.commons.collections4.FunctorException;
/**
* Factory implementation that always throws an exception.
diff --git a/src/main/java/org/apache/commons/collections/functors/ExceptionPredicate.java b/src/main/java/org/apache/commons/collections4/functors/ExceptionPredicate.java
similarity index 92%
rename from src/main/java/org/apache/commons/collections/functors/ExceptionPredicate.java
rename to src/main/java/org/apache/commons/collections4/functors/ExceptionPredicate.java
index 1bb16bdec..f1b47b909 100644
--- a/src/main/java/org/apache/commons/collections/functors/ExceptionPredicate.java
+++ b/src/main/java/org/apache/commons/collections4/functors/ExceptionPredicate.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
-import org.apache.commons.collections.FunctorException;
-import org.apache.commons.collections.Predicate;
+import org.apache.commons.collections4.FunctorException;
+import org.apache.commons.collections4.Predicate;
/**
* Predicate implementation that always throws an exception.
diff --git a/src/main/java/org/apache/commons/collections/functors/ExceptionTransformer.java b/src/main/java/org/apache/commons/collections4/functors/ExceptionTransformer.java
similarity index 93%
rename from src/main/java/org/apache/commons/collections/functors/ExceptionTransformer.java
rename to src/main/java/org/apache/commons/collections4/functors/ExceptionTransformer.java
index 2047610c7..88c185a26 100644
--- a/src/main/java/org/apache/commons/collections/functors/ExceptionTransformer.java
+++ b/src/main/java/org/apache/commons/collections4/functors/ExceptionTransformer.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
-import org.apache.commons.collections.FunctorException;
-import org.apache.commons.collections.Transformer;
+import org.apache.commons.collections4.FunctorException;
+import org.apache.commons.collections4.Transformer;
/**
* Transformer implementation that always throws an exception.
diff --git a/src/main/java/org/apache/commons/collections/functors/FactoryTransformer.java b/src/main/java/org/apache/commons/collections4/functors/FactoryTransformer.java
similarity index 94%
rename from src/main/java/org/apache/commons/collections/functors/FactoryTransformer.java
rename to src/main/java/org/apache/commons/collections4/functors/FactoryTransformer.java
index 9a75ed7aa..2f133b3db 100644
--- a/src/main/java/org/apache/commons/collections/functors/FactoryTransformer.java
+++ b/src/main/java/org/apache/commons/collections4/functors/FactoryTransformer.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
-import org.apache.commons.collections.Factory;
-import org.apache.commons.collections.Transformer;
+import org.apache.commons.collections4.Factory;
+import org.apache.commons.collections4.Transformer;
/**
* Transformer implementation that calls a Factory and returns the result.
diff --git a/src/main/java/org/apache/commons/collections/functors/FalsePredicate.java b/src/main/java/org/apache/commons/collections4/functors/FalsePredicate.java
similarity index 95%
rename from src/main/java/org/apache/commons/collections/functors/FalsePredicate.java
rename to src/main/java/org/apache/commons/collections4/functors/FalsePredicate.java
index ada10fc58..cd2f8c9c8 100644
--- a/src/main/java/org/apache/commons/collections/functors/FalsePredicate.java
+++ b/src/main/java/org/apache/commons/collections4/functors/FalsePredicate.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
-import org.apache.commons.collections.Predicate;
+import org.apache.commons.collections4.Predicate;
/**
* Predicate implementation that always returns false.
diff --git a/src/main/java/org/apache/commons/collections/functors/ForClosure.java b/src/main/java/org/apache/commons/collections4/functors/ForClosure.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/functors/ForClosure.java
rename to src/main/java/org/apache/commons/collections4/functors/ForClosure.java
index 2a53d4b7f..dadaa2974 100644
--- a/src/main/java/org/apache/commons/collections/functors/ForClosure.java
+++ b/src/main/java/org/apache/commons/collections4/functors/ForClosure.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
-import org.apache.commons.collections.Closure;
+import org.apache.commons.collections4.Closure;
/**
* Closure implementation that calls another closure n times, like a for loop.
diff --git a/src/main/java/org/apache/commons/collections/functors/FunctorUtils.java b/src/main/java/org/apache/commons/collections4/functors/FunctorUtils.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/functors/FunctorUtils.java
rename to src/main/java/org/apache/commons/collections4/functors/FunctorUtils.java
index 674411210..cc1fac4e8 100644
--- a/src/main/java/org/apache/commons/collections/functors/FunctorUtils.java
+++ b/src/main/java/org/apache/commons/collections4/functors/FunctorUtils.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.util.Collection;
-import org.apache.commons.collections.Closure;
-import org.apache.commons.collections.Predicate;
-import org.apache.commons.collections.Transformer;
+import org.apache.commons.collections4.Closure;
+import org.apache.commons.collections4.Predicate;
+import org.apache.commons.collections4.Transformer;
/**
* Internal utilities for functors.
diff --git a/src/main/java/org/apache/commons/collections/functors/IdentityPredicate.java b/src/main/java/org/apache/commons/collections4/functors/IdentityPredicate.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/functors/IdentityPredicate.java
rename to src/main/java/org/apache/commons/collections4/functors/IdentityPredicate.java
index f2b593409..5d7e71ca4 100644
--- a/src/main/java/org/apache/commons/collections/functors/IdentityPredicate.java
+++ b/src/main/java/org/apache/commons/collections4/functors/IdentityPredicate.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
-import org.apache.commons.collections.Predicate;
+import org.apache.commons.collections4.Predicate;
/**
* Predicate implementation that returns true if the input is the same object
diff --git a/src/main/java/org/apache/commons/collections/functors/IfClosure.java b/src/main/java/org/apache/commons/collections4/functors/IfClosure.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/functors/IfClosure.java
rename to src/main/java/org/apache/commons/collections4/functors/IfClosure.java
index f26702b92..7ae30a20e 100644
--- a/src/main/java/org/apache/commons/collections/functors/IfClosure.java
+++ b/src/main/java/org/apache/commons/collections4/functors/IfClosure.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
-import org.apache.commons.collections.Closure;
-import org.apache.commons.collections.Predicate;
+import org.apache.commons.collections4.Closure;
+import org.apache.commons.collections4.Predicate;
/**
* Closure implementation acts as an if statement calling one or other closure
diff --git a/src/main/java/org/apache/commons/collections/functors/InstanceofPredicate.java b/src/main/java/org/apache/commons/collections4/functors/InstanceofPredicate.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/functors/InstanceofPredicate.java
rename to src/main/java/org/apache/commons/collections4/functors/InstanceofPredicate.java
index fae1a4b4e..e1a33ab1b 100644
--- a/src/main/java/org/apache/commons/collections/functors/InstanceofPredicate.java
+++ b/src/main/java/org/apache/commons/collections4/functors/InstanceofPredicate.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
-import org.apache.commons.collections.Predicate;
+import org.apache.commons.collections4.Predicate;
/**
* Predicate implementation that returns true if the input is an instanceof
diff --git a/src/main/java/org/apache/commons/collections/functors/InstantiateFactory.java b/src/main/java/org/apache/commons/collections4/functors/InstantiateFactory.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/functors/InstantiateFactory.java
rename to src/main/java/org/apache/commons/collections4/functors/InstantiateFactory.java
index dfc4e3650..7490ead9f 100644
--- a/src/main/java/org/apache/commons/collections/functors/InstantiateFactory.java
+++ b/src/main/java/org/apache/commons/collections4/functors/InstantiateFactory.java
@@ -14,14 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
-import org.apache.commons.collections.Factory;
-import org.apache.commons.collections.FunctorException;
+import org.apache.commons.collections4.Factory;
+import org.apache.commons.collections4.FunctorException;
/**
* Factory implementation that creates a new object instance by reflection.
diff --git a/src/main/java/org/apache/commons/collections/functors/InstantiateTransformer.java b/src/main/java/org/apache/commons/collections4/functors/InstantiateTransformer.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/functors/InstantiateTransformer.java
rename to src/main/java/org/apache/commons/collections4/functors/InstantiateTransformer.java
index b7140e42d..25a8234b4 100644
--- a/src/main/java/org/apache/commons/collections/functors/InstantiateTransformer.java
+++ b/src/main/java/org/apache/commons/collections4/functors/InstantiateTransformer.java
@@ -14,14 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
-import org.apache.commons.collections.FunctorException;
-import org.apache.commons.collections.Transformer;
+import org.apache.commons.collections4.FunctorException;
+import org.apache.commons.collections4.Transformer;
/**
* Transformer implementation that creates a new object instance by reflection.
diff --git a/src/main/java/org/apache/commons/collections/functors/InvokerTransformer.java b/src/main/java/org/apache/commons/collections4/functors/InvokerTransformer.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/functors/InvokerTransformer.java
rename to src/main/java/org/apache/commons/collections4/functors/InvokerTransformer.java
index 62a1da52c..1bb459672 100644
--- a/src/main/java/org/apache/commons/collections/functors/InvokerTransformer.java
+++ b/src/main/java/org/apache/commons/collections4/functors/InvokerTransformer.java
@@ -14,14 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
-import org.apache.commons.collections.FunctorException;
-import org.apache.commons.collections.Transformer;
+import org.apache.commons.collections4.FunctorException;
+import org.apache.commons.collections4.Transformer;
/**
* Transformer implementation that creates a new object instance by reflection.
diff --git a/src/main/java/org/apache/commons/collections/functors/MapTransformer.java b/src/main/java/org/apache/commons/collections4/functors/MapTransformer.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/functors/MapTransformer.java
rename to src/main/java/org/apache/commons/collections4/functors/MapTransformer.java
index eabce4d5e..770017f54 100644
--- a/src/main/java/org/apache/commons/collections/functors/MapTransformer.java
+++ b/src/main/java/org/apache/commons/collections4/functors/MapTransformer.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
import java.util.Map;
-import org.apache.commons.collections.Transformer;
+import org.apache.commons.collections4.Transformer;
/**
* Transformer implementation that returns the value held in a specified map
diff --git a/src/main/java/org/apache/commons/collections/functors/NOPClosure.java b/src/main/java/org/apache/commons/collections4/functors/NOPClosure.java
similarity index 94%
rename from src/main/java/org/apache/commons/collections/functors/NOPClosure.java
rename to src/main/java/org/apache/commons/collections4/functors/NOPClosure.java
index 3ad398ceb..4a7055842 100644
--- a/src/main/java/org/apache/commons/collections/functors/NOPClosure.java
+++ b/src/main/java/org/apache/commons/collections4/functors/NOPClosure.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
-import org.apache.commons.collections.Closure;
+import org.apache.commons.collections4.Closure;
/**
* Closure implementation that does nothing.
diff --git a/src/main/java/org/apache/commons/collections/functors/NOPTransformer.java b/src/main/java/org/apache/commons/collections4/functors/NOPTransformer.java
similarity index 95%
rename from src/main/java/org/apache/commons/collections/functors/NOPTransformer.java
rename to src/main/java/org/apache/commons/collections4/functors/NOPTransformer.java
index 81151d3cd..63ad6cad2 100644
--- a/src/main/java/org/apache/commons/collections/functors/NOPTransformer.java
+++ b/src/main/java/org/apache/commons/collections4/functors/NOPTransformer.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
-import org.apache.commons.collections.Transformer;
+import org.apache.commons.collections4.Transformer;
/**
* Transformer implementation that does nothing.
diff --git a/src/main/java/org/apache/commons/collections/functors/NonePredicate.java b/src/main/java/org/apache/commons/collections4/functors/NonePredicate.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/functors/NonePredicate.java
rename to src/main/java/org/apache/commons/collections4/functors/NonePredicate.java
index 7f3a615ba..3e820db28 100644
--- a/src/main/java/org/apache/commons/collections/functors/NonePredicate.java
+++ b/src/main/java/org/apache/commons/collections4/functors/NonePredicate.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
import java.util.Collection;
-import org.apache.commons.collections.Predicate;
+import org.apache.commons.collections4.Predicate;
/**
* Predicate implementation that returns true if none of the
diff --git a/src/main/java/org/apache/commons/collections/functors/NotNullPredicate.java b/src/main/java/org/apache/commons/collections4/functors/NotNullPredicate.java
similarity index 95%
rename from src/main/java/org/apache/commons/collections/functors/NotNullPredicate.java
rename to src/main/java/org/apache/commons/collections4/functors/NotNullPredicate.java
index c766417ab..f7a1d5214 100644
--- a/src/main/java/org/apache/commons/collections/functors/NotNullPredicate.java
+++ b/src/main/java/org/apache/commons/collections4/functors/NotNullPredicate.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
-import org.apache.commons.collections.Predicate;
+import org.apache.commons.collections4.Predicate;
/**
* Predicate implementation that returns true if the input is not null.
diff --git a/src/main/java/org/apache/commons/collections/functors/NotPredicate.java b/src/main/java/org/apache/commons/collections4/functors/NotPredicate.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/functors/NotPredicate.java
rename to src/main/java/org/apache/commons/collections4/functors/NotPredicate.java
index fd634326f..a61c084f5 100644
--- a/src/main/java/org/apache/commons/collections/functors/NotPredicate.java
+++ b/src/main/java/org/apache/commons/collections4/functors/NotPredicate.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
-import org.apache.commons.collections.Predicate;
+import org.apache.commons.collections4.Predicate;
/**
* Predicate implementation that returns the opposite of the decorated predicate.
diff --git a/src/main/java/org/apache/commons/collections/functors/NullIsExceptionPredicate.java b/src/main/java/org/apache/commons/collections4/functors/NullIsExceptionPredicate.java
similarity index 94%
rename from src/main/java/org/apache/commons/collections/functors/NullIsExceptionPredicate.java
rename to src/main/java/org/apache/commons/collections4/functors/NullIsExceptionPredicate.java
index 78028f29b..6618b64d6 100644
--- a/src/main/java/org/apache/commons/collections/functors/NullIsExceptionPredicate.java
+++ b/src/main/java/org/apache/commons/collections4/functors/NullIsExceptionPredicate.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
-import org.apache.commons.collections.FunctorException;
-import org.apache.commons.collections.Predicate;
+import org.apache.commons.collections4.FunctorException;
+import org.apache.commons.collections4.Predicate;
/**
* Predicate implementation that throws an exception if the input is null.
diff --git a/src/main/java/org/apache/commons/collections/functors/NullIsFalsePredicate.java b/src/main/java/org/apache/commons/collections4/functors/NullIsFalsePredicate.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/functors/NullIsFalsePredicate.java
rename to src/main/java/org/apache/commons/collections4/functors/NullIsFalsePredicate.java
index 3bd5ff604..39b07a75b 100644
--- a/src/main/java/org/apache/commons/collections/functors/NullIsFalsePredicate.java
+++ b/src/main/java/org/apache/commons/collections4/functors/NullIsFalsePredicate.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
-import org.apache.commons.collections.Predicate;
+import org.apache.commons.collections4.Predicate;
/**
* Predicate implementation that returns false if the input is null.
diff --git a/src/main/java/org/apache/commons/collections/functors/NullIsTruePredicate.java b/src/main/java/org/apache/commons/collections4/functors/NullIsTruePredicate.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/functors/NullIsTruePredicate.java
rename to src/main/java/org/apache/commons/collections4/functors/NullIsTruePredicate.java
index b1d7c1137..e8de95659 100644
--- a/src/main/java/org/apache/commons/collections/functors/NullIsTruePredicate.java
+++ b/src/main/java/org/apache/commons/collections4/functors/NullIsTruePredicate.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
-import org.apache.commons.collections.Predicate;
+import org.apache.commons.collections4.Predicate;
/**
* Predicate implementation that returns true if the input is null.
diff --git a/src/main/java/org/apache/commons/collections/functors/NullPredicate.java b/src/main/java/org/apache/commons/collections4/functors/NullPredicate.java
similarity index 95%
rename from src/main/java/org/apache/commons/collections/functors/NullPredicate.java
rename to src/main/java/org/apache/commons/collections4/functors/NullPredicate.java
index a25fc2c4d..3609a0faf 100644
--- a/src/main/java/org/apache/commons/collections/functors/NullPredicate.java
+++ b/src/main/java/org/apache/commons/collections4/functors/NullPredicate.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
-import org.apache.commons.collections.Predicate;
+import org.apache.commons.collections4.Predicate;
/**
* Predicate implementation that returns true if the input is null.
diff --git a/src/main/java/org/apache/commons/collections/functors/OnePredicate.java b/src/main/java/org/apache/commons/collections4/functors/OnePredicate.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/functors/OnePredicate.java
rename to src/main/java/org/apache/commons/collections4/functors/OnePredicate.java
index c03a8ab28..3306db09d 100644
--- a/src/main/java/org/apache/commons/collections/functors/OnePredicate.java
+++ b/src/main/java/org/apache/commons/collections4/functors/OnePredicate.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
import java.util.Collection;
-import org.apache.commons.collections.Predicate;
+import org.apache.commons.collections4.Predicate;
/**
* Predicate implementation that returns true if only one of the
diff --git a/src/main/java/org/apache/commons/collections/functors/OrPredicate.java b/src/main/java/org/apache/commons/collections4/functors/OrPredicate.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/functors/OrPredicate.java
rename to src/main/java/org/apache/commons/collections4/functors/OrPredicate.java
index 4018270db..7a880b96c 100644
--- a/src/main/java/org/apache/commons/collections/functors/OrPredicate.java
+++ b/src/main/java/org/apache/commons/collections4/functors/OrPredicate.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
-import org.apache.commons.collections.Predicate;
+import org.apache.commons.collections4.Predicate;
/**
* Predicate implementation that returns true if either of the predicates return true.
diff --git a/src/main/java/org/apache/commons/collections/functors/PredicateDecorator.java b/src/main/java/org/apache/commons/collections4/functors/PredicateDecorator.java
similarity index 93%
rename from src/main/java/org/apache/commons/collections/functors/PredicateDecorator.java
rename to src/main/java/org/apache/commons/collections4/functors/PredicateDecorator.java
index 446aa2cf5..8f6d06772 100644
--- a/src/main/java/org/apache/commons/collections/functors/PredicateDecorator.java
+++ b/src/main/java/org/apache/commons/collections4/functors/PredicateDecorator.java
@@ -14,9 +14,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
-import org.apache.commons.collections.Predicate;
+import org.apache.commons.collections4.Predicate;
/**
* Defines a predicate that decorates one or more other predicates.
diff --git a/src/main/java/org/apache/commons/collections/functors/PredicateTransformer.java b/src/main/java/org/apache/commons/collections4/functors/PredicateTransformer.java
similarity index 94%
rename from src/main/java/org/apache/commons/collections/functors/PredicateTransformer.java
rename to src/main/java/org/apache/commons/collections4/functors/PredicateTransformer.java
index 61ce3589c..0257c468c 100644
--- a/src/main/java/org/apache/commons/collections/functors/PredicateTransformer.java
+++ b/src/main/java/org/apache/commons/collections4/functors/PredicateTransformer.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
-import org.apache.commons.collections.Predicate;
-import org.apache.commons.collections.Transformer;
+import org.apache.commons.collections4.Predicate;
+import org.apache.commons.collections4.Transformer;
/**
* Transformer implementation that calls a Predicate using the input object
diff --git a/src/main/java/org/apache/commons/collections/functors/PrototypeFactory.java b/src/main/java/org/apache/commons/collections4/functors/PrototypeFactory.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/functors/PrototypeFactory.java
rename to src/main/java/org/apache/commons/collections4/functors/PrototypeFactory.java
index 079d00086..6e66944dd 100644
--- a/src/main/java/org/apache/commons/collections/functors/PrototypeFactory.java
+++ b/src/main/java/org/apache/commons/collections4/functors/PrototypeFactory.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
@@ -25,8 +25,8 @@ import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
-import org.apache.commons.collections.Factory;
-import org.apache.commons.collections.FunctorException;
+import org.apache.commons.collections4.Factory;
+import org.apache.commons.collections4.FunctorException;
/**
* Factory implementation that creates a new instance each time based on a prototype.
diff --git a/src/main/java/org/apache/commons/collections/functors/StringValueTransformer.java b/src/main/java/org/apache/commons/collections4/functors/StringValueTransformer.java
similarity index 95%
rename from src/main/java/org/apache/commons/collections/functors/StringValueTransformer.java
rename to src/main/java/org/apache/commons/collections4/functors/StringValueTransformer.java
index 53b91b4bc..f9462efec 100644
--- a/src/main/java/org/apache/commons/collections/functors/StringValueTransformer.java
+++ b/src/main/java/org/apache/commons/collections4/functors/StringValueTransformer.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
-import org.apache.commons.collections.Transformer;
+import org.apache.commons.collections4.Transformer;
/**
* Transformer implementation that returns the result of calling
diff --git a/src/main/java/org/apache/commons/collections/functors/SwitchClosure.java b/src/main/java/org/apache/commons/collections4/functors/SwitchClosure.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/functors/SwitchClosure.java
rename to src/main/java/org/apache/commons/collections4/functors/SwitchClosure.java
index 36abf8d95..c6a52646e 100644
--- a/src/main/java/org/apache/commons/collections/functors/SwitchClosure.java
+++ b/src/main/java/org/apache/commons/collections4/functors/SwitchClosure.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
import java.util.Map;
-import org.apache.commons.collections.Closure;
-import org.apache.commons.collections.Predicate;
+import org.apache.commons.collections4.Closure;
+import org.apache.commons.collections4.Predicate;
/**
* Closure implementation calls the closure whose predicate returns true,
diff --git a/src/main/java/org/apache/commons/collections/functors/SwitchTransformer.java b/src/main/java/org/apache/commons/collections4/functors/SwitchTransformer.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/functors/SwitchTransformer.java
rename to src/main/java/org/apache/commons/collections4/functors/SwitchTransformer.java
index 64502d50c..dfff0bcd4 100644
--- a/src/main/java/org/apache/commons/collections/functors/SwitchTransformer.java
+++ b/src/main/java/org/apache/commons/collections4/functors/SwitchTransformer.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
import java.util.Map;
-import org.apache.commons.collections.Predicate;
-import org.apache.commons.collections.Transformer;
+import org.apache.commons.collections4.Predicate;
+import org.apache.commons.collections4.Transformer;
/**
* Transformer implementation calls the transformer whose predicate returns true,
diff --git a/src/main/java/org/apache/commons/collections/functors/TransformedPredicate.java b/src/main/java/org/apache/commons/collections4/functors/TransformedPredicate.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/functors/TransformedPredicate.java
rename to src/main/java/org/apache/commons/collections4/functors/TransformedPredicate.java
index a7f3a3c48..652c084fe 100644
--- a/src/main/java/org/apache/commons/collections/functors/TransformedPredicate.java
+++ b/src/main/java/org/apache/commons/collections4/functors/TransformedPredicate.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
-import org.apache.commons.collections.Predicate;
-import org.apache.commons.collections.Transformer;
+import org.apache.commons.collections4.Predicate;
+import org.apache.commons.collections4.Transformer;
/**
* Predicate implementation that transforms the given object before invoking
diff --git a/src/main/java/org/apache/commons/collections/functors/TransformerClosure.java b/src/main/java/org/apache/commons/collections4/functors/TransformerClosure.java
similarity index 94%
rename from src/main/java/org/apache/commons/collections/functors/TransformerClosure.java
rename to src/main/java/org/apache/commons/collections4/functors/TransformerClosure.java
index 811ecf3ce..b47b45416 100644
--- a/src/main/java/org/apache/commons/collections/functors/TransformerClosure.java
+++ b/src/main/java/org/apache/commons/collections4/functors/TransformerClosure.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
-import org.apache.commons.collections.Closure;
-import org.apache.commons.collections.Transformer;
+import org.apache.commons.collections4.Closure;
+import org.apache.commons.collections4.Transformer;
/**
* Closure implementation that calls a Transformer using the input object
diff --git a/src/main/java/org/apache/commons/collections/functors/TransformerPredicate.java b/src/main/java/org/apache/commons/collections4/functors/TransformerPredicate.java
similarity index 93%
rename from src/main/java/org/apache/commons/collections/functors/TransformerPredicate.java
rename to src/main/java/org/apache/commons/collections4/functors/TransformerPredicate.java
index 9cd09def9..ce6418806 100644
--- a/src/main/java/org/apache/commons/collections/functors/TransformerPredicate.java
+++ b/src/main/java/org/apache/commons/collections4/functors/TransformerPredicate.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
-import org.apache.commons.collections.FunctorException;
-import org.apache.commons.collections.Predicate;
-import org.apache.commons.collections.Transformer;
+import org.apache.commons.collections4.FunctorException;
+import org.apache.commons.collections4.Predicate;
+import org.apache.commons.collections4.Transformer;
/**
* Predicate implementation that returns the result of a transformer.
diff --git a/src/main/java/org/apache/commons/collections/functors/TruePredicate.java b/src/main/java/org/apache/commons/collections4/functors/TruePredicate.java
similarity index 95%
rename from src/main/java/org/apache/commons/collections/functors/TruePredicate.java
rename to src/main/java/org/apache/commons/collections4/functors/TruePredicate.java
index b91fdc82b..466dcd03b 100644
--- a/src/main/java/org/apache/commons/collections/functors/TruePredicate.java
+++ b/src/main/java/org/apache/commons/collections4/functors/TruePredicate.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
-import org.apache.commons.collections.Predicate;
+import org.apache.commons.collections4.Predicate;
/**
* Predicate implementation that always returns true.
diff --git a/src/main/java/org/apache/commons/collections/functors/UniquePredicate.java b/src/main/java/org/apache/commons/collections4/functors/UniquePredicate.java
similarity index 95%
rename from src/main/java/org/apache/commons/collections/functors/UniquePredicate.java
rename to src/main/java/org/apache/commons/collections4/functors/UniquePredicate.java
index 591223025..d75141346 100644
--- a/src/main/java/org/apache/commons/collections/functors/UniquePredicate.java
+++ b/src/main/java/org/apache/commons/collections4/functors/UniquePredicate.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
-import org.apache.commons.collections.Predicate;
+import org.apache.commons.collections4.Predicate;
/**
* Predicate implementation that returns true the first time an object is
diff --git a/src/main/java/org/apache/commons/collections/functors/WhileClosure.java b/src/main/java/org/apache/commons/collections4/functors/WhileClosure.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/functors/WhileClosure.java
rename to src/main/java/org/apache/commons/collections4/functors/WhileClosure.java
index ada484034..939b025f1 100644
--- a/src/main/java/org/apache/commons/collections/functors/WhileClosure.java
+++ b/src/main/java/org/apache/commons/collections4/functors/WhileClosure.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
import java.io.Serializable;
-import org.apache.commons.collections.Closure;
-import org.apache.commons.collections.Predicate;
+import org.apache.commons.collections4.Closure;
+import org.apache.commons.collections4.Predicate;
/**
* Closure implementation that executes a closure repeatedly until a condition is met,
diff --git a/src/main/java/org/apache/commons/collections/functors/package-info.java b/src/main/java/org/apache/commons/collections4/functors/package-info.java
similarity index 74%
rename from src/main/java/org/apache/commons/collections/functors/package-info.java
rename to src/main/java/org/apache/commons/collections4/functors/package-info.java
index fd2dd64a6..321edd43f 100644
--- a/src/main/java/org/apache/commons/collections/functors/package-info.java
+++ b/src/main/java/org/apache/commons/collections4/functors/package-info.java
@@ -16,12 +16,12 @@
*/
/**
* This package contains implementations of the
- * {@link org.apache.commons.collections.Closure Closure},
- * {@link org.apache.commons.collections.Predicate Predicate},
- * {@link org.apache.commons.collections.Transformer Transformer} and
- * {@link org.apache.commons.collections.Factory Factory} interfaces.
+ * {@link org.apache.commons.collections4.Closure Closure},
+ * {@link org.apache.commons.collections4.Predicate Predicate},
+ * {@link org.apache.commons.collections4.Transformer Transformer} and
+ * {@link org.apache.commons.collections4.Factory Factory} interfaces.
* These provide simple callbacks for processing with collections.
*
* @version $Id$
*/
-package org.apache.commons.collections.functors;
+package org.apache.commons.collections4.functors;
diff --git a/src/main/java/org/apache/commons/collections/iterators/AbstractEmptyIterator.java b/src/main/java/org/apache/commons/collections4/iterators/AbstractEmptyIterator.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/iterators/AbstractEmptyIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/AbstractEmptyIterator.java
index 99992b697..017464d12 100644
--- a/src/main/java/org/apache/commons/collections/iterators/AbstractEmptyIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/AbstractEmptyIterator.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.util.NoSuchElementException;
diff --git a/src/main/java/org/apache/commons/collections/iterators/AbstractEmptyMapIterator.java b/src/main/java/org/apache/commons/collections4/iterators/AbstractEmptyMapIterator.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/iterators/AbstractEmptyMapIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/AbstractEmptyMapIterator.java
index af333fd54..5672cff12 100644
--- a/src/main/java/org/apache/commons/collections/iterators/AbstractEmptyMapIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/AbstractEmptyMapIterator.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
/**
* Provides an implementation of an empty map iterator.
diff --git a/src/main/java/org/apache/commons/collections/iterators/AbstractIteratorDecorator.java b/src/main/java/org/apache/commons/collections4/iterators/AbstractIteratorDecorator.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/iterators/AbstractIteratorDecorator.java
rename to src/main/java/org/apache/commons/collections4/iterators/AbstractIteratorDecorator.java
index 3ee502790..ddfc4fbfa 100644
--- a/src/main/java/org/apache/commons/collections/iterators/AbstractIteratorDecorator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/AbstractIteratorDecorator.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.util.Iterator;
diff --git a/src/main/java/org/apache/commons/collections/iterators/AbstractListIteratorDecorator.java b/src/main/java/org/apache/commons/collections4/iterators/AbstractListIteratorDecorator.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/iterators/AbstractListIteratorDecorator.java
rename to src/main/java/org/apache/commons/collections4/iterators/AbstractListIteratorDecorator.java
index fc10f15ad..bdb120e44 100644
--- a/src/main/java/org/apache/commons/collections/iterators/AbstractListIteratorDecorator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/AbstractListIteratorDecorator.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.util.ListIterator;
diff --git a/src/main/java/org/apache/commons/collections/iterators/AbstractMapIteratorDecorator.java b/src/main/java/org/apache/commons/collections4/iterators/AbstractMapIteratorDecorator.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/iterators/AbstractMapIteratorDecorator.java
rename to src/main/java/org/apache/commons/collections4/iterators/AbstractMapIteratorDecorator.java
index e9d604edd..d65c7772f 100644
--- a/src/main/java/org/apache/commons/collections/iterators/AbstractMapIteratorDecorator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/AbstractMapIteratorDecorator.java
@@ -14,9 +14,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
-import org.apache.commons.collections.MapIterator;
+import org.apache.commons.collections4.MapIterator;
/**
* Provides basic behaviour for decorating a map iterator with extra functionality.
diff --git a/src/main/java/org/apache/commons/collections/iterators/AbstractOrderedMapIteratorDecorator.java b/src/main/java/org/apache/commons/collections4/iterators/AbstractOrderedMapIteratorDecorator.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/iterators/AbstractOrderedMapIteratorDecorator.java
rename to src/main/java/org/apache/commons/collections4/iterators/AbstractOrderedMapIteratorDecorator.java
index 69bc46741..f215036f6 100644
--- a/src/main/java/org/apache/commons/collections/iterators/AbstractOrderedMapIteratorDecorator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/AbstractOrderedMapIteratorDecorator.java
@@ -14,9 +14,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
-import org.apache.commons.collections.OrderedMapIterator;
+import org.apache.commons.collections4.OrderedMapIterator;
/**
* Provides basic behaviour for decorating an ordered map iterator with extra functionality.
diff --git a/src/main/java/org/apache/commons/collections/iterators/AbstractUntypedIteratorDecorator.java b/src/main/java/org/apache/commons/collections4/iterators/AbstractUntypedIteratorDecorator.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/iterators/AbstractUntypedIteratorDecorator.java
rename to src/main/java/org/apache/commons/collections4/iterators/AbstractUntypedIteratorDecorator.java
index 182a2f46d..29762e17b 100644
--- a/src/main/java/org/apache/commons/collections/iterators/AbstractUntypedIteratorDecorator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/AbstractUntypedIteratorDecorator.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.util.Iterator;
diff --git a/src/main/java/org/apache/commons/collections/iterators/ArrayIterator.java b/src/main/java/org/apache/commons/collections4/iterators/ArrayIterator.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/iterators/ArrayIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/ArrayIterator.java
index 9e6f699ac..dbf882536 100644
--- a/src/main/java/org/apache/commons/collections/iterators/ArrayIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/ArrayIterator.java
@@ -14,19 +14,19 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.lang.reflect.Array;
import java.util.NoSuchElementException;
-import org.apache.commons.collections.ResettableIterator;
+import org.apache.commons.collections4.ResettableIterator;
/**
* Implements an {@link java.util.Iterator Iterator} over any array.
*
* The array can be either an array of object or of primitives. If you know
* that you have an object array, the
- * {@link org.apache.commons.collections.iterators.ObjectArrayIterator ObjectArrayIterator}
+ * {@link org.apache.commons.collections4.iterators.ObjectArrayIterator ObjectArrayIterator}
* class is a better choice, as it will perform better.
*
* The iterator implements a {@link #reset} method, allowing the reset of
diff --git a/src/main/java/org/apache/commons/collections/iterators/ArrayListIterator.java b/src/main/java/org/apache/commons/collections4/iterators/ArrayListIterator.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/iterators/ArrayListIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/ArrayListIterator.java
index 2c37bf152..35201ba6c 100644
--- a/src/main/java/org/apache/commons/collections/iterators/ArrayListIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/ArrayListIterator.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.lang.reflect.Array;
import java.util.ListIterator;
import java.util.NoSuchElementException;
-import org.apache.commons.collections.ResettableListIterator;
+import org.apache.commons.collections4.ResettableListIterator;
/**
* Implements a {@link ListIterator} over an array.
@@ -33,7 +33,7 @@ import org.apache.commons.collections.ResettableListIterator;
* This iterator does not support {@link #add(Object)} or {@link #remove()}, as the array
* cannot be changed in size. The {@link #set(Object)} method is supported however.
*
- * @see org.apache.commons.collections.iterators.ArrayIterator
+ * @see org.apache.commons.collections4.iterators.ArrayIterator
* @see java.util.Iterator
* @see java.util.ListIterator
*
diff --git a/src/main/java/org/apache/commons/collections/iterators/CollatingIterator.java b/src/main/java/org/apache/commons/collections4/iterators/CollatingIterator.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/iterators/CollatingIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/CollatingIterator.java
index a495617f8..bf372ad97 100644
--- a/src/main/java/org/apache/commons/collections/iterators/CollatingIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/CollatingIterator.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.util.ArrayList;
import java.util.BitSet;
@@ -24,7 +24,7 @@ import java.util.Iterator;
import java.util.List;
import java.util.NoSuchElementException;
-import org.apache.commons.collections.list.UnmodifiableList;
+import org.apache.commons.collections4.list.UnmodifiableList;
/**
@@ -216,7 +216,7 @@ public class CollatingIterator implements Iterator {
* would like to use the natural sort order (or, in other words,
* if the elements in the iterators are implementing the
* {@link java.lang.Comparable} interface), then use the
- * {@link org.apache.commons.collections.comparators.ComparableComparator}.
+ * {@link org.apache.commons.collections4.comparators.ComparableComparator}.
*
* @param comp the {@link Comparator} to set
* @throws IllegalStateException if iteration has started
diff --git a/src/main/java/org/apache/commons/collections/iterators/EmptyIterator.java b/src/main/java/org/apache/commons/collections4/iterators/EmptyIterator.java
similarity index 95%
rename from src/main/java/org/apache/commons/collections/iterators/EmptyIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/EmptyIterator.java
index e163219eb..e4ce7e290 100644
--- a/src/main/java/org/apache/commons/collections/iterators/EmptyIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/EmptyIterator.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.util.Iterator;
-import org.apache.commons.collections.ResettableIterator;
+import org.apache.commons.collections4.ResettableIterator;
/**
* Provides an implementation of an empty iterator.
diff --git a/src/main/java/org/apache/commons/collections/iterators/EmptyListIterator.java b/src/main/java/org/apache/commons/collections4/iterators/EmptyListIterator.java
similarity index 95%
rename from src/main/java/org/apache/commons/collections/iterators/EmptyListIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/EmptyListIterator.java
index a1841aa3c..18d71040a 100644
--- a/src/main/java/org/apache/commons/collections/iterators/EmptyListIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/EmptyListIterator.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.util.ListIterator;
-import org.apache.commons.collections.ResettableListIterator;
+import org.apache.commons.collections4.ResettableListIterator;
/**
* Provides an implementation of an empty list iterator.
diff --git a/src/main/java/org/apache/commons/collections/iterators/EmptyMapIterator.java b/src/main/java/org/apache/commons/collections4/iterators/EmptyMapIterator.java
similarity index 90%
rename from src/main/java/org/apache/commons/collections/iterators/EmptyMapIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/EmptyMapIterator.java
index de32971ff..68f93bc32 100644
--- a/src/main/java/org/apache/commons/collections/iterators/EmptyMapIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/EmptyMapIterator.java
@@ -14,10 +14,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
-import org.apache.commons.collections.MapIterator;
-import org.apache.commons.collections.ResettableIterator;
+import org.apache.commons.collections4.MapIterator;
+import org.apache.commons.collections4.ResettableIterator;
/**
* Provides an implementation of an empty map iterator.
diff --git a/src/main/java/org/apache/commons/collections/iterators/EmptyOrderedIterator.java b/src/main/java/org/apache/commons/collections4/iterators/EmptyOrderedIterator.java
similarity index 90%
rename from src/main/java/org/apache/commons/collections/iterators/EmptyOrderedIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/EmptyOrderedIterator.java
index ffeff4306..efd52dd66 100644
--- a/src/main/java/org/apache/commons/collections/iterators/EmptyOrderedIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/EmptyOrderedIterator.java
@@ -14,10 +14,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
-import org.apache.commons.collections.OrderedIterator;
-import org.apache.commons.collections.ResettableIterator;
+import org.apache.commons.collections4.OrderedIterator;
+import org.apache.commons.collections4.ResettableIterator;
/**
* Provides an implementation of an empty ordered iterator.
diff --git a/src/main/java/org/apache/commons/collections/iterators/EmptyOrderedMapIterator.java b/src/main/java/org/apache/commons/collections4/iterators/EmptyOrderedMapIterator.java
similarity index 90%
rename from src/main/java/org/apache/commons/collections/iterators/EmptyOrderedMapIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/EmptyOrderedMapIterator.java
index 758c4c5fb..8e4532d9c 100644
--- a/src/main/java/org/apache/commons/collections/iterators/EmptyOrderedMapIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/EmptyOrderedMapIterator.java
@@ -14,10 +14,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
-import org.apache.commons.collections.OrderedMapIterator;
-import org.apache.commons.collections.ResettableIterator;
+import org.apache.commons.collections4.OrderedMapIterator;
+import org.apache.commons.collections4.ResettableIterator;
/**
* Provides an implementation of an empty ordered map iterator.
diff --git a/src/main/java/org/apache/commons/collections/iterators/EntrySetMapIterator.java b/src/main/java/org/apache/commons/collections4/iterators/EntrySetMapIterator.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/iterators/EntrySetMapIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/EntrySetMapIterator.java
index 8cdd57d2c..b7f8c4999 100644
--- a/src/main/java/org/apache/commons/collections/iterators/EntrySetMapIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/EntrySetMapIterator.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.util.Iterator;
import java.util.Map;
-import org.apache.commons.collections.MapIterator;
-import org.apache.commons.collections.ResettableIterator;
+import org.apache.commons.collections4.MapIterator;
+import org.apache.commons.collections4.ResettableIterator;
/**
* Implements a MapIterator using a Map entrySet.
diff --git a/src/main/java/org/apache/commons/collections/iterators/EnumerationIterator.java b/src/main/java/org/apache/commons/collections4/iterators/EnumerationIterator.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/iterators/EnumerationIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/EnumerationIterator.java
index 3d9274bf9..800f42583 100644
--- a/src/main/java/org/apache/commons/collections/iterators/EnumerationIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/EnumerationIterator.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.util.Collection;
import java.util.Enumeration;
diff --git a/src/main/java/org/apache/commons/collections/iterators/FilterIterator.java b/src/main/java/org/apache/commons/collections4/iterators/FilterIterator.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/iterators/FilterIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/FilterIterator.java
index 5b96dc53c..146b08a0e 100644
--- a/src/main/java/org/apache/commons/collections/iterators/FilterIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/FilterIterator.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.util.Iterator;
import java.util.NoSuchElementException;
-import org.apache.commons.collections.Predicate;
+import org.apache.commons.collections4.Predicate;
/**
* Decorates another {@link Iterator} using a predicate to filter elements.
diff --git a/src/main/java/org/apache/commons/collections/iterators/FilterListIterator.java b/src/main/java/org/apache/commons/collections4/iterators/FilterListIterator.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/iterators/FilterListIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/FilterListIterator.java
index de7552b66..685cb08f6 100644
--- a/src/main/java/org/apache/commons/collections/iterators/FilterListIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/FilterListIterator.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.util.ListIterator;
import java.util.NoSuchElementException;
-import org.apache.commons.collections.Predicate;
+import org.apache.commons.collections4.Predicate;
/**
* Decorates another {@link ListIterator} using a predicate to filter elements.
diff --git a/src/main/java/org/apache/commons/collections/iterators/IteratorChain.java b/src/main/java/org/apache/commons/collections4/iterators/IteratorChain.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/iterators/IteratorChain.java
rename to src/main/java/org/apache/commons/collections4/iterators/IteratorChain.java
index 648f04160..d65a79b65 100644
--- a/src/main/java/org/apache/commons/collections/iterators/IteratorChain.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/IteratorChain.java
@@ -14,14 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
-import org.apache.commons.collections.list.UnmodifiableList;
+import org.apache.commons.collections4.list.UnmodifiableList;
/**
* An IteratorChain is an Iterator that wraps a number of Iterators.
diff --git a/src/main/java/org/apache/commons/collections/iterators/IteratorEnumeration.java b/src/main/java/org/apache/commons/collections4/iterators/IteratorEnumeration.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/iterators/IteratorEnumeration.java
rename to src/main/java/org/apache/commons/collections4/iterators/IteratorEnumeration.java
index 52a55108c..ed0c7822e 100644
--- a/src/main/java/org/apache/commons/collections/iterators/IteratorEnumeration.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/IteratorEnumeration.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.util.Enumeration;
import java.util.Iterator;
diff --git a/src/main/java/org/apache/commons/collections/iterators/IteratorIterable.java b/src/main/java/org/apache/commons/collections4/iterators/IteratorIterable.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/iterators/IteratorIterable.java
rename to src/main/java/org/apache/commons/collections4/iterators/IteratorIterable.java
index b0844348d..3fafa8f1c 100644
--- a/src/main/java/org/apache/commons/collections/iterators/IteratorIterable.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/IteratorIterable.java
@@ -11,11 +11,11 @@
* KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.util.Iterator;
-import org.apache.commons.collections.ResettableIterator;
+import org.apache.commons.collections4.ResettableIterator;
/**
* Adapter to make an {@link Iterator Iterator} instance appear to be an
diff --git a/src/main/java/org/apache/commons/collections/iterators/LazyIteratorChain.java b/src/main/java/org/apache/commons/collections4/iterators/LazyIteratorChain.java
similarity index 99%
rename from src/main/java/org/apache/commons/collections/iterators/LazyIteratorChain.java
rename to src/main/java/org/apache/commons/collections4/iterators/LazyIteratorChain.java
index 2c8b92111..0b5449660 100644
--- a/src/main/java/org/apache/commons/collections/iterators/LazyIteratorChain.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/LazyIteratorChain.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.util.Iterator;
diff --git a/src/main/java/org/apache/commons/collections/iterators/ListIteratorWrapper.java b/src/main/java/org/apache/commons/collections4/iterators/ListIteratorWrapper.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/iterators/ListIteratorWrapper.java
rename to src/main/java/org/apache/commons/collections4/iterators/ListIteratorWrapper.java
index 0c1a869f8..ba5295d58 100644
--- a/src/main/java/org/apache/commons/collections/iterators/ListIteratorWrapper.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/ListIteratorWrapper.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.text.MessageFormat;
import java.util.ArrayList;
@@ -23,13 +23,13 @@ import java.util.List;
import java.util.ListIterator;
import java.util.NoSuchElementException;
-import org.apache.commons.collections.ResettableListIterator;
+import org.apache.commons.collections4.ResettableListIterator;
/**
* Converts an {@link Iterator} into a {@link ResettableListIterator}.
* For plain Iterators this is accomplished by caching the returned
* elements. This class can also be used to simply add
- * {@link org.apache.commons.collections.ResettableIterator ResettableIterator}
+ * {@link org.apache.commons.collections4.ResettableIterator ResettableIterator}
* functionality to a given {@link ListIterator}.
*
* The ListIterator interface has additional useful methods
diff --git a/src/main/java/org/apache/commons/collections/iterators/LoopingIterator.java b/src/main/java/org/apache/commons/collections4/iterators/LoopingIterator.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/iterators/LoopingIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/LoopingIterator.java
index 870a74be7..eb722a34d 100644
--- a/src/main/java/org/apache/commons/collections/iterators/LoopingIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/LoopingIterator.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.util.Collection;
import java.util.Iterator;
import java.util.NoSuchElementException;
-import org.apache.commons.collections.ResettableIterator;
+import org.apache.commons.collections4.ResettableIterator;
/**
* An Iterator that restarts when it reaches the end.
diff --git a/src/main/java/org/apache/commons/collections/iterators/LoopingListIterator.java b/src/main/java/org/apache/commons/collections4/iterators/LoopingListIterator.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/iterators/LoopingListIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/LoopingListIterator.java
index 4b33405d0..b67201ce3 100644
--- a/src/main/java/org/apache/commons/collections/iterators/LoopingListIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/LoopingListIterator.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.util.List;
import java.util.ListIterator;
import java.util.NoSuchElementException;
-import org.apache.commons.collections.ResettableListIterator;
+import org.apache.commons.collections4.ResettableListIterator;
/**
* A ListIterator that restarts when it reaches the end or when it
diff --git a/src/main/java/org/apache/commons/collections/iterators/NodeListIterator.java b/src/main/java/org/apache/commons/collections4/iterators/NodeListIterator.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/iterators/NodeListIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/NodeListIterator.java
index 5200951f0..b33377c7a 100644
--- a/src/main/java/org/apache/commons/collections/iterators/NodeListIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/NodeListIterator.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.util.Iterator;
import java.util.NoSuchElementException;
diff --git a/src/main/java/org/apache/commons/collections/iterators/ObjectArrayIterator.java b/src/main/java/org/apache/commons/collections4/iterators/ObjectArrayIterator.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/iterators/ObjectArrayIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/ObjectArrayIterator.java
index a5237f30f..02ecb3c89 100644
--- a/src/main/java/org/apache/commons/collections/iterators/ObjectArrayIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/ObjectArrayIterator.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.util.Iterator;
import java.util.NoSuchElementException;
-import org.apache.commons.collections.ResettableIterator;
+import org.apache.commons.collections4.ResettableIterator;
/**
* An {@link Iterator} over an array of objects.
diff --git a/src/main/java/org/apache/commons/collections/iterators/ObjectArrayListIterator.java b/src/main/java/org/apache/commons/collections4/iterators/ObjectArrayListIterator.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/iterators/ObjectArrayListIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/ObjectArrayListIterator.java
index a973c61fc..873631712 100644
--- a/src/main/java/org/apache/commons/collections/iterators/ObjectArrayListIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/ObjectArrayListIterator.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.util.ListIterator;
import java.util.NoSuchElementException;
-import org.apache.commons.collections.ResettableListIterator;
+import org.apache.commons.collections4.ResettableListIterator;
/**
* Implements a {@link ListIterator} over an array of objects.
@@ -30,7 +30,7 @@ import org.apache.commons.collections.ResettableListIterator;
* The iterator implements a {@link #reset} method, allowing the reset of the iterator
* back to the start if required.
*
- * @see org.apache.commons.collections.iterators.ObjectArrayIterator
+ * @see org.apache.commons.collections4.iterators.ObjectArrayIterator
* @see java.util.Iterator
* @see java.util.ListIterator
*
diff --git a/src/main/java/org/apache/commons/collections/iterators/ObjectGraphIterator.java b/src/main/java/org/apache/commons/collections4/iterators/ObjectGraphIterator.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/iterators/ObjectGraphIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/ObjectGraphIterator.java
index 95b737eb6..6da45fa96 100644
--- a/src/main/java/org/apache/commons/collections/iterators/ObjectGraphIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/ObjectGraphIterator.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.util.Iterator;
import java.util.NoSuchElementException;
-import org.apache.commons.collections.Transformer;
-import org.apache.commons.collections.ArrayStack;
+import org.apache.commons.collections4.ArrayStack;
+import org.apache.commons.collections4.Transformer;
/**
* An Iterator that can traverse multiple iterators down an object graph.
diff --git a/src/main/java/org/apache/commons/collections/iterators/ReverseListIterator.java b/src/main/java/org/apache/commons/collections4/iterators/ReverseListIterator.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/iterators/ReverseListIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/ReverseListIterator.java
index 754b3e873..cf7b0d4d5 100644
--- a/src/main/java/org/apache/commons/collections/iterators/ReverseListIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/ReverseListIterator.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.util.List;
import java.util.ListIterator;
-import org.apache.commons.collections.ResettableListIterator;
+import org.apache.commons.collections4.ResettableListIterator;
/**
* Iterates backwards through a List, starting with the last element
diff --git a/src/main/java/org/apache/commons/collections/iterators/SingletonIterator.java b/src/main/java/org/apache/commons/collections4/iterators/SingletonIterator.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/iterators/SingletonIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/SingletonIterator.java
index f4b4835e9..c6fc1518d 100644
--- a/src/main/java/org/apache/commons/collections/iterators/SingletonIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/SingletonIterator.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.util.Iterator;
import java.util.NoSuchElementException;
-import org.apache.commons.collections.ResettableIterator;
+import org.apache.commons.collections4.ResettableIterator;
/**
* SingletonIterator is an {@link Iterator} over a single
diff --git a/src/main/java/org/apache/commons/collections/iterators/SingletonListIterator.java b/src/main/java/org/apache/commons/collections4/iterators/SingletonListIterator.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/iterators/SingletonListIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/SingletonListIterator.java
index 979ef0631..9ba29878d 100644
--- a/src/main/java/org/apache/commons/collections/iterators/SingletonListIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/SingletonListIterator.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.util.ListIterator;
import java.util.NoSuchElementException;
-import org.apache.commons.collections.ResettableListIterator;
+import org.apache.commons.collections4.ResettableListIterator;
/**
* SingletonIterator is an {@link ListIterator} over a single
diff --git a/src/main/java/org/apache/commons/collections/iterators/TransformIterator.java b/src/main/java/org/apache/commons/collections4/iterators/TransformIterator.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/iterators/TransformIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/TransformIterator.java
index d09cf9f8f..688b9681c 100644
--- a/src/main/java/org/apache/commons/collections/iterators/TransformIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/TransformIterator.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.util.Iterator;
-import org.apache.commons.collections.Transformer;
+import org.apache.commons.collections4.Transformer;
/**
* Decorates an iterator such that each element returned is transformed.
diff --git a/src/main/java/org/apache/commons/collections/iterators/UniqueFilterIterator.java b/src/main/java/org/apache/commons/collections4/iterators/UniqueFilterIterator.java
similarity index 92%
rename from src/main/java/org/apache/commons/collections/iterators/UniqueFilterIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/UniqueFilterIterator.java
index 9e73625a4..e357da2a4 100644
--- a/src/main/java/org/apache/commons/collections/iterators/UniqueFilterIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/UniqueFilterIterator.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.util.Iterator;
-import org.apache.commons.collections.functors.UniquePredicate;
+import org.apache.commons.collections4.functors.UniquePredicate;
/**
* A FilterIterator which only returns "unique" Objects. Internally,
diff --git a/src/main/java/org/apache/commons/collections/iterators/UnmodifiableIterator.java b/src/main/java/org/apache/commons/collections4/iterators/UnmodifiableIterator.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/iterators/UnmodifiableIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/UnmodifiableIterator.java
index 7cb28ed63..2261eaf4f 100644
--- a/src/main/java/org/apache/commons/collections/iterators/UnmodifiableIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/UnmodifiableIterator.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.util.Iterator;
-import org.apache.commons.collections.Unmodifiable;
+import org.apache.commons.collections4.Unmodifiable;
/**
* Decorates an iterator such that it cannot be modified.
diff --git a/src/main/java/org/apache/commons/collections/iterators/UnmodifiableListIterator.java b/src/main/java/org/apache/commons/collections4/iterators/UnmodifiableListIterator.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/iterators/UnmodifiableListIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/UnmodifiableListIterator.java
index f57e94aa3..19ad6db1f 100644
--- a/src/main/java/org/apache/commons/collections/iterators/UnmodifiableListIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/UnmodifiableListIterator.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
import java.util.ListIterator;
-import org.apache.commons.collections.Unmodifiable;
+import org.apache.commons.collections4.Unmodifiable;
/**
* Decorates a list iterator such that it cannot be modified.
diff --git a/src/main/java/org/apache/commons/collections/iterators/UnmodifiableMapIterator.java b/src/main/java/org/apache/commons/collections4/iterators/UnmodifiableMapIterator.java
similarity index 94%
rename from src/main/java/org/apache/commons/collections/iterators/UnmodifiableMapIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/UnmodifiableMapIterator.java
index bcd321b0d..9ddde36cd 100644
--- a/src/main/java/org/apache/commons/collections/iterators/UnmodifiableMapIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/UnmodifiableMapIterator.java
@@ -14,10 +14,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
-import org.apache.commons.collections.MapIterator;
-import org.apache.commons.collections.Unmodifiable;
+import org.apache.commons.collections4.MapIterator;
+import org.apache.commons.collections4.Unmodifiable;
/**
* Decorates a map iterator such that it cannot be modified.
diff --git a/src/main/java/org/apache/commons/collections/iterators/UnmodifiableOrderedMapIterator.java b/src/main/java/org/apache/commons/collections4/iterators/UnmodifiableOrderedMapIterator.java
similarity index 94%
rename from src/main/java/org/apache/commons/collections/iterators/UnmodifiableOrderedMapIterator.java
rename to src/main/java/org/apache/commons/collections4/iterators/UnmodifiableOrderedMapIterator.java
index 745da0f05..7e6679e82 100644
--- a/src/main/java/org/apache/commons/collections/iterators/UnmodifiableOrderedMapIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/UnmodifiableOrderedMapIterator.java
@@ -14,10 +14,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
-import org.apache.commons.collections.OrderedMapIterator;
-import org.apache.commons.collections.Unmodifiable;
+import org.apache.commons.collections4.OrderedMapIterator;
+import org.apache.commons.collections4.Unmodifiable;
/**
* Decorates an ordered map iterator such that it cannot be modified.
diff --git a/src/main/java/org/apache/commons/collections/iterators/package-info.java b/src/main/java/org/apache/commons/collections4/iterators/package-info.java
similarity index 89%
rename from src/main/java/org/apache/commons/collections/iterators/package-info.java
rename to src/main/java/org/apache/commons/collections4/iterators/package-info.java
index 1f3561005..01584fc45 100644
--- a/src/main/java/org/apache/commons/collections/iterators/package-info.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/package-info.java
@@ -19,10 +19,10 @@
* {@link java.util.Iterator Iterator} interface.
*
* You may also consider using
- * {@link org.apache.commons.collections.IteratorUtils IteratorUtils},
+ * {@link org.apache.commons.collections4.IteratorUtils IteratorUtils},
* which is a single class that uses static methods to construct instances
* of the classes in this package.
*
* @version $Id$
*/
-package org.apache.commons.collections.iterators;
+package org.apache.commons.collections4.iterators;
diff --git a/src/main/java/org/apache/commons/collections/keyvalue/AbstractKeyValue.java b/src/main/java/org/apache/commons/collections4/keyvalue/AbstractKeyValue.java
similarity index 95%
rename from src/main/java/org/apache/commons/collections/keyvalue/AbstractKeyValue.java
rename to src/main/java/org/apache/commons/collections4/keyvalue/AbstractKeyValue.java
index d6aeb8312..a852eb707 100644
--- a/src/main/java/org/apache/commons/collections/keyvalue/AbstractKeyValue.java
+++ b/src/main/java/org/apache/commons/collections4/keyvalue/AbstractKeyValue.java
@@ -14,9 +14,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.keyvalue;
+package org.apache.commons.collections4.keyvalue;
-import org.apache.commons.collections.KeyValue;
+import org.apache.commons.collections4.KeyValue;
/**
* Abstract pair class to assist with creating KeyValue
diff --git a/src/main/java/org/apache/commons/collections/keyvalue/AbstractMapEntry.java b/src/main/java/org/apache/commons/collections4/keyvalue/AbstractMapEntry.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/keyvalue/AbstractMapEntry.java
rename to src/main/java/org/apache/commons/collections4/keyvalue/AbstractMapEntry.java
index 80725a5a3..518f76aa8 100644
--- a/src/main/java/org/apache/commons/collections/keyvalue/AbstractMapEntry.java
+++ b/src/main/java/org/apache/commons/collections4/keyvalue/AbstractMapEntry.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.keyvalue;
+package org.apache.commons.collections4.keyvalue;
import java.util.Map;
diff --git a/src/main/java/org/apache/commons/collections/keyvalue/AbstractMapEntryDecorator.java b/src/main/java/org/apache/commons/collections4/keyvalue/AbstractMapEntryDecorator.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/keyvalue/AbstractMapEntryDecorator.java
rename to src/main/java/org/apache/commons/collections4/keyvalue/AbstractMapEntryDecorator.java
index 7aa21efd4..57013e1bf 100644
--- a/src/main/java/org/apache/commons/collections/keyvalue/AbstractMapEntryDecorator.java
+++ b/src/main/java/org/apache/commons/collections4/keyvalue/AbstractMapEntryDecorator.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.keyvalue;
+package org.apache.commons.collections4.keyvalue;
import java.util.Map;
-import org.apache.commons.collections.KeyValue;
+import org.apache.commons.collections4.KeyValue;
/**
* Provides a base decorator that allows additional functionality to be
diff --git a/src/main/java/org/apache/commons/collections/keyvalue/DefaultKeyValue.java b/src/main/java/org/apache/commons/collections4/keyvalue/DefaultKeyValue.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/keyvalue/DefaultKeyValue.java
rename to src/main/java/org/apache/commons/collections4/keyvalue/DefaultKeyValue.java
index b4197043c..545720fb2 100644
--- a/src/main/java/org/apache/commons/collections/keyvalue/DefaultKeyValue.java
+++ b/src/main/java/org/apache/commons/collections4/keyvalue/DefaultKeyValue.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.keyvalue;
+package org.apache.commons.collections4.keyvalue;
import java.util.Map;
-import org.apache.commons.collections.KeyValue;
+import org.apache.commons.collections4.KeyValue;
/**
* A mutable KeyValue pair that does not implement
diff --git a/src/main/java/org/apache/commons/collections/keyvalue/DefaultMapEntry.java b/src/main/java/org/apache/commons/collections4/keyvalue/DefaultMapEntry.java
similarity index 95%
rename from src/main/java/org/apache/commons/collections/keyvalue/DefaultMapEntry.java
rename to src/main/java/org/apache/commons/collections4/keyvalue/DefaultMapEntry.java
index aa9807521..d120405b6 100644
--- a/src/main/java/org/apache/commons/collections/keyvalue/DefaultMapEntry.java
+++ b/src/main/java/org/apache/commons/collections4/keyvalue/DefaultMapEntry.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.keyvalue;
+package org.apache.commons.collections4.keyvalue;
import java.util.Map;
-import org.apache.commons.collections.KeyValue;
+import org.apache.commons.collections4.KeyValue;
/**
* A restricted implementation of {@link java.util.Map.Entry Map.Entry} that prevents
diff --git a/src/main/java/org/apache/commons/collections/keyvalue/MultiKey.java b/src/main/java/org/apache/commons/collections4/keyvalue/MultiKey.java
similarity index 99%
rename from src/main/java/org/apache/commons/collections/keyvalue/MultiKey.java
rename to src/main/java/org/apache/commons/collections4/keyvalue/MultiKey.java
index 5fff95ed9..37bd86c5a 100644
--- a/src/main/java/org/apache/commons/collections/keyvalue/MultiKey.java
+++ b/src/main/java/org/apache/commons/collections4/keyvalue/MultiKey.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.keyvalue;
+package org.apache.commons.collections4.keyvalue;
import java.io.Serializable;
import java.util.Arrays;
diff --git a/src/main/java/org/apache/commons/collections/keyvalue/TiedMapEntry.java b/src/main/java/org/apache/commons/collections4/keyvalue/TiedMapEntry.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/keyvalue/TiedMapEntry.java
rename to src/main/java/org/apache/commons/collections4/keyvalue/TiedMapEntry.java
index 80e371dfb..a1290ab31 100644
--- a/src/main/java/org/apache/commons/collections/keyvalue/TiedMapEntry.java
+++ b/src/main/java/org/apache/commons/collections4/keyvalue/TiedMapEntry.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.keyvalue;
+package org.apache.commons.collections4.keyvalue;
import java.io.Serializable;
import java.util.Map;
-import org.apache.commons.collections.KeyValue;
+import org.apache.commons.collections4.KeyValue;
/**
* A {@link java.util.Map.Entry Map.Entry} tied to a map underneath.
diff --git a/src/main/java/org/apache/commons/collections/keyvalue/UnmodifiableMapEntry.java b/src/main/java/org/apache/commons/collections4/keyvalue/UnmodifiableMapEntry.java
similarity index 94%
rename from src/main/java/org/apache/commons/collections/keyvalue/UnmodifiableMapEntry.java
rename to src/main/java/org/apache/commons/collections4/keyvalue/UnmodifiableMapEntry.java
index 385693d76..bb7901c54 100644
--- a/src/main/java/org/apache/commons/collections/keyvalue/UnmodifiableMapEntry.java
+++ b/src/main/java/org/apache/commons/collections4/keyvalue/UnmodifiableMapEntry.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.keyvalue;
+package org.apache.commons.collections4.keyvalue;
import java.util.Map;
-import org.apache.commons.collections.KeyValue;
-import org.apache.commons.collections.Unmodifiable;
+import org.apache.commons.collections4.KeyValue;
+import org.apache.commons.collections4.Unmodifiable;
/**
* A {@link java.util.Map.Entry Map.Entry} that throws
diff --git a/src/main/java/org/apache/commons/collections/keyvalue/package-info.java b/src/main/java/org/apache/commons/collections4/keyvalue/package-info.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/keyvalue/package-info.java
rename to src/main/java/org/apache/commons/collections4/keyvalue/package-info.java
index 7b877b6cc..2e20d639b 100644
--- a/src/main/java/org/apache/commons/collections/keyvalue/package-info.java
+++ b/src/main/java/org/apache/commons/collections4/keyvalue/package-info.java
@@ -27,4 +27,4 @@
*
* @version $Id$
*/
-package org.apache.commons.collections.keyvalue;
+package org.apache.commons.collections4.keyvalue;
diff --git a/src/main/java/org/apache/commons/collections/list/AbstractLinkedList.java b/src/main/java/org/apache/commons/collections4/list/AbstractLinkedList.java
similarity index 99%
rename from src/main/java/org/apache/commons/collections/list/AbstractLinkedList.java
rename to src/main/java/org/apache/commons/collections4/list/AbstractLinkedList.java
index 34dc3e5b8..b99f7e6ea 100644
--- a/src/main/java/org/apache/commons/collections/list/AbstractLinkedList.java
+++ b/src/main/java/org/apache/commons/collections4/list/AbstractLinkedList.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.list;
+package org.apache.commons.collections4.list;
import java.io.IOException;
import java.io.ObjectInputStream;
@@ -28,7 +28,7 @@ import java.util.List;
import java.util.ListIterator;
import java.util.NoSuchElementException;
-import org.apache.commons.collections.OrderedIterator;
+import org.apache.commons.collections4.OrderedIterator;
/**
* An abstract implementation of a linked list which provides numerous points for
diff --git a/src/main/java/org/apache/commons/collections/list/AbstractListDecorator.java b/src/main/java/org/apache/commons/collections4/list/AbstractListDecorator.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/list/AbstractListDecorator.java
rename to src/main/java/org/apache/commons/collections4/list/AbstractListDecorator.java
index 27cbfabac..5a3b70faa 100644
--- a/src/main/java/org/apache/commons/collections/list/AbstractListDecorator.java
+++ b/src/main/java/org/apache/commons/collections4/list/AbstractListDecorator.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.list;
+package org.apache.commons.collections4.list;
import java.util.Collection;
import java.util.List;
import java.util.ListIterator;
-import org.apache.commons.collections.collection.AbstractCollectionDecorator;
+import org.apache.commons.collections4.collection.AbstractCollectionDecorator;
/**
* Decorates another {@link List} to provide additional behaviour.
diff --git a/src/main/java/org/apache/commons/collections/list/AbstractSerializableListDecorator.java b/src/main/java/org/apache/commons/collections4/list/AbstractSerializableListDecorator.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/list/AbstractSerializableListDecorator.java
rename to src/main/java/org/apache/commons/collections4/list/AbstractSerializableListDecorator.java
index 54f40c737..2b4cd8d3b 100644
--- a/src/main/java/org/apache/commons/collections/list/AbstractSerializableListDecorator.java
+++ b/src/main/java/org/apache/commons/collections4/list/AbstractSerializableListDecorator.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.list;
+package org.apache.commons.collections4.list;
import java.io.IOException;
import java.io.ObjectInputStream;
diff --git a/src/main/java/org/apache/commons/collections/list/CursorableLinkedList.java b/src/main/java/org/apache/commons/collections4/list/CursorableLinkedList.java
similarity index 99%
rename from src/main/java/org/apache/commons/collections/list/CursorableLinkedList.java
rename to src/main/java/org/apache/commons/collections4/list/CursorableLinkedList.java
index fa7c89c83..c5c06f8f7 100644
--- a/src/main/java/org/apache/commons/collections/list/CursorableLinkedList.java
+++ b/src/main/java/org/apache/commons/collections4/list/CursorableLinkedList.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.list;
+package org.apache.commons.collections4.list;
import java.io.IOException;
import java.io.ObjectInputStream;
diff --git a/src/main/java/org/apache/commons/collections/list/FixedSizeList.java b/src/main/java/org/apache/commons/collections4/list/FixedSizeList.java
similarity index 95%
rename from src/main/java/org/apache/commons/collections/list/FixedSizeList.java
rename to src/main/java/org/apache/commons/collections4/list/FixedSizeList.java
index b2e9cef87..144f324e8 100644
--- a/src/main/java/org/apache/commons/collections/list/FixedSizeList.java
+++ b/src/main/java/org/apache/commons/collections4/list/FixedSizeList.java
@@ -14,16 +14,16 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.list;
+package org.apache.commons.collections4.list;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
-import org.apache.commons.collections.BoundedCollection;
-import org.apache.commons.collections.iterators.AbstractListIteratorDecorator;
-import org.apache.commons.collections.iterators.UnmodifiableIterator;
+import org.apache.commons.collections4.BoundedCollection;
+import org.apache.commons.collections4.iterators.AbstractListIteratorDecorator;
+import org.apache.commons.collections4.iterators.UnmodifiableIterator;
/**
* Decorates another List to fix the size preventing add/remove.
diff --git a/src/main/java/org/apache/commons/collections/list/GrowthList.java b/src/main/java/org/apache/commons/collections4/list/GrowthList.java
similarity index 99%
rename from src/main/java/org/apache/commons/collections/list/GrowthList.java
rename to src/main/java/org/apache/commons/collections4/list/GrowthList.java
index ab8567bc2..a1b438c4d 100644
--- a/src/main/java/org/apache/commons/collections/list/GrowthList.java
+++ b/src/main/java/org/apache/commons/collections4/list/GrowthList.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.list;
+package org.apache.commons.collections4.list;
import java.util.ArrayList;
import java.util.Collection;
diff --git a/src/main/java/org/apache/commons/collections/list/LazyList.java b/src/main/java/org/apache/commons/collections4/list/LazyList.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/list/LazyList.java
rename to src/main/java/org/apache/commons/collections4/list/LazyList.java
index d9ad4bd80..0ce31e548 100644
--- a/src/main/java/org/apache/commons/collections/list/LazyList.java
+++ b/src/main/java/org/apache/commons/collections4/list/LazyList.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.list;
+package org.apache.commons.collections4.list;
import java.util.List;
-import org.apache.commons.collections.Factory;
+import org.apache.commons.collections4.Factory;
/**
* Decorates another List to create objects in the list on demand.
diff --git a/src/main/java/org/apache/commons/collections/list/NodeCachingLinkedList.java b/src/main/java/org/apache/commons/collections4/list/NodeCachingLinkedList.java
similarity index 99%
rename from src/main/java/org/apache/commons/collections/list/NodeCachingLinkedList.java
rename to src/main/java/org/apache/commons/collections4/list/NodeCachingLinkedList.java
index fd8f8729e..83d40e777 100644
--- a/src/main/java/org/apache/commons/collections/list/NodeCachingLinkedList.java
+++ b/src/main/java/org/apache/commons/collections4/list/NodeCachingLinkedList.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.list;
+package org.apache.commons.collections4.list;
import java.io.IOException;
import java.io.ObjectInputStream;
diff --git a/src/main/java/org/apache/commons/collections/list/PredicatedList.java b/src/main/java/org/apache/commons/collections4/list/PredicatedList.java
similarity index 95%
rename from src/main/java/org/apache/commons/collections/list/PredicatedList.java
rename to src/main/java/org/apache/commons/collections4/list/PredicatedList.java
index 16ce35180..31062b040 100644
--- a/src/main/java/org/apache/commons/collections/list/PredicatedList.java
+++ b/src/main/java/org/apache/commons/collections4/list/PredicatedList.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.list;
+package org.apache.commons.collections4.list;
-import org.apache.commons.collections.Predicate;
-import org.apache.commons.collections.collection.PredicatedCollection;
-import org.apache.commons.collections.iterators.AbstractListIteratorDecorator;
+import org.apache.commons.collections4.Predicate;
+import org.apache.commons.collections4.collection.PredicatedCollection;
+import org.apache.commons.collections4.iterators.AbstractListIteratorDecorator;
import java.util.Collection;
import java.util.List;
diff --git a/src/main/java/org/apache/commons/collections/list/SetUniqueList.java b/src/main/java/org/apache/commons/collections4/list/SetUniqueList.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/list/SetUniqueList.java
rename to src/main/java/org/apache/commons/collections4/list/SetUniqueList.java
index 4443a3f8c..f151a341f 100644
--- a/src/main/java/org/apache/commons/collections/list/SetUniqueList.java
+++ b/src/main/java/org/apache/commons/collections4/list/SetUniqueList.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.list;
+package org.apache.commons.collections4.list;
import java.util.ArrayList;
import java.util.Collection;
@@ -24,9 +24,9 @@ import java.util.List;
import java.util.ListIterator;
import java.util.Set;
-import org.apache.commons.collections.iterators.AbstractIteratorDecorator;
-import org.apache.commons.collections.iterators.AbstractListIteratorDecorator;
-import org.apache.commons.collections.set.UnmodifiableSet;
+import org.apache.commons.collections4.set.UnmodifiableSet;
+import org.apache.commons.collections4.iterators.AbstractIteratorDecorator;
+import org.apache.commons.collections4.iterators.AbstractListIteratorDecorator;
/**
* Decorates a List to ensure that no duplicates are present much
diff --git a/src/main/java/org/apache/commons/collections/list/TransformedList.java b/src/main/java/org/apache/commons/collections4/list/TransformedList.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/list/TransformedList.java
rename to src/main/java/org/apache/commons/collections4/list/TransformedList.java
index 2b3c752f1..927c4c915 100644
--- a/src/main/java/org/apache/commons/collections/list/TransformedList.java
+++ b/src/main/java/org/apache/commons/collections4/list/TransformedList.java
@@ -14,15 +14,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.list;
+package org.apache.commons.collections4.list;
import java.util.Collection;
import java.util.List;
import java.util.ListIterator;
-import org.apache.commons.collections.Transformer;
-import org.apache.commons.collections.collection.TransformedCollection;
-import org.apache.commons.collections.iterators.AbstractListIteratorDecorator;
+import org.apache.commons.collections4.Transformer;
+import org.apache.commons.collections4.collection.TransformedCollection;
+import org.apache.commons.collections4.iterators.AbstractListIteratorDecorator;
/**
* Decorates another List to transform objects that are added.
diff --git a/src/main/java/org/apache/commons/collections/list/TreeList.java b/src/main/java/org/apache/commons/collections4/list/TreeList.java
similarity index 99%
rename from src/main/java/org/apache/commons/collections/list/TreeList.java
rename to src/main/java/org/apache/commons/collections4/list/TreeList.java
index 9e0f89143..e47fd6294 100644
--- a/src/main/java/org/apache/commons/collections/list/TreeList.java
+++ b/src/main/java/org/apache/commons/collections4/list/TreeList.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.list;
+package org.apache.commons.collections4.list;
import java.util.AbstractList;
import java.util.Collection;
@@ -23,7 +23,7 @@ import java.util.Iterator;
import java.util.ListIterator;
import java.util.NoSuchElementException;
-import org.apache.commons.collections.OrderedIterator;
+import org.apache.commons.collections4.OrderedIterator;
/**
* A List implementation that is optimised for fast insertions and
diff --git a/src/main/java/org/apache/commons/collections/list/UnmodifiableList.java b/src/main/java/org/apache/commons/collections4/list/UnmodifiableList.java
similarity index 94%
rename from src/main/java/org/apache/commons/collections/list/UnmodifiableList.java
rename to src/main/java/org/apache/commons/collections4/list/UnmodifiableList.java
index 92f1f225b..b7e0de17b 100644
--- a/src/main/java/org/apache/commons/collections/list/UnmodifiableList.java
+++ b/src/main/java/org/apache/commons/collections4/list/UnmodifiableList.java
@@ -14,16 +14,16 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.list;
+package org.apache.commons.collections4.list;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
-import org.apache.commons.collections.Unmodifiable;
-import org.apache.commons.collections.iterators.UnmodifiableIterator;
-import org.apache.commons.collections.iterators.UnmodifiableListIterator;
+import org.apache.commons.collections4.Unmodifiable;
+import org.apache.commons.collections4.iterators.UnmodifiableIterator;
+import org.apache.commons.collections4.iterators.UnmodifiableListIterator;
/**
* Decorates another List to ensure it can't be altered.
diff --git a/src/main/java/org/apache/commons/collections/list/package-info.java b/src/main/java/org/apache/commons/collections4/list/package-info.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/list/package-info.java
rename to src/main/java/org/apache/commons/collections4/list/package-info.java
index 092822316..7ac1cae0d 100644
--- a/src/main/java/org/apache/commons/collections/list/package-info.java
+++ b/src/main/java/org/apache/commons/collections4/list/package-info.java
@@ -37,4 +37,4 @@
*
* @version $Id$
*/
-package org.apache.commons.collections.list;
+package org.apache.commons.collections4.list;
diff --git a/src/main/java/org/apache/commons/collections/map/AbstractHashedMap.java b/src/main/java/org/apache/commons/collections4/map/AbstractHashedMap.java
similarity index 99%
rename from src/main/java/org/apache/commons/collections/map/AbstractHashedMap.java
rename to src/main/java/org/apache/commons/collections4/map/AbstractHashedMap.java
index 2f8e7cd40..3824c223c 100644
--- a/src/main/java/org/apache/commons/collections/map/AbstractHashedMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/AbstractHashedMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.io.IOException;
import java.io.ObjectInputStream;
@@ -29,11 +29,11 @@ import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Set;
-import org.apache.commons.collections.IterableMap;
-import org.apache.commons.collections.KeyValue;
-import org.apache.commons.collections.MapIterator;
-import org.apache.commons.collections.iterators.EmptyIterator;
-import org.apache.commons.collections.iterators.EmptyMapIterator;
+import org.apache.commons.collections4.IterableMap;
+import org.apache.commons.collections4.KeyValue;
+import org.apache.commons.collections4.MapIterator;
+import org.apache.commons.collections4.iterators.EmptyIterator;
+import org.apache.commons.collections4.iterators.EmptyMapIterator;
/**
* An abstract implementation of a hash-based map which provides numerous points for
diff --git a/src/main/java/org/apache/commons/collections/map/AbstractInputCheckedMapDecorator.java b/src/main/java/org/apache/commons/collections4/map/AbstractInputCheckedMapDecorator.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/map/AbstractInputCheckedMapDecorator.java
rename to src/main/java/org/apache/commons/collections4/map/AbstractInputCheckedMapDecorator.java
index 448aed4d4..8e7dbbf81 100644
--- a/src/main/java/org/apache/commons/collections/map/AbstractInputCheckedMapDecorator.java
+++ b/src/main/java/org/apache/commons/collections4/map/AbstractInputCheckedMapDecorator.java
@@ -14,16 +14,16 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.lang.reflect.Array;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
-import org.apache.commons.collections.iterators.AbstractIteratorDecorator;
-import org.apache.commons.collections.keyvalue.AbstractMapEntryDecorator;
-import org.apache.commons.collections.set.AbstractSetDecorator;
+import org.apache.commons.collections4.set.AbstractSetDecorator;
+import org.apache.commons.collections4.iterators.AbstractIteratorDecorator;
+import org.apache.commons.collections4.keyvalue.AbstractMapEntryDecorator;
/**
* An abstract base class that simplifies the task of creating map decorators.
diff --git a/src/main/java/org/apache/commons/collections/map/AbstractIterableMap.java b/src/main/java/org/apache/commons/collections4/map/AbstractIterableMap.java
similarity index 88%
rename from src/main/java/org/apache/commons/collections/map/AbstractIterableMap.java
rename to src/main/java/org/apache/commons/collections4/map/AbstractIterableMap.java
index 679bfdaf9..104b4ba0d 100644
--- a/src/main/java/org/apache/commons/collections/map/AbstractIterableMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/AbstractIterableMap.java
@@ -14,10 +14,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
-import org.apache.commons.collections.IterableMap;
-import org.apache.commons.collections.MapIterator;
+import org.apache.commons.collections4.IterableMap;
+import org.apache.commons.collections4.MapIterator;
/**
* Provide a basic {@link IterableMap} implementation.
diff --git a/src/main/java/org/apache/commons/collections/map/AbstractLinkedMap.java b/src/main/java/org/apache/commons/collections4/map/AbstractLinkedMap.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/map/AbstractLinkedMap.java
rename to src/main/java/org/apache/commons/collections4/map/AbstractLinkedMap.java
index 35fdecb76..775bd7dd4 100644
--- a/src/main/java/org/apache/commons/collections/map/AbstractLinkedMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/AbstractLinkedMap.java
@@ -14,19 +14,19 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.util.ConcurrentModificationException;
import java.util.Iterator;
import java.util.Map;
import java.util.NoSuchElementException;
-import org.apache.commons.collections.OrderedIterator;
-import org.apache.commons.collections.OrderedMap;
-import org.apache.commons.collections.OrderedMapIterator;
-import org.apache.commons.collections.ResettableIterator;
-import org.apache.commons.collections.iterators.EmptyOrderedIterator;
-import org.apache.commons.collections.iterators.EmptyOrderedMapIterator;
+import org.apache.commons.collections4.OrderedIterator;
+import org.apache.commons.collections4.OrderedMap;
+import org.apache.commons.collections4.OrderedMapIterator;
+import org.apache.commons.collections4.ResettableIterator;
+import org.apache.commons.collections4.iterators.EmptyOrderedIterator;
+import org.apache.commons.collections4.iterators.EmptyOrderedMapIterator;
/**
* An abstract implementation of a hash-based map that links entries to create an
diff --git a/src/main/java/org/apache/commons/collections/map/AbstractMapDecorator.java b/src/main/java/org/apache/commons/collections4/map/AbstractMapDecorator.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/map/AbstractMapDecorator.java
rename to src/main/java/org/apache/commons/collections4/map/AbstractMapDecorator.java
index 509ff4d8f..f58b4ea00 100644
--- a/src/main/java/org/apache/commons/collections/map/AbstractMapDecorator.java
+++ b/src/main/java/org/apache/commons/collections4/map/AbstractMapDecorator.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.util.Collection;
import java.util.Map;
diff --git a/src/main/java/org/apache/commons/collections/map/AbstractOrderedMapDecorator.java b/src/main/java/org/apache/commons/collections4/map/AbstractOrderedMapDecorator.java
similarity index 94%
rename from src/main/java/org/apache/commons/collections/map/AbstractOrderedMapDecorator.java
rename to src/main/java/org/apache/commons/collections4/map/AbstractOrderedMapDecorator.java
index 9bf78daca..0667680d7 100644
--- a/src/main/java/org/apache/commons/collections/map/AbstractOrderedMapDecorator.java
+++ b/src/main/java/org/apache/commons/collections4/map/AbstractOrderedMapDecorator.java
@@ -14,10 +14,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
-import org.apache.commons.collections.OrderedMap;
-import org.apache.commons.collections.OrderedMapIterator;
+import org.apache.commons.collections4.OrderedMap;
+import org.apache.commons.collections4.OrderedMapIterator;
/**
* Provides a base decorator that enables additional functionality to be added
diff --git a/src/main/java/org/apache/commons/collections/map/AbstractReferenceMap.java b/src/main/java/org/apache/commons/collections4/map/AbstractReferenceMap.java
similarity index 99%
rename from src/main/java/org/apache/commons/collections/map/AbstractReferenceMap.java
rename to src/main/java/org/apache/commons/collections4/map/AbstractReferenceMap.java
index 0cd69faa0..bbd67c03e 100644
--- a/src/main/java/org/apache/commons/collections/map/AbstractReferenceMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/AbstractReferenceMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.io.IOException;
import java.io.ObjectInputStream;
@@ -32,8 +32,8 @@ import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Set;
-import org.apache.commons.collections.MapIterator;
-import org.apache.commons.collections.keyvalue.DefaultMapEntry;
+import org.apache.commons.collections4.MapIterator;
+import org.apache.commons.collections4.keyvalue.DefaultMapEntry;
/**
* An abstract implementation of a hash-based map that allows the entries to
diff --git a/src/main/java/org/apache/commons/collections/map/AbstractSortedMapDecorator.java b/src/main/java/org/apache/commons/collections4/map/AbstractSortedMapDecorator.java
similarity index 95%
rename from src/main/java/org/apache/commons/collections/map/AbstractSortedMapDecorator.java
rename to src/main/java/org/apache/commons/collections4/map/AbstractSortedMapDecorator.java
index 24ec5bff9..cd6b82989 100644
--- a/src/main/java/org/apache/commons/collections/map/AbstractSortedMapDecorator.java
+++ b/src/main/java/org/apache/commons/collections4/map/AbstractSortedMapDecorator.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.util.Comparator;
import java.util.Iterator;
@@ -23,9 +23,9 @@ import java.util.Map;
import java.util.Set;
import java.util.SortedMap;
-import org.apache.commons.collections.IterableSortedMap;
-import org.apache.commons.collections.OrderedMapIterator;
-import org.apache.commons.collections.iterators.ListIteratorWrapper;
+import org.apache.commons.collections4.IterableSortedMap;
+import org.apache.commons.collections4.OrderedMapIterator;
+import org.apache.commons.collections4.iterators.ListIteratorWrapper;
/**
* Provides a base decorator that enables additional functionality to be added
diff --git a/src/main/java/org/apache/commons/collections/map/CaseInsensitiveMap.java b/src/main/java/org/apache/commons/collections4/map/CaseInsensitiveMap.java
similarity index 99%
rename from src/main/java/org/apache/commons/collections/map/CaseInsensitiveMap.java
rename to src/main/java/org/apache/commons/collections4/map/CaseInsensitiveMap.java
index 67a6e82f3..c107ddb81 100644
--- a/src/main/java/org/apache/commons/collections/map/CaseInsensitiveMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/CaseInsensitiveMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.io.IOException;
import java.io.ObjectInputStream;
diff --git a/src/main/java/org/apache/commons/collections/map/CompositeMap.java b/src/main/java/org/apache/commons/collections4/map/CompositeMap.java
similarity index 99%
rename from src/main/java/org/apache/commons/collections/map/CompositeMap.java
rename to src/main/java/org/apache/commons/collections4/map/CompositeMap.java
index feadf9bbb..cbb39ed48 100644
--- a/src/main/java/org/apache/commons/collections/map/CompositeMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/CompositeMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.io.Serializable;
@@ -22,9 +22,9 @@ import java.util.Collection;
import java.util.Map;
import java.util.Set;
-import org.apache.commons.collections.CollectionUtils;
-import org.apache.commons.collections.collection.CompositeCollection;
-import org.apache.commons.collections.set.CompositeSet;
+import org.apache.commons.collections4.set.CompositeSet;
+import org.apache.commons.collections4.CollectionUtils;
+import org.apache.commons.collections4.collection.CompositeCollection;
/**
* Decorates a map of other maps to provide a single unified view.
diff --git a/src/main/java/org/apache/commons/collections/map/DefaultedMap.java b/src/main/java/org/apache/commons/collections4/map/DefaultedMap.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/map/DefaultedMap.java
rename to src/main/java/org/apache/commons/collections4/map/DefaultedMap.java
index 3e0f40a9e..7951d74e2 100644
--- a/src/main/java/org/apache/commons/collections/map/DefaultedMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/DefaultedMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.io.IOException;
import java.io.ObjectInputStream;
@@ -23,10 +23,10 @@ import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
-import org.apache.commons.collections.Factory;
-import org.apache.commons.collections.Transformer;
-import org.apache.commons.collections.functors.ConstantTransformer;
-import org.apache.commons.collections.functors.FactoryTransformer;
+import org.apache.commons.collections4.Factory;
+import org.apache.commons.collections4.Transformer;
+import org.apache.commons.collections4.functors.ConstantTransformer;
+import org.apache.commons.collections4.functors.FactoryTransformer;
/**
* Decorates another Map returning a default value if the map
diff --git a/src/main/java/org/apache/commons/collections/map/EntrySetToMapIteratorAdapter.java b/src/main/java/org/apache/commons/collections4/map/EntrySetToMapIteratorAdapter.java
similarity index 94%
rename from src/main/java/org/apache/commons/collections/map/EntrySetToMapIteratorAdapter.java
rename to src/main/java/org/apache/commons/collections4/map/EntrySetToMapIteratorAdapter.java
index ba7203c1d..e0b917dee 100644
--- a/src/main/java/org/apache/commons/collections/map/EntrySetToMapIteratorAdapter.java
+++ b/src/main/java/org/apache/commons/collections4/map/EntrySetToMapIteratorAdapter.java
@@ -14,14 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
-import org.apache.commons.collections.MapIterator;
-import org.apache.commons.collections.ResettableIterator;
+import org.apache.commons.collections4.MapIterator;
+import org.apache.commons.collections4.ResettableIterator;
/**
* Adapts a Map entrySet to the MapIterator interface.
diff --git a/src/main/java/org/apache/commons/collections/map/FixedSizeMap.java b/src/main/java/org/apache/commons/collections4/map/FixedSizeMap.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/map/FixedSizeMap.java
rename to src/main/java/org/apache/commons/collections4/map/FixedSizeMap.java
index c8b3c9c2a..8289e8f63 100644
--- a/src/main/java/org/apache/commons/collections/map/FixedSizeMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/FixedSizeMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.io.IOException;
import java.io.ObjectInputStream;
@@ -24,9 +24,9 @@ import java.util.Collection;
import java.util.Map;
import java.util.Set;
-import org.apache.commons.collections.BoundedMap;
-import org.apache.commons.collections.collection.UnmodifiableCollection;
-import org.apache.commons.collections.set.UnmodifiableSet;
+import org.apache.commons.collections4.set.UnmodifiableSet;
+import org.apache.commons.collections4.BoundedMap;
+import org.apache.commons.collections4.collection.UnmodifiableCollection;
/**
* Decorates another Map to fix the size, preventing add/remove.
diff --git a/src/main/java/org/apache/commons/collections/map/FixedSizeSortedMap.java b/src/main/java/org/apache/commons/collections4/map/FixedSizeSortedMap.java
similarity index 95%
rename from src/main/java/org/apache/commons/collections/map/FixedSizeSortedMap.java
rename to src/main/java/org/apache/commons/collections4/map/FixedSizeSortedMap.java
index f3de1eaee..31b329823 100644
--- a/src/main/java/org/apache/commons/collections/map/FixedSizeSortedMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/FixedSizeSortedMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.io.IOException;
import java.io.ObjectInputStream;
@@ -25,10 +25,10 @@ import java.util.Map;
import java.util.Set;
import java.util.SortedMap;
-import org.apache.commons.collections.BoundedMap;
-import org.apache.commons.collections.CollectionUtils;
-import org.apache.commons.collections.collection.UnmodifiableCollection;
-import org.apache.commons.collections.set.UnmodifiableSet;
+import org.apache.commons.collections4.set.UnmodifiableSet;
+import org.apache.commons.collections4.BoundedMap;
+import org.apache.commons.collections4.CollectionUtils;
+import org.apache.commons.collections4.collection.UnmodifiableCollection;
/**
* Decorates another SortedMap to fix the size blocking add/remove.
diff --git a/src/main/java/org/apache/commons/collections/map/Flat3Map.java b/src/main/java/org/apache/commons/collections4/map/Flat3Map.java
similarity index 99%
rename from src/main/java/org/apache/commons/collections/map/Flat3Map.java
rename to src/main/java/org/apache/commons/collections4/map/Flat3Map.java
index b137ccf79..3578d36ae 100644
--- a/src/main/java/org/apache/commons/collections/map/Flat3Map.java
+++ b/src/main/java/org/apache/commons/collections4/map/Flat3Map.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.io.IOException;
import java.io.ObjectInputStream;
@@ -28,11 +28,11 @@ import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Set;
-import org.apache.commons.collections.IterableMap;
-import org.apache.commons.collections.MapIterator;
-import org.apache.commons.collections.ResettableIterator;
-import org.apache.commons.collections.iterators.EmptyIterator;
-import org.apache.commons.collections.iterators.EmptyMapIterator;
+import org.apache.commons.collections4.IterableMap;
+import org.apache.commons.collections4.MapIterator;
+import org.apache.commons.collections4.ResettableIterator;
+import org.apache.commons.collections4.iterators.EmptyIterator;
+import org.apache.commons.collections4.iterators.EmptyMapIterator;
/**
* A Map implementation that stores data in simple fields until
diff --git a/src/main/java/org/apache/commons/collections/map/HashedMap.java b/src/main/java/org/apache/commons/collections4/map/HashedMap.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/map/HashedMap.java
rename to src/main/java/org/apache/commons/collections4/map/HashedMap.java
index 485f4f85e..5eab2893c 100644
--- a/src/main/java/org/apache/commons/collections/map/HashedMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/HashedMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.io.IOException;
import java.io.ObjectInputStream;
@@ -27,7 +27,7 @@ import java.util.Map;
* to HashMap.
*
* This implementation improves on the JDK1.4 HashMap by adding the
- * {@link org.apache.commons.collections.MapIterator MapIterator}
+ * {@link org.apache.commons.collections4.MapIterator MapIterator}
* functionality and many methods for subclassing.
*
* Note that HashedMap is not synchronized and is not thread-safe.
diff --git a/src/main/java/org/apache/commons/collections/map/LRUMap.java b/src/main/java/org/apache/commons/collections4/map/LRUMap.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/map/LRUMap.java
rename to src/main/java/org/apache/commons/collections4/map/LRUMap.java
index 109b25c15..4c2c6e68d 100644
--- a/src/main/java/org/apache/commons/collections/map/LRUMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/LRUMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.io.IOException;
import java.io.ObjectInputStream;
@@ -22,7 +22,7 @@ import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.Map;
-import org.apache.commons.collections.BoundedMap;
+import org.apache.commons.collections4.BoundedMap;
/**
* A Map implementation with a fixed maximum size which removes
@@ -38,7 +38,7 @@ import org.apache.commons.collections.BoundedMap;
* of modifying the map's iteration order and thus invalidating any
* iterators currently in use. It is therefore suggested that iterations
* over an {@link LRUMap} instance access entry values only through a
- * {@link org.apache.commons.collections.MapIterator MapIterator} or {@link #entrySet()} iterator.
+ * {@link org.apache.commons.collections4.MapIterator MapIterator} or {@link #entrySet()} iterator.
*
* The map implements OrderedMap and entries may be queried using
* the bidirectional OrderedMapIterator. The order returned is
diff --git a/src/main/java/org/apache/commons/collections/map/LazyMap.java b/src/main/java/org/apache/commons/collections4/map/LazyMap.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/map/LazyMap.java
rename to src/main/java/org/apache/commons/collections4/map/LazyMap.java
index 5ef621bf6..ea9070431 100644
--- a/src/main/java/org/apache/commons/collections/map/LazyMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/LazyMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.io.IOException;
import java.io.ObjectInputStream;
@@ -22,9 +22,9 @@ import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.Map;
-import org.apache.commons.collections.Factory;
-import org.apache.commons.collections.Transformer;
-import org.apache.commons.collections.functors.FactoryTransformer;
+import org.apache.commons.collections4.Factory;
+import org.apache.commons.collections4.Transformer;
+import org.apache.commons.collections4.functors.FactoryTransformer;
/**
* Decorates another Map to create objects in the map on demand.
diff --git a/src/main/java/org/apache/commons/collections/map/LazySortedMap.java b/src/main/java/org/apache/commons/collections4/map/LazySortedMap.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/map/LazySortedMap.java
rename to src/main/java/org/apache/commons/collections4/map/LazySortedMap.java
index 05ed96fe9..7b874bdfd 100644
--- a/src/main/java/org/apache/commons/collections/map/LazySortedMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/LazySortedMap.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.util.Comparator;
import java.util.SortedMap;
-import org.apache.commons.collections.Factory;
-import org.apache.commons.collections.Transformer;
+import org.apache.commons.collections4.Factory;
+import org.apache.commons.collections4.Transformer;
/**
* Decorates another SortedMap to create objects in the map on demand.
diff --git a/src/main/java/org/apache/commons/collections/map/LinkedMap.java b/src/main/java/org/apache/commons/collections4/map/LinkedMap.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/map/LinkedMap.java
rename to src/main/java/org/apache/commons/collections4/map/LinkedMap.java
index e69359182..eb5b44f3a 100644
--- a/src/main/java/org/apache/commons/collections/map/LinkedMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/LinkedMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.io.IOException;
import java.io.ObjectInputStream;
@@ -27,16 +27,16 @@ import java.util.List;
import java.util.ListIterator;
import java.util.Map;
-import org.apache.commons.collections.iterators.UnmodifiableIterator;
-import org.apache.commons.collections.iterators.UnmodifiableListIterator;
-import org.apache.commons.collections.list.UnmodifiableList;
+import org.apache.commons.collections4.iterators.UnmodifiableIterator;
+import org.apache.commons.collections4.iterators.UnmodifiableListIterator;
+import org.apache.commons.collections4.list.UnmodifiableList;
/**
* A Map implementation that maintains the order of the entries.
* In this implementation order is maintained by original insertion.
*
* This implementation improves on the JDK1.4 LinkedHashMap by adding the
- * {@link org.apache.commons.collections.MapIterator MapIterator}
+ * {@link org.apache.commons.collections4.MapIterator MapIterator}
* functionality, additional convenience methods and allowing
* bidirectional iteration. It also implements OrderedMap.
* In addition, non-interface methods are provided to access the map by index.
diff --git a/src/main/java/org/apache/commons/collections/map/ListOrderedMap.java b/src/main/java/org/apache/commons/collections4/map/ListOrderedMap.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/map/ListOrderedMap.java
rename to src/main/java/org/apache/commons/collections4/map/ListOrderedMap.java
index 337175c85..e3e48731b 100644
--- a/src/main/java/org/apache/commons/collections/map/ListOrderedMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/ListOrderedMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.io.IOException;
import java.io.ObjectInputStream;
@@ -32,12 +32,12 @@ import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Set;
-import org.apache.commons.collections.OrderedMap;
-import org.apache.commons.collections.OrderedMapIterator;
-import org.apache.commons.collections.ResettableIterator;
-import org.apache.commons.collections.iterators.AbstractUntypedIteratorDecorator;
-import org.apache.commons.collections.keyvalue.AbstractMapEntry;
-import org.apache.commons.collections.list.UnmodifiableList;
+import org.apache.commons.collections4.OrderedMap;
+import org.apache.commons.collections4.OrderedMapIterator;
+import org.apache.commons.collections4.ResettableIterator;
+import org.apache.commons.collections4.iterators.AbstractUntypedIteratorDecorator;
+import org.apache.commons.collections4.keyvalue.AbstractMapEntry;
+import org.apache.commons.collections4.list.UnmodifiableList;
/**
* Decorates a Map to ensure that the order of addition is retained
diff --git a/src/main/java/org/apache/commons/collections/map/MultiKeyMap.java b/src/main/java/org/apache/commons/collections4/map/MultiKeyMap.java
similarity index 99%
rename from src/main/java/org/apache/commons/collections/map/MultiKeyMap.java
rename to src/main/java/org/apache/commons/collections4/map/MultiKeyMap.java
index 8f558233d..48f7f9e77 100644
--- a/src/main/java/org/apache/commons/collections/map/MultiKeyMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/MultiKeyMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.io.IOException;
import java.io.ObjectInputStream;
@@ -22,9 +22,9 @@ import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.Map;
-import org.apache.commons.collections.IterableMap;
-import org.apache.commons.collections.MapIterator;
-import org.apache.commons.collections.keyvalue.MultiKey;
+import org.apache.commons.collections4.IterableMap;
+import org.apache.commons.collections4.MapIterator;
+import org.apache.commons.collections4.keyvalue.MultiKey;
/**
* A Map implementation that uses multiple keys to map the value.
diff --git a/src/main/java/org/apache/commons/collections/map/MultiValueMap.java b/src/main/java/org/apache/commons/collections4/map/MultiValueMap.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/map/MultiValueMap.java
rename to src/main/java/org/apache/commons/collections4/map/MultiValueMap.java
index 132fa3c37..ac0bdfe92 100644
--- a/src/main/java/org/apache/commons/collections/map/MultiValueMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/MultiValueMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.io.IOException;
import java.io.ObjectInputStream;
@@ -29,12 +29,12 @@ import java.util.Iterator;
import java.util.Map;
import java.util.Set;
-import org.apache.commons.collections.CollectionUtils;
-import org.apache.commons.collections.Factory;
-import org.apache.commons.collections.FunctorException;
-import org.apache.commons.collections.MultiMap;
-import org.apache.commons.collections.iterators.EmptyIterator;
-import org.apache.commons.collections.iterators.IteratorChain;
+import org.apache.commons.collections4.CollectionUtils;
+import org.apache.commons.collections4.Factory;
+import org.apache.commons.collections4.FunctorException;
+import org.apache.commons.collections4.MultiMap;
+import org.apache.commons.collections4.iterators.EmptyIterator;
+import org.apache.commons.collections4.iterators.IteratorChain;
/**
* A MultiValueMap decorates another map, allowing it to have
diff --git a/src/main/java/org/apache/commons/collections/map/PassiveExpiringMap.java b/src/main/java/org/apache/commons/collections4/map/PassiveExpiringMap.java
similarity index 99%
rename from src/main/java/org/apache/commons/collections/map/PassiveExpiringMap.java
rename to src/main/java/org/apache/commons/collections4/map/PassiveExpiringMap.java
index 56d5f4fb0..706c083bf 100644
--- a/src/main/java/org/apache/commons/collections/map/PassiveExpiringMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/PassiveExpiringMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.io.IOException;
import java.io.ObjectInputStream;
@@ -65,7 +65,7 @@ public class PassiveExpiringMap
implements Serializable {
/**
- * A {@link org.apache.commons.collections.map.PassiveExpiringMap.ExpirationPolicy ExpirationPolicy}
+ * A {@link org.apache.commons.collections4.map.PassiveExpiringMap.ExpirationPolicy ExpirationPolicy}
* that returns a expiration time that is a
* constant about of time in the future from the current time.
*
diff --git a/src/main/java/org/apache/commons/collections/map/PredicatedMap.java b/src/main/java/org/apache/commons/collections4/map/PredicatedMap.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/map/PredicatedMap.java
rename to src/main/java/org/apache/commons/collections4/map/PredicatedMap.java
index 5129f317f..d717ace4e 100644
--- a/src/main/java/org/apache/commons/collections/map/PredicatedMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/PredicatedMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.io.IOException;
import java.io.ObjectInputStream;
@@ -23,7 +23,7 @@ import java.io.Serializable;
import java.util.Iterator;
import java.util.Map;
-import org.apache.commons.collections.Predicate;
+import org.apache.commons.collections4.Predicate;
/**
* Decorates another Map to validate that additions
diff --git a/src/main/java/org/apache/commons/collections/map/PredicatedSortedMap.java b/src/main/java/org/apache/commons/collections4/map/PredicatedSortedMap.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/map/PredicatedSortedMap.java
rename to src/main/java/org/apache/commons/collections4/map/PredicatedSortedMap.java
index 0fd44e7e6..e847bde4c 100644
--- a/src/main/java/org/apache/commons/collections/map/PredicatedSortedMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/PredicatedSortedMap.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.util.Comparator;
import java.util.SortedMap;
-import org.apache.commons.collections.Predicate;
+import org.apache.commons.collections4.Predicate;
/**
* Decorates another SortedMap to validate that additions
diff --git a/src/main/java/org/apache/commons/collections/map/ReferenceIdentityMap.java b/src/main/java/org/apache/commons/collections4/map/ReferenceIdentityMap.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/map/ReferenceIdentityMap.java
rename to src/main/java/org/apache/commons/collections4/map/ReferenceIdentityMap.java
index d1582f652..d8978f597 100644
--- a/src/main/java/org/apache/commons/collections/map/ReferenceIdentityMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/ReferenceIdentityMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.io.IOException;
import java.io.ObjectInputStream;
@@ -40,7 +40,7 @@ import java.lang.ref.Reference;
* memory-sensitive cache.
*
* This map is similar to
- * {@link org.apache.commons.collections.map.ReferenceMap ReferenceMap}.
+ * {@link org.apache.commons.collections4.map.ReferenceMap ReferenceMap}.
* It differs in that keys and values in this class are compared using ==.
*
* This map will violate the detail of various Map and map view contracts.
diff --git a/src/main/java/org/apache/commons/collections/map/ReferenceMap.java b/src/main/java/org/apache/commons/collections4/map/ReferenceMap.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/map/ReferenceMap.java
rename to src/main/java/org/apache/commons/collections4/map/ReferenceMap.java
index c23007ff8..f229c570b 100644
--- a/src/main/java/org/apache/commons/collections/map/ReferenceMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/ReferenceMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.io.IOException;
import java.io.ObjectInputStream;
@@ -41,7 +41,7 @@ import java.io.Serializable;
* hard keys and soft values, providing a memory-sensitive cache.
*
* This map is similar to
- * {@link org.apache.commons.collections.map.ReferenceIdentityMap ReferenceIdentityMap}.
+ * {@link org.apache.commons.collections4.map.ReferenceIdentityMap ReferenceIdentityMap}.
* It differs in that keys and values in this class are compared using equals().
*
* This {@link java.util.Map Map} implementation does not allow null elements.
diff --git a/src/main/java/org/apache/commons/collections/map/SingletonMap.java b/src/main/java/org/apache/commons/collections4/map/SingletonMap.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/map/SingletonMap.java
rename to src/main/java/org/apache/commons/collections4/map/SingletonMap.java
index a1ee216aa..554aee4d7 100644
--- a/src/main/java/org/apache/commons/collections/map/SingletonMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/SingletonMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.io.Serializable;
import java.util.AbstractSet;
@@ -25,13 +25,13 @@ import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Set;
-import org.apache.commons.collections.BoundedMap;
-import org.apache.commons.collections.KeyValue;
-import org.apache.commons.collections.OrderedMap;
-import org.apache.commons.collections.OrderedMapIterator;
-import org.apache.commons.collections.ResettableIterator;
-import org.apache.commons.collections.iterators.SingletonIterator;
-import org.apache.commons.collections.keyvalue.TiedMapEntry;
+import org.apache.commons.collections4.BoundedMap;
+import org.apache.commons.collections4.KeyValue;
+import org.apache.commons.collections4.OrderedMap;
+import org.apache.commons.collections4.OrderedMapIterator;
+import org.apache.commons.collections4.ResettableIterator;
+import org.apache.commons.collections4.iterators.SingletonIterator;
+import org.apache.commons.collections4.keyvalue.TiedMapEntry;
/**
* A Map implementation that holds a single item and is fixed size.
diff --git a/src/main/java/org/apache/commons/collections/map/StaticBucketMap.java b/src/main/java/org/apache/commons/collections4/map/StaticBucketMap.java
similarity index 99%
rename from src/main/java/org/apache/commons/collections/map/StaticBucketMap.java
rename to src/main/java/org/apache/commons/collections4/map/StaticBucketMap.java
index f47d986b0..f2d989935 100644
--- a/src/main/java/org/apache/commons/collections/map/StaticBucketMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/StaticBucketMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.util.AbstractCollection;
import java.util.AbstractSet;
@@ -25,7 +25,7 @@ import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Set;
-import org.apache.commons.collections.KeyValue;
+import org.apache.commons.collections4.KeyValue;
/**
* A StaticBucketMap is an efficient, thread-safe implementation of
diff --git a/src/main/java/org/apache/commons/collections/map/TransformedMap.java b/src/main/java/org/apache/commons/collections4/map/TransformedMap.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/map/TransformedMap.java
rename to src/main/java/org/apache/commons/collections4/map/TransformedMap.java
index 23df66175..8d3725e22 100644
--- a/src/main/java/org/apache/commons/collections/map/TransformedMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/TransformedMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.io.IOException;
import java.io.ObjectInputStream;
@@ -22,7 +22,7 @@ import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.Map;
-import org.apache.commons.collections.Transformer;
+import org.apache.commons.collections4.Transformer;
/**
* Decorates another Map to transform objects that are added.
diff --git a/src/main/java/org/apache/commons/collections/map/TransformedSortedMap.java b/src/main/java/org/apache/commons/collections4/map/TransformedSortedMap.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/map/TransformedSortedMap.java
rename to src/main/java/org/apache/commons/collections4/map/TransformedSortedMap.java
index 07ec45bb7..d42eecd29 100644
--- a/src/main/java/org/apache/commons/collections/map/TransformedSortedMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/TransformedSortedMap.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.util.Comparator;
import java.util.Map;
import java.util.SortedMap;
-import org.apache.commons.collections.Transformer;
+import org.apache.commons.collections4.Transformer;
/**
* Decorates another SortedMap to transform objects that are added.
diff --git a/src/main/java/org/apache/commons/collections/map/UnmodifiableEntrySet.java b/src/main/java/org/apache/commons/collections4/map/UnmodifiableEntrySet.java
similarity index 94%
rename from src/main/java/org/apache/commons/collections/map/UnmodifiableEntrySet.java
rename to src/main/java/org/apache/commons/collections4/map/UnmodifiableEntrySet.java
index fb242c8a2..9355f4077 100644
--- a/src/main/java/org/apache/commons/collections/map/UnmodifiableEntrySet.java
+++ b/src/main/java/org/apache/commons/collections4/map/UnmodifiableEntrySet.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.lang.reflect.Array;
import java.util.Collection;
@@ -22,10 +22,10 @@ import java.util.Iterator;
import java.util.Map;
import java.util.Set;
-import org.apache.commons.collections.Unmodifiable;
-import org.apache.commons.collections.iterators.AbstractIteratorDecorator;
-import org.apache.commons.collections.keyvalue.AbstractMapEntryDecorator;
-import org.apache.commons.collections.set.AbstractSetDecorator;
+import org.apache.commons.collections4.set.AbstractSetDecorator;
+import org.apache.commons.collections4.Unmodifiable;
+import org.apache.commons.collections4.iterators.AbstractIteratorDecorator;
+import org.apache.commons.collections4.keyvalue.AbstractMapEntryDecorator;
/**
* Decorates a map entry Set to ensure it can't be altered.
diff --git a/src/main/java/org/apache/commons/collections/map/UnmodifiableMap.java b/src/main/java/org/apache/commons/collections4/map/UnmodifiableMap.java
similarity index 90%
rename from src/main/java/org/apache/commons/collections/map/UnmodifiableMap.java
rename to src/main/java/org/apache/commons/collections4/map/UnmodifiableMap.java
index 07f432fc6..e29d2bb4e 100644
--- a/src/main/java/org/apache/commons/collections/map/UnmodifiableMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/UnmodifiableMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.io.IOException;
import java.io.ObjectInputStream;
@@ -24,13 +24,13 @@ import java.util.Collection;
import java.util.Map;
import java.util.Set;
-import org.apache.commons.collections.IterableMap;
-import org.apache.commons.collections.MapIterator;
-import org.apache.commons.collections.Unmodifiable;
-import org.apache.commons.collections.collection.UnmodifiableCollection;
-import org.apache.commons.collections.iterators.EntrySetMapIterator;
-import org.apache.commons.collections.iterators.UnmodifiableMapIterator;
-import org.apache.commons.collections.set.UnmodifiableSet;
+import org.apache.commons.collections4.set.UnmodifiableSet;
+import org.apache.commons.collections4.IterableMap;
+import org.apache.commons.collections4.MapIterator;
+import org.apache.commons.collections4.Unmodifiable;
+import org.apache.commons.collections4.collection.UnmodifiableCollection;
+import org.apache.commons.collections4.iterators.EntrySetMapIterator;
+import org.apache.commons.collections4.iterators.UnmodifiableMapIterator;
/**
* Decorates another Map to ensure it can't be altered.
diff --git a/src/main/java/org/apache/commons/collections/map/UnmodifiableOrderedMap.java b/src/main/java/org/apache/commons/collections4/map/UnmodifiableOrderedMap.java
similarity index 91%
rename from src/main/java/org/apache/commons/collections/map/UnmodifiableOrderedMap.java
rename to src/main/java/org/apache/commons/collections4/map/UnmodifiableOrderedMap.java
index 43fa0ac37..ea7a6c889 100644
--- a/src/main/java/org/apache/commons/collections/map/UnmodifiableOrderedMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/UnmodifiableOrderedMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.io.IOException;
import java.io.ObjectInputStream;
@@ -24,12 +24,12 @@ import java.util.Collection;
import java.util.Map;
import java.util.Set;
-import org.apache.commons.collections.OrderedMap;
-import org.apache.commons.collections.OrderedMapIterator;
-import org.apache.commons.collections.Unmodifiable;
-import org.apache.commons.collections.collection.UnmodifiableCollection;
-import org.apache.commons.collections.iterators.UnmodifiableOrderedMapIterator;
-import org.apache.commons.collections.set.UnmodifiableSet;
+import org.apache.commons.collections4.set.UnmodifiableSet;
+import org.apache.commons.collections4.OrderedMap;
+import org.apache.commons.collections4.OrderedMapIterator;
+import org.apache.commons.collections4.Unmodifiable;
+import org.apache.commons.collections4.collection.UnmodifiableCollection;
+import org.apache.commons.collections4.iterators.UnmodifiableOrderedMapIterator;
/**
* Decorates another OrderedMap to ensure it can't be altered.
diff --git a/src/main/java/org/apache/commons/collections/map/UnmodifiableSortedMap.java b/src/main/java/org/apache/commons/collections4/map/UnmodifiableSortedMap.java
similarity index 95%
rename from src/main/java/org/apache/commons/collections/map/UnmodifiableSortedMap.java
rename to src/main/java/org/apache/commons/collections4/map/UnmodifiableSortedMap.java
index 6889e3274..af6b14668 100644
--- a/src/main/java/org/apache/commons/collections/map/UnmodifiableSortedMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/UnmodifiableSortedMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
import java.io.IOException;
import java.io.ObjectInputStream;
@@ -26,9 +26,9 @@ import java.util.Map;
import java.util.Set;
import java.util.SortedMap;
-import org.apache.commons.collections.Unmodifiable;
-import org.apache.commons.collections.collection.UnmodifiableCollection;
-import org.apache.commons.collections.set.UnmodifiableSet;
+import org.apache.commons.collections4.set.UnmodifiableSet;
+import org.apache.commons.collections4.Unmodifiable;
+import org.apache.commons.collections4.collection.UnmodifiableCollection;
/**
* Decorates another SortedMap to ensure it can't be altered.
diff --git a/src/main/java/org/apache/commons/collections/map/package-info.java b/src/main/java/org/apache/commons/collections4/map/package-info.java
similarity index 93%
rename from src/main/java/org/apache/commons/collections/map/package-info.java
rename to src/main/java/org/apache/commons/collections4/map/package-info.java
index 30f4cc8dc..7407697ab 100644
--- a/src/main/java/org/apache/commons/collections/map/package-info.java
+++ b/src/main/java/org/apache/commons/collections4/map/package-info.java
@@ -16,8 +16,8 @@
*/
/**
* This package contains implementations of the {@link java.util.Map Map},
- * {@link org.apache.commons.collections.IterableMap IterableMap},
- * {@link org.apache.commons.collections.OrderedMap OrderedMap} and
+ * {@link org.apache.commons.collections4.IterableMap IterableMap},
+ * {@link org.apache.commons.collections4.OrderedMap OrderedMap} and
* {@link java.util.SortedMap SortedMap} interfaces.
* A Map provides a lookup from a key to a value.
* A number of implementations also support the new MapIterator interface that enables
@@ -51,5 +51,5 @@
*
* @version $Id$
*/
-package org.apache.commons.collections.map;
+package org.apache.commons.collections4.map;
diff --git a/src/main/java/org/apache/commons/collections/overview.html b/src/main/java/org/apache/commons/collections4/overview.html
similarity index 100%
rename from src/main/java/org/apache/commons/collections/overview.html
rename to src/main/java/org/apache/commons/collections4/overview.html
diff --git a/src/main/java/org/apache/commons/collections/package-info.java b/src/main/java/org/apache/commons/collections4/package-info.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/package-info.java
rename to src/main/java/org/apache/commons/collections4/package-info.java
index 0718841fe..d7229f522 100644
--- a/src/main/java/org/apache/commons/collections/package-info.java
+++ b/src/main/java/org/apache/commons/collections4/package-info.java
@@ -24,4 +24,4 @@
*
* @version $Id$
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
diff --git a/src/main/java/org/apache/commons/collections/queue/AbstractQueueDecorator.java b/src/main/java/org/apache/commons/collections4/queue/AbstractQueueDecorator.java
similarity index 94%
rename from src/main/java/org/apache/commons/collections/queue/AbstractQueueDecorator.java
rename to src/main/java/org/apache/commons/collections4/queue/AbstractQueueDecorator.java
index 244406a46..065595e49 100644
--- a/src/main/java/org/apache/commons/collections/queue/AbstractQueueDecorator.java
+++ b/src/main/java/org/apache/commons/collections4/queue/AbstractQueueDecorator.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.queue;
+package org.apache.commons.collections4.queue;
import java.util.Queue;
-import org.apache.commons.collections.collection.AbstractCollectionDecorator;
+import org.apache.commons.collections4.collection.AbstractCollectionDecorator;
/**
* Decorates another {@link Queue} to provide additional behaviour.
diff --git a/src/main/java/org/apache/commons/collections/queue/CircularFifoQueue.java b/src/main/java/org/apache/commons/collections4/queue/CircularFifoQueue.java
similarity index 99%
rename from src/main/java/org/apache/commons/collections/queue/CircularFifoQueue.java
rename to src/main/java/org/apache/commons/collections4/queue/CircularFifoQueue.java
index 6d22ac230..d80bb67d1 100644
--- a/src/main/java/org/apache/commons/collections/queue/CircularFifoQueue.java
+++ b/src/main/java/org/apache/commons/collections4/queue/CircularFifoQueue.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.queue;
+package org.apache.commons.collections4.queue;
import java.io.IOException;
import java.io.ObjectInputStream;
@@ -27,7 +27,7 @@ import java.util.Iterator;
import java.util.NoSuchElementException;
import java.util.Queue;
-import org.apache.commons.collections.BoundedCollection;
+import org.apache.commons.collections4.BoundedCollection;
/**
* CircularFifoQueue is a first-in first-out queue with a fixed size that
diff --git a/src/main/java/org/apache/commons/collections/queue/PredicatedQueue.java b/src/main/java/org/apache/commons/collections4/queue/PredicatedQueue.java
similarity index 95%
rename from src/main/java/org/apache/commons/collections/queue/PredicatedQueue.java
rename to src/main/java/org/apache/commons/collections4/queue/PredicatedQueue.java
index df888af05..b4913c29a 100644
--- a/src/main/java/org/apache/commons/collections/queue/PredicatedQueue.java
+++ b/src/main/java/org/apache/commons/collections4/queue/PredicatedQueue.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.queue;
+package org.apache.commons.collections4.queue;
import java.util.Queue;
-import org.apache.commons.collections.Predicate;
-import org.apache.commons.collections.collection.PredicatedCollection;
+import org.apache.commons.collections4.Predicate;
+import org.apache.commons.collections4.collection.PredicatedCollection;
/**
* Decorates another {@link Queue} to validate that additions
diff --git a/src/main/java/org/apache/commons/collections/queue/TransformedQueue.java b/src/main/java/org/apache/commons/collections4/queue/TransformedQueue.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/queue/TransformedQueue.java
rename to src/main/java/org/apache/commons/collections4/queue/TransformedQueue.java
index 2aab02536..ec934ffe8 100644
--- a/src/main/java/org/apache/commons/collections/queue/TransformedQueue.java
+++ b/src/main/java/org/apache/commons/collections4/queue/TransformedQueue.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.queue;
+package org.apache.commons.collections4.queue;
import java.util.Queue;
-import org.apache.commons.collections.Transformer;
-import org.apache.commons.collections.collection.TransformedCollection;
+import org.apache.commons.collections4.Transformer;
+import org.apache.commons.collections4.collection.TransformedCollection;
/**
* Decorates another {@link Queue} to transform objects that are added.
diff --git a/src/main/java/org/apache/commons/collections/queue/UnmodifiableQueue.java b/src/main/java/org/apache/commons/collections4/queue/UnmodifiableQueue.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/queue/UnmodifiableQueue.java
rename to src/main/java/org/apache/commons/collections4/queue/UnmodifiableQueue.java
index 2f9471df6..253787665 100644
--- a/src/main/java/org/apache/commons/collections/queue/UnmodifiableQueue.java
+++ b/src/main/java/org/apache/commons/collections4/queue/UnmodifiableQueue.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.queue;
+package org.apache.commons.collections4.queue;
import java.io.IOException;
import java.io.ObjectInputStream;
@@ -24,8 +24,8 @@ import java.util.Collection;
import java.util.Iterator;
import java.util.Queue;
-import org.apache.commons.collections.Unmodifiable;
-import org.apache.commons.collections.iterators.UnmodifiableIterator;
+import org.apache.commons.collections4.Unmodifiable;
+import org.apache.commons.collections4.iterators.UnmodifiableIterator;
/**
* Decorates another {@link Queue} to ensure it can't be altered.
diff --git a/src/main/java/org/apache/commons/collections/queue/package-info.java b/src/main/java/org/apache/commons/collections4/queue/package-info.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/queue/package-info.java
rename to src/main/java/org/apache/commons/collections4/queue/package-info.java
index dd885add4..a351299e3 100644
--- a/src/main/java/org/apache/commons/collections/queue/package-info.java
+++ b/src/main/java/org/apache/commons/collections4/queue/package-info.java
@@ -31,4 +31,4 @@
*
* @version $Id$
*/
-package org.apache.commons.collections.queue;
+package org.apache.commons.collections4.queue;
diff --git a/src/main/java/org/apache/commons/collections/set/AbstractSerializableSetDecorator.java b/src/main/java/org/apache/commons/collections4/set/AbstractSerializableSetDecorator.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/set/AbstractSerializableSetDecorator.java
rename to src/main/java/org/apache/commons/collections4/set/AbstractSerializableSetDecorator.java
index b286da8e2..b002381cd 100644
--- a/src/main/java/org/apache/commons/collections/set/AbstractSerializableSetDecorator.java
+++ b/src/main/java/org/apache/commons/collections4/set/AbstractSerializableSetDecorator.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.set;
+package org.apache.commons.collections4.set;
import java.io.IOException;
import java.io.ObjectInputStream;
diff --git a/src/main/java/org/apache/commons/collections/set/AbstractSetDecorator.java b/src/main/java/org/apache/commons/collections4/set/AbstractSetDecorator.java
similarity index 93%
rename from src/main/java/org/apache/commons/collections/set/AbstractSetDecorator.java
rename to src/main/java/org/apache/commons/collections4/set/AbstractSetDecorator.java
index 55d56ae3f..b12e627da 100644
--- a/src/main/java/org/apache/commons/collections/set/AbstractSetDecorator.java
+++ b/src/main/java/org/apache/commons/collections4/set/AbstractSetDecorator.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.set;
+package org.apache.commons.collections4.set;
import java.util.Set;
-import org.apache.commons.collections.collection.AbstractCollectionDecorator;
+import org.apache.commons.collections4.collection.AbstractCollectionDecorator;
/**
* Decorates another Set to provide additional behaviour.
diff --git a/src/main/java/org/apache/commons/collections/set/AbstractSortedSetDecorator.java b/src/main/java/org/apache/commons/collections4/set/AbstractSortedSetDecorator.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/set/AbstractSortedSetDecorator.java
rename to src/main/java/org/apache/commons/collections4/set/AbstractSortedSetDecorator.java
index e549331b5..7ef623374 100644
--- a/src/main/java/org/apache/commons/collections/set/AbstractSortedSetDecorator.java
+++ b/src/main/java/org/apache/commons/collections4/set/AbstractSortedSetDecorator.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.set;
+package org.apache.commons.collections4.set;
import java.util.Comparator;
import java.util.Set;
diff --git a/src/main/java/org/apache/commons/collections/set/CompositeSet.java b/src/main/java/org/apache/commons/collections4/set/CompositeSet.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/set/CompositeSet.java
rename to src/main/java/org/apache/commons/collections4/set/CompositeSet.java
index 2444d62f6..499ca0440 100644
--- a/src/main/java/org/apache/commons/collections/set/CompositeSet.java
+++ b/src/main/java/org/apache/commons/collections4/set/CompositeSet.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.set;
+package org.apache.commons.collections4.set;
import java.io.Serializable;
import java.lang.reflect.Array;
@@ -26,10 +26,10 @@ import java.util.Iterator;
import java.util.List;
import java.util.Set;
-import org.apache.commons.collections.CollectionUtils;
-import org.apache.commons.collections.iterators.EmptyIterator;
-import org.apache.commons.collections.iterators.IteratorChain;
-import org.apache.commons.collections.list.UnmodifiableList;
+import org.apache.commons.collections4.CollectionUtils;
+import org.apache.commons.collections4.iterators.EmptyIterator;
+import org.apache.commons.collections4.iterators.IteratorChain;
+import org.apache.commons.collections4.list.UnmodifiableList;
/**
* Decorates a set of other sets to provide a single unified view.
@@ -39,7 +39,7 @@ import org.apache.commons.collections.list.UnmodifiableList;
* If no strategy is provided then add is unsupported.
*
* From version 4.0, this class does not extend
- * {@link org.apache.commons.collections.collection.CompositeCollection CompositeCollection}
+ * {@link org.apache.commons.collections4.collection.CompositeCollection CompositeCollection}
* anymore due to its input restrictions (only accepts Sets).
* See COLLECTIONS-424
* for more details.
diff --git a/src/main/java/org/apache/commons/collections/set/ListOrderedSet.java b/src/main/java/org/apache/commons/collections4/set/ListOrderedSet.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/set/ListOrderedSet.java
rename to src/main/java/org/apache/commons/collections4/set/ListOrderedSet.java
index 72109c7ec..0d00c4fde 100644
--- a/src/main/java/org/apache/commons/collections/set/ListOrderedSet.java
+++ b/src/main/java/org/apache/commons/collections4/set/ListOrderedSet.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.set;
+package org.apache.commons.collections4.set;
import java.util.ArrayList;
import java.util.Collection;
@@ -24,9 +24,9 @@ import java.util.List;
import java.util.ListIterator;
import java.util.Set;
-import org.apache.commons.collections.OrderedIterator;
-import org.apache.commons.collections.iterators.AbstractIteratorDecorator;
-import org.apache.commons.collections.list.UnmodifiableList;
+import org.apache.commons.collections4.OrderedIterator;
+import org.apache.commons.collections4.iterators.AbstractIteratorDecorator;
+import org.apache.commons.collections4.list.UnmodifiableList;
/**
* Decorates another Set to ensure that the order of addition is
diff --git a/src/main/java/org/apache/commons/collections/set/MapBackedSet.java b/src/main/java/org/apache/commons/collections4/set/MapBackedSet.java
similarity index 99%
rename from src/main/java/org/apache/commons/collections/set/MapBackedSet.java
rename to src/main/java/org/apache/commons/collections4/set/MapBackedSet.java
index 7a22e5868..a7ff712c1 100644
--- a/src/main/java/org/apache/commons/collections/set/MapBackedSet.java
+++ b/src/main/java/org/apache/commons/collections4/set/MapBackedSet.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.set;
+package org.apache.commons.collections4.set;
import java.io.Serializable;
import java.util.Collection;
diff --git a/src/main/java/org/apache/commons/collections/set/PredicatedSet.java b/src/main/java/org/apache/commons/collections4/set/PredicatedSet.java
similarity index 94%
rename from src/main/java/org/apache/commons/collections/set/PredicatedSet.java
rename to src/main/java/org/apache/commons/collections4/set/PredicatedSet.java
index a64b4d53d..e175b7002 100644
--- a/src/main/java/org/apache/commons/collections/set/PredicatedSet.java
+++ b/src/main/java/org/apache/commons/collections4/set/PredicatedSet.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.set;
+package org.apache.commons.collections4.set;
import java.util.Set;
-import org.apache.commons.collections.Predicate;
-import org.apache.commons.collections.collection.PredicatedCollection;
+import org.apache.commons.collections4.Predicate;
+import org.apache.commons.collections4.collection.PredicatedCollection;
/**
* Decorates another Set to validate that all additions
diff --git a/src/main/java/org/apache/commons/collections/set/PredicatedSortedSet.java b/src/main/java/org/apache/commons/collections4/set/PredicatedSortedSet.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/set/PredicatedSortedSet.java
rename to src/main/java/org/apache/commons/collections4/set/PredicatedSortedSet.java
index 13be8b2d8..53f8eed27 100644
--- a/src/main/java/org/apache/commons/collections/set/PredicatedSortedSet.java
+++ b/src/main/java/org/apache/commons/collections4/set/PredicatedSortedSet.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.set;
+package org.apache.commons.collections4.set;
import java.util.Comparator;
import java.util.SortedSet;
-import org.apache.commons.collections.Predicate;
+import org.apache.commons.collections4.Predicate;
/**
* Decorates another SortedSet to validate that all additions
diff --git a/src/main/java/org/apache/commons/collections/set/TransformedSet.java b/src/main/java/org/apache/commons/collections4/set/TransformedSet.java
similarity index 95%
rename from src/main/java/org/apache/commons/collections/set/TransformedSet.java
rename to src/main/java/org/apache/commons/collections4/set/TransformedSet.java
index 92099cc53..1f8330d94 100644
--- a/src/main/java/org/apache/commons/collections/set/TransformedSet.java
+++ b/src/main/java/org/apache/commons/collections4/set/TransformedSet.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.set;
+package org.apache.commons.collections4.set;
import java.util.Set;
-import org.apache.commons.collections.Transformer;
-import org.apache.commons.collections.collection.TransformedCollection;
+import org.apache.commons.collections4.Transformer;
+import org.apache.commons.collections4.collection.TransformedCollection;
/**
* Decorates another Set to transform objects that are added.
diff --git a/src/main/java/org/apache/commons/collections/set/TransformedSortedSet.java b/src/main/java/org/apache/commons/collections4/set/TransformedSortedSet.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/set/TransformedSortedSet.java
rename to src/main/java/org/apache/commons/collections4/set/TransformedSortedSet.java
index 62f2ed94b..380200b81 100644
--- a/src/main/java/org/apache/commons/collections/set/TransformedSortedSet.java
+++ b/src/main/java/org/apache/commons/collections4/set/TransformedSortedSet.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.set;
+package org.apache.commons.collections4.set;
import java.util.Comparator;
import java.util.SortedSet;
-import org.apache.commons.collections.Transformer;
+import org.apache.commons.collections4.Transformer;
/**
* Decorates another SortedSet to transform objects that are added.
diff --git a/src/main/java/org/apache/commons/collections/set/UnmodifiableSet.java b/src/main/java/org/apache/commons/collections4/set/UnmodifiableSet.java
similarity index 94%
rename from src/main/java/org/apache/commons/collections/set/UnmodifiableSet.java
rename to src/main/java/org/apache/commons/collections4/set/UnmodifiableSet.java
index e9a537d83..603740dc0 100644
--- a/src/main/java/org/apache/commons/collections/set/UnmodifiableSet.java
+++ b/src/main/java/org/apache/commons/collections4/set/UnmodifiableSet.java
@@ -14,14 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.set;
+package org.apache.commons.collections4.set;
import java.util.Collection;
import java.util.Iterator;
import java.util.Set;
-import org.apache.commons.collections.Unmodifiable;
-import org.apache.commons.collections.iterators.UnmodifiableIterator;
+import org.apache.commons.collections4.Unmodifiable;
+import org.apache.commons.collections4.iterators.UnmodifiableIterator;
/**
* Decorates another Set to ensure it can't be altered.
diff --git a/src/main/java/org/apache/commons/collections/set/UnmodifiableSortedSet.java b/src/main/java/org/apache/commons/collections4/set/UnmodifiableSortedSet.java
similarity index 96%
rename from src/main/java/org/apache/commons/collections/set/UnmodifiableSortedSet.java
rename to src/main/java/org/apache/commons/collections4/set/UnmodifiableSortedSet.java
index a399a2cb5..67573cb89 100644
--- a/src/main/java/org/apache/commons/collections/set/UnmodifiableSortedSet.java
+++ b/src/main/java/org/apache/commons/collections4/set/UnmodifiableSortedSet.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.set;
+package org.apache.commons.collections4.set;
import java.io.IOException;
import java.io.ObjectInputStream;
@@ -24,8 +24,8 @@ import java.util.Collection;
import java.util.Iterator;
import java.util.SortedSet;
-import org.apache.commons.collections.Unmodifiable;
-import org.apache.commons.collections.iterators.UnmodifiableIterator;
+import org.apache.commons.collections4.Unmodifiable;
+import org.apache.commons.collections4.iterators.UnmodifiableIterator;
/**
* Decorates another SortedSet to ensure it can't be altered.
diff --git a/src/main/java/org/apache/commons/collections/set/package-info.java b/src/main/java/org/apache/commons/collections4/set/package-info.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/set/package-info.java
rename to src/main/java/org/apache/commons/collections4/set/package-info.java
index 56d7698b6..0eb0975a6 100644
--- a/src/main/java/org/apache/commons/collections/set/package-info.java
+++ b/src/main/java/org/apache/commons/collections4/set/package-info.java
@@ -37,4 +37,4 @@
*
* @version $Id$
*/
-package org.apache.commons.collections.set;
+package org.apache.commons.collections4.set;
diff --git a/src/main/java/org/apache/commons/collections/splitmap/AbstractIterableGetMapDecorator.java b/src/main/java/org/apache/commons/collections4/splitmap/AbstractIterableGetMapDecorator.java
similarity index 90%
rename from src/main/java/org/apache/commons/collections/splitmap/AbstractIterableGetMapDecorator.java
rename to src/main/java/org/apache/commons/collections4/splitmap/AbstractIterableGetMapDecorator.java
index ba12e6ef8..c9f4f52a0 100644
--- a/src/main/java/org/apache/commons/collections/splitmap/AbstractIterableGetMapDecorator.java
+++ b/src/main/java/org/apache/commons/collections4/splitmap/AbstractIterableGetMapDecorator.java
@@ -14,19 +14,19 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.splitmap;
+package org.apache.commons.collections4.splitmap;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
-import org.apache.commons.collections.IterableGet;
-import org.apache.commons.collections.MapIterator;
-import org.apache.commons.collections.map.EntrySetToMapIteratorAdapter;
+import org.apache.commons.collections4.IterableGet;
+import org.apache.commons.collections4.MapIterator;
+import org.apache.commons.collections4.map.EntrySetToMapIteratorAdapter;
/**
* {@link IterableGet} that uses a {@link Map} for the
- * {@link org.apache.commons.collections.Get Get} implementation.
+ * {@link org.apache.commons.collections4.Get Get} implementation.
*
* @since 4.0
* @version $Id$
diff --git a/src/main/java/org/apache/commons/collections/splitmap/TransformedMap.java b/src/main/java/org/apache/commons/collections4/splitmap/TransformedMap.java
similarity index 94%
rename from src/main/java/org/apache/commons/collections/splitmap/TransformedMap.java
rename to src/main/java/org/apache/commons/collections4/splitmap/TransformedMap.java
index 4b87aeb34..7c7f3f99f 100644
--- a/src/main/java/org/apache/commons/collections/splitmap/TransformedMap.java
+++ b/src/main/java/org/apache/commons/collections4/splitmap/TransformedMap.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.splitmap;
+package org.apache.commons.collections4.splitmap;
import java.io.IOException;
import java.io.ObjectInputStream;
@@ -22,9 +22,9 @@ import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.Map;
-import org.apache.commons.collections.Put;
-import org.apache.commons.collections.Transformer;
-import org.apache.commons.collections.map.LinkedMap;
+import org.apache.commons.collections4.Put;
+import org.apache.commons.collections4.Transformer;
+import org.apache.commons.collections4.map.LinkedMap;
/**
* Decorates another {@link Map} to transform objects that are added.
@@ -42,7 +42,7 @@ import org.apache.commons.collections.map.LinkedMap;
* synchronization.
*
* The "put" and "get" type constraints of this class are mutually independent;
- * contrast with {@link org.apache.commons.collections.map.TransformedMap} which,
+ * contrast with {@link org.apache.commons.collections4.map.TransformedMap} which,
* by virtue of its implementing {@link Map}<K, V>, must be constructed in such
* a way that its read and write parameters are generalized to a common (super-)type.
* In practice this would often mean >Object, Object>, defeating
@@ -50,13 +50,13 @@ import org.apache.commons.collections.map.LinkedMap;
*
* On the downside, this class is not drop-in compatible with {@link java.util.Map}
* but is intended to be worked with either directly or by {@link Put} and
- * {@link org.apache.commons.collections.Get Get} generalizations.
+ * {@link org.apache.commons.collections4.Get Get} generalizations.
*
* @since 4.0
* @version $Id$
*
- * @see org.apache.commons.collections.SplitMapUtils#readableMap(Get)
- * @see org.apache.commons.collections.SplitMapUtils#writableMap(Put)
+ * @see org.apache.commons.collections4.SplitMapUtils#readableMap(Get)
+ * @see org.apache.commons.collections4.SplitMapUtils#writableMap(Put)
*/
public class TransformedMap extends AbstractIterableGetMapDecorator
implements Put, Serializable {
diff --git a/src/main/java/org/apache/commons/collections/splitmap/package-info.java b/src/main/java/org/apache/commons/collections4/splitmap/package-info.java
similarity index 83%
rename from src/main/java/org/apache/commons/collections/splitmap/package-info.java
rename to src/main/java/org/apache/commons/collections4/splitmap/package-info.java
index 1f4e85a9e..b4de18080 100644
--- a/src/main/java/org/apache/commons/collections/splitmap/package-info.java
+++ b/src/main/java/org/apache/commons/collections4/splitmap/package-info.java
@@ -16,8 +16,8 @@
*/
/**
* The "split map" concept is that of an object that implements
- * the {@link org.apache.commons.collections.Put Put} and
- * {@link org.apache.commons.collections.Get Get} interfaces,
+ * the {@link org.apache.commons.collections4.Put Put} and
+ * {@link org.apache.commons.collections4.Get Get} interfaces,
* with differing generic types. This is like a pre-generics
* {@link java.util.Map Map} whose input key/value constraints are
* different than its output key/value constraints. While it would
@@ -25,8 +25,8 @@
* key/value constraints, this would be a {@link java.util.Map Map}
* and would therefore make little sense (any Commons Collections
* {@link java.util.Map Map} implementation will also implement
- * {@link org.apache.commons.collections.Put Put} and
- * {@link org.apache.commons.collections.Get Get} with matching
+ * {@link org.apache.commons.collections4.Put Put} and
+ * {@link org.apache.commons.collections4.Get Get} with matching
* generic parameters).
*
* The following decorators are provided:
@@ -36,4 +36,4 @@
*
* @version $Id$
*/
-package org.apache.commons.collections.splitmap;
+package org.apache.commons.collections4.splitmap;
diff --git a/src/main/java/org/apache/commons/collections/trie/AbstractKeyAnalyzer.java b/src/main/java/org/apache/commons/collections4/trie/AbstractKeyAnalyzer.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/trie/AbstractKeyAnalyzer.java
rename to src/main/java/org/apache/commons/collections4/trie/AbstractKeyAnalyzer.java
index 37f369204..9d02fc974 100644
--- a/src/main/java/org/apache/commons/collections/trie/AbstractKeyAnalyzer.java
+++ b/src/main/java/org/apache/commons/collections4/trie/AbstractKeyAnalyzer.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.trie;
+package org.apache.commons.collections4.trie;
/**
* TODO: add javadoc
diff --git a/src/main/java/org/apache/commons/collections/trie/AbstractTrie.java b/src/main/java/org/apache/commons/collections4/trie/AbstractTrie.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/trie/AbstractTrie.java
rename to src/main/java/org/apache/commons/collections4/trie/AbstractTrie.java
index 451bc9b21..2e508e619 100644
--- a/src/main/java/org/apache/commons/collections/trie/AbstractTrie.java
+++ b/src/main/java/org/apache/commons/collections4/trie/AbstractTrie.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.trie;
+package org.apache.commons.collections4.trie;
import java.io.Serializable;
import java.util.AbstractMap;
import java.util.Map;
-import org.apache.commons.collections.Trie;
+import org.apache.commons.collections4.Trie;
/**
* This class provides some basic {@link Trie} functionality and
diff --git a/src/main/java/org/apache/commons/collections/trie/ByteArrayKeyAnalyzer.java b/src/main/java/org/apache/commons/collections4/trie/ByteArrayKeyAnalyzer.java
similarity index 99%
rename from src/main/java/org/apache/commons/collections/trie/ByteArrayKeyAnalyzer.java
rename to src/main/java/org/apache/commons/collections4/trie/ByteArrayKeyAnalyzer.java
index f9227fa7c..0dce8aa1b 100644
--- a/src/main/java/org/apache/commons/collections/trie/ByteArrayKeyAnalyzer.java
+++ b/src/main/java/org/apache/commons/collections4/trie/ByteArrayKeyAnalyzer.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.trie;
+package org.apache.commons.collections4.trie;
/**
* A {@link KeyAnalyzer} for byte[]s.
diff --git a/src/main/java/org/apache/commons/collections/trie/ByteKeyAnalyzer.java b/src/main/java/org/apache/commons/collections4/trie/ByteKeyAnalyzer.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/trie/ByteKeyAnalyzer.java
rename to src/main/java/org/apache/commons/collections4/trie/ByteKeyAnalyzer.java
index 5f4f0efff..1541fdca2 100644
--- a/src/main/java/org/apache/commons/collections/trie/ByteKeyAnalyzer.java
+++ b/src/main/java/org/apache/commons/collections4/trie/ByteKeyAnalyzer.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.trie;
+package org.apache.commons.collections4.trie;
/**
* A {@link KeyAnalyzer} for {@link Byte}s.
diff --git a/src/main/java/org/apache/commons/collections/trie/CharArrayKeyAnalyzer.java b/src/main/java/org/apache/commons/collections4/trie/CharArrayKeyAnalyzer.java
similarity index 99%
rename from src/main/java/org/apache/commons/collections/trie/CharArrayKeyAnalyzer.java
rename to src/main/java/org/apache/commons/collections4/trie/CharArrayKeyAnalyzer.java
index 712937b5c..23c4d8d01 100644
--- a/src/main/java/org/apache/commons/collections/trie/CharArrayKeyAnalyzer.java
+++ b/src/main/java/org/apache/commons/collections4/trie/CharArrayKeyAnalyzer.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.trie;
+package org.apache.commons.collections4.trie;
/**
* An {@link KeyAnalyzer} for {@code char[]}s.
diff --git a/src/main/java/org/apache/commons/collections/trie/CharacterKeyAnalyzer.java b/src/main/java/org/apache/commons/collections4/trie/CharacterKeyAnalyzer.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/trie/CharacterKeyAnalyzer.java
rename to src/main/java/org/apache/commons/collections4/trie/CharacterKeyAnalyzer.java
index f666e99af..10e2a3b52 100644
--- a/src/main/java/org/apache/commons/collections/trie/CharacterKeyAnalyzer.java
+++ b/src/main/java/org/apache/commons/collections4/trie/CharacterKeyAnalyzer.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.trie;
+package org.apache.commons.collections4.trie;
/**
* A {@link KeyAnalyzer} for {@link Character}s.
diff --git a/src/main/java/org/apache/commons/collections/trie/IntegerKeyAnalyzer.java b/src/main/java/org/apache/commons/collections4/trie/IntegerKeyAnalyzer.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/trie/IntegerKeyAnalyzer.java
rename to src/main/java/org/apache/commons/collections4/trie/IntegerKeyAnalyzer.java
index ad0db207b..6fb29ba40 100644
--- a/src/main/java/org/apache/commons/collections/trie/IntegerKeyAnalyzer.java
+++ b/src/main/java/org/apache/commons/collections4/trie/IntegerKeyAnalyzer.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.trie;
+package org.apache.commons.collections4.trie;
/**
* A {@link KeyAnalyzer} for {@link Integer}s.
diff --git a/src/main/java/org/apache/commons/collections/trie/KeyAnalyzer.java b/src/main/java/org/apache/commons/collections4/trie/KeyAnalyzer.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/trie/KeyAnalyzer.java
rename to src/main/java/org/apache/commons/collections4/trie/KeyAnalyzer.java
index 8d16a16c3..5c3a7cbbd 100644
--- a/src/main/java/org/apache/commons/collections/trie/KeyAnalyzer.java
+++ b/src/main/java/org/apache/commons/collections4/trie/KeyAnalyzer.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.trie;
+package org.apache.commons.collections4.trie;
import java.io.Serializable;
import java.util.Comparator;
/**
- * Defines the interface to analyze {@link org.apache.commons.collections.Trie Trie} keys on a bit level.
+ * Defines the interface to analyze {@link org.apache.commons.collections4.Trie Trie} keys on a bit level.
* {@link KeyAnalyzer}'s methods return the length of the key in bits,
* whether or not a bit is set, and bits per element in the key.
*
diff --git a/src/main/java/org/apache/commons/collections/trie/LongKeyAnalyzer.java b/src/main/java/org/apache/commons/collections4/trie/LongKeyAnalyzer.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/trie/LongKeyAnalyzer.java
rename to src/main/java/org/apache/commons/collections4/trie/LongKeyAnalyzer.java
index 03b26a32e..b79569a6b 100644
--- a/src/main/java/org/apache/commons/collections/trie/LongKeyAnalyzer.java
+++ b/src/main/java/org/apache/commons/collections4/trie/LongKeyAnalyzer.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.trie;
+package org.apache.commons.collections4.trie;
/**
* A {@link KeyAnalyzer} for {@link Long}s.
diff --git a/src/main/java/org/apache/commons/collections/trie/PatriciaTrie.java b/src/main/java/org/apache/commons/collections4/trie/PatriciaTrie.java
similarity index 99%
rename from src/main/java/org/apache/commons/collections/trie/PatriciaTrie.java
rename to src/main/java/org/apache/commons/collections4/trie/PatriciaTrie.java
index bfd230f96..9bcf72fd4 100644
--- a/src/main/java/org/apache/commons/collections/trie/PatriciaTrie.java
+++ b/src/main/java/org/apache/commons/collections4/trie/PatriciaTrie.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.trie;
+package org.apache.commons.collections4.trie;
import java.util.AbstractMap;
import java.util.AbstractSet;
@@ -26,7 +26,7 @@ import java.util.NoSuchElementException;
import java.util.Set;
import java.util.SortedMap;
-import org.apache.commons.collections.Trie;
+import org.apache.commons.collections4.Trie;
/**
*
PATRICIA {@link Trie}
diff --git a/src/main/java/org/apache/commons/collections/trie/PatriciaTrieBase.java b/src/main/java/org/apache/commons/collections4/trie/PatriciaTrieBase.java
similarity index 99%
rename from src/main/java/org/apache/commons/collections/trie/PatriciaTrieBase.java
rename to src/main/java/org/apache/commons/collections4/trie/PatriciaTrieBase.java
index 491f0e639..3e7341179 100644
--- a/src/main/java/org/apache/commons/collections/trie/PatriciaTrieBase.java
+++ b/src/main/java/org/apache/commons/collections4/trie/PatriciaTrieBase.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.trie;
+package org.apache.commons.collections4.trie;
import java.util.AbstractCollection;
import java.util.AbstractSet;
@@ -25,7 +25,7 @@ import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Set;
-import org.apache.commons.collections.Trie.Cursor.Decision;
+import org.apache.commons.collections4.Trie.Cursor.Decision;
/**
* This class implements the base PATRICIA algorithm and everything that
@@ -69,8 +69,8 @@ abstract class PatriciaTrieBase extends AbstractTrie {
}
/**
- * Constructs a new {@link org.apache.commons.collections.Trie Trie} using the given {@link KeyAnalyzer}
- * and initializes the {@link org.apache.commons.collections.Trie Trie} with the values from the
+ * Constructs a new {@link org.apache.commons.collections4.Trie Trie} using the given {@link KeyAnalyzer}
+ * and initializes the {@link org.apache.commons.collections4.Trie Trie} with the values from the
* provided {@link Map}.
*/
public PatriciaTrieBase(final KeyAnalyzer super K> keyAnalyzer,
diff --git a/src/main/java/org/apache/commons/collections/trie/ShortKeyAnalyzer.java b/src/main/java/org/apache/commons/collections4/trie/ShortKeyAnalyzer.java
similarity index 98%
rename from src/main/java/org/apache/commons/collections/trie/ShortKeyAnalyzer.java
rename to src/main/java/org/apache/commons/collections4/trie/ShortKeyAnalyzer.java
index f936b7447..b2debe10d 100644
--- a/src/main/java/org/apache/commons/collections/trie/ShortKeyAnalyzer.java
+++ b/src/main/java/org/apache/commons/collections4/trie/ShortKeyAnalyzer.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.trie;
+package org.apache.commons.collections4.trie;
/**
* A {@link KeyAnalyzer} for {@link Short}s.
diff --git a/src/main/java/org/apache/commons/collections/trie/StringKeyAnalyzer.java b/src/main/java/org/apache/commons/collections4/trie/StringKeyAnalyzer.java
similarity index 99%
rename from src/main/java/org/apache/commons/collections/trie/StringKeyAnalyzer.java
rename to src/main/java/org/apache/commons/collections4/trie/StringKeyAnalyzer.java
index 78317234a..eac7a12b4 100644
--- a/src/main/java/org/apache/commons/collections/trie/StringKeyAnalyzer.java
+++ b/src/main/java/org/apache/commons/collections4/trie/StringKeyAnalyzer.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.trie;
+package org.apache.commons.collections4.trie;
/**
* An {@link KeyAnalyzer} for {@link String}s.
diff --git a/src/main/java/org/apache/commons/collections/trie/SynchronizedTrie.java b/src/main/java/org/apache/commons/collections4/trie/SynchronizedTrie.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/trie/SynchronizedTrie.java
rename to src/main/java/org/apache/commons/collections4/trie/SynchronizedTrie.java
index 2b01b93f5..7394f768c 100644
--- a/src/main/java/org/apache/commons/collections/trie/SynchronizedTrie.java
+++ b/src/main/java/org/apache/commons/collections4/trie/SynchronizedTrie.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.trie;
+package org.apache.commons.collections4.trie;
import java.io.Serializable;
import java.util.Collection;
@@ -24,8 +24,8 @@ import java.util.Map;
import java.util.Set;
import java.util.SortedMap;
-import org.apache.commons.collections.Trie;
-import org.apache.commons.collections.collection.SynchronizedCollection;
+import org.apache.commons.collections4.Trie;
+import org.apache.commons.collections4.collection.SynchronizedCollection;
/**
* A synchronized {@link Trie}.
diff --git a/src/main/java/org/apache/commons/collections/trie/UnmodifiableTrie.java b/src/main/java/org/apache/commons/collections4/trie/UnmodifiableTrie.java
similarity index 97%
rename from src/main/java/org/apache/commons/collections/trie/UnmodifiableTrie.java
rename to src/main/java/org/apache/commons/collections4/trie/UnmodifiableTrie.java
index b27dcac14..992e35e5e 100644
--- a/src/main/java/org/apache/commons/collections/trie/UnmodifiableTrie.java
+++ b/src/main/java/org/apache/commons/collections4/trie/UnmodifiableTrie.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.trie;
+package org.apache.commons.collections4.trie;
import java.io.Serializable;
import java.util.Collection;
@@ -24,8 +24,8 @@ import java.util.Map;
import java.util.Set;
import java.util.SortedMap;
-import org.apache.commons.collections.Trie;
-import org.apache.commons.collections.Unmodifiable;
+import org.apache.commons.collections4.Trie;
+import org.apache.commons.collections4.Unmodifiable;
/**
* An unmodifiable {@link Trie}.
diff --git a/src/main/java/org/apache/commons/collections/trie/package-info.java b/src/main/java/org/apache/commons/collections4/trie/package-info.java
similarity index 92%
rename from src/main/java/org/apache/commons/collections/trie/package-info.java
rename to src/main/java/org/apache/commons/collections4/trie/package-info.java
index 60479b605..5eeb55c55 100644
--- a/src/main/java/org/apache/commons/collections/trie/package-info.java
+++ b/src/main/java/org/apache/commons/collections4/trie/package-info.java
@@ -16,7 +16,7 @@
*/
/**
* This package contains implementations of the
- * {@link org.apache.commons.collections.Trie Trie} interface.
+ * {@link org.apache.commons.collections4.Trie Trie} interface.
*
* The implementations are in the form of direct implementations and decorators.
* A decorator wraps another implementation of the interface to add some
@@ -35,4 +35,4 @@
*
* @version $Id$
*/
-package org.apache.commons.collections.trie;
+package org.apache.commons.collections4.trie;
diff --git a/src/test/java/org/apache/commons/collections/AbstractArrayListTest.java b/src/test/java/org/apache/commons/collections4/AbstractArrayListTest.java
similarity index 95%
rename from src/test/java/org/apache/commons/collections/AbstractArrayListTest.java
rename to src/test/java/org/apache/commons/collections4/AbstractArrayListTest.java
index 837d1f4e8..933c7dbca 100644
--- a/src/test/java/org/apache/commons/collections/AbstractArrayListTest.java
+++ b/src/test/java/org/apache/commons/collections4/AbstractArrayListTest.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.util.ArrayList;
-import org.apache.commons.collections.list.AbstractListTest;
+import org.apache.commons.collections4.list.AbstractListTest;
/**
* Abstract test class for ArrayList.
diff --git a/src/test/java/org/apache/commons/collections/AbstractLinkedListTest.java b/src/test/java/org/apache/commons/collections4/AbstractLinkedListTest.java
similarity index 98%
rename from src/test/java/org/apache/commons/collections/AbstractLinkedListTest.java
rename to src/test/java/org/apache/commons/collections4/AbstractLinkedListTest.java
index 64d6f6791..003d918af 100644
--- a/src/test/java/org/apache/commons/collections/AbstractLinkedListTest.java
+++ b/src/test/java/org/apache/commons/collections4/AbstractLinkedListTest.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.util.Arrays;
import java.util.Collection;
@@ -22,7 +22,7 @@ import java.util.LinkedList;
import java.util.List;
import java.util.NoSuchElementException;
-import org.apache.commons.collections.list.AbstractListTest;
+import org.apache.commons.collections4.list.AbstractListTest;
/**
* Tests base {@link java.util.LinkedList} methods and contracts.
diff --git a/src/test/java/org/apache/commons/collections/AbstractObjectTest.java b/src/test/java/org/apache/commons/collections4/AbstractObjectTest.java
similarity index 97%
rename from src/test/java/org/apache/commons/collections/AbstractObjectTest.java
rename to src/test/java/org/apache/commons/collections4/AbstractObjectTest.java
index 8b298e946..603d5ab3e 100644
--- a/src/test/java/org/apache/commons/collections/AbstractObjectTest.java
+++ b/src/test/java/org/apache/commons/collections4/AbstractObjectTest.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
@@ -43,7 +43,7 @@ import java.io.Serializable;
public abstract class AbstractObjectTest extends BulkTest {
/** Current major release for Collections */
- public static final int COLLECTIONS_MAJOR_VERSION = 3;
+ public static final int COLLECTIONS_MAJOR_VERSION = 4;
/**
* JUnit constructor.
@@ -209,9 +209,8 @@ public abstract class AbstractObjectTest extends BulkTest {
//-----------------------------------------------------------------------
/**
* Get the version of Collections that this object tries to
- * maintain serialization compatibility with. Defaults to 1, the
- * earliest Collections version. (Note: some collections did not
- * even exist in this version).
+ * maintain serialization compatibility with. Defaults to 4, due to
+ * the package change to collections4 introduced in version 4.
*
* This constant makes it possible for TestMap (and other subclasses,
* if necessary) to automatically check SVN for a versionX copy of a
@@ -224,7 +223,7 @@ public abstract class AbstractObjectTest extends BulkTest {
* tested for compatibility with previous versions.
*/
public String getCompatibilityVersion() {
- return "1";
+ return "4";
}
protected String getCanonicalEmptyCollectionName(final Object object) {
diff --git a/src/test/java/org/apache/commons/collections/AbstractTreeMapTest.java b/src/test/java/org/apache/commons/collections4/AbstractTreeMapTest.java
similarity index 94%
rename from src/test/java/org/apache/commons/collections/AbstractTreeMapTest.java
rename to src/test/java/org/apache/commons/collections4/AbstractTreeMapTest.java
index 76967808c..8a9ec1606 100644
--- a/src/test/java/org/apache/commons/collections/AbstractTreeMapTest.java
+++ b/src/test/java/org/apache/commons/collections4/AbstractTreeMapTest.java
@@ -14,11 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.util.TreeMap;
-import org.apache.commons.collections.map.AbstractMapTest;
+import org.apache.commons.collections4.map.AbstractMapTest;
/**
* Tests TreeMap.
diff --git a/src/test/java/org/apache/commons/collections/ArrayStackTest.java b/src/test/java/org/apache/commons/collections4/ArrayStackTest.java
similarity index 86%
rename from src/test/java/org/apache/commons/collections/ArrayStackTest.java
rename to src/test/java/org/apache/commons/collections4/ArrayStackTest.java
index 0b71ea601..a52875be6 100644
--- a/src/test/java/org/apache/commons/collections/ArrayStackTest.java
+++ b/src/test/java/org/apache/commons/collections4/ArrayStackTest.java
@@ -14,10 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.util.EmptyStackException;
+import org.apache.commons.collections4.ArrayStack;
+
import junit.framework.Test;
/**
@@ -107,5 +109,17 @@ public class ArrayStackTest extends AbstractArrayListTest {
-1, stack.search("Missing Item"));
}
+
+ @Override
+ public String getCompatibilityVersion() {
+ return "4";
+ }
+
+// public void testCreate() throws Exception {
+// resetEmpty();
+// writeExternalFormToDisk((java.io.Serializable) getCollection(), "src/test/resources/data/test/ArrayStack.emptyCollection.version4.obj");
+// resetFull();
+// writeExternalFormToDisk((java.io.Serializable) getCollection(), "src/test/resources/data/test/ArrayStack.fullCollection.version4.obj");
+// }
}
diff --git a/src/test/java/org/apache/commons/collections/BagUtilsTest.java b/src/test/java/org/apache/commons/collections4/BagUtilsTest.java
similarity index 86%
rename from src/test/java/org/apache/commons/collections/BagUtilsTest.java
rename to src/test/java/org/apache/commons/collections4/BagUtilsTest.java
index d73d17525..6728ce481 100644
--- a/src/test/java/org/apache/commons/collections/BagUtilsTest.java
+++ b/src/test/java/org/apache/commons/collections4/BagUtilsTest.java
@@ -14,21 +14,26 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import junit.framework.Test;
-import org.apache.commons.collections.bag.HashBag;
-import org.apache.commons.collections.bag.PredicatedBag;
-import org.apache.commons.collections.bag.PredicatedSortedBag;
-import org.apache.commons.collections.bag.SynchronizedBag;
-import org.apache.commons.collections.bag.SynchronizedSortedBag;
-import org.apache.commons.collections.bag.TransformedBag;
-import org.apache.commons.collections.bag.TransformedSortedBag;
-import org.apache.commons.collections.bag.TreeBag;
-import org.apache.commons.collections.bag.UnmodifiableBag;
-import org.apache.commons.collections.bag.UnmodifiableSortedBag;
-import org.apache.commons.collections.functors.TruePredicate;
+import org.apache.commons.collections4.Bag;
+import org.apache.commons.collections4.BagUtils;
+import org.apache.commons.collections4.Predicate;
+import org.apache.commons.collections4.Transformer;
+import org.apache.commons.collections4.TransformerUtils;
+import org.apache.commons.collections4.bag.HashBag;
+import org.apache.commons.collections4.bag.PredicatedBag;
+import org.apache.commons.collections4.bag.PredicatedSortedBag;
+import org.apache.commons.collections4.bag.SynchronizedBag;
+import org.apache.commons.collections4.bag.SynchronizedSortedBag;
+import org.apache.commons.collections4.bag.TransformedBag;
+import org.apache.commons.collections4.bag.TransformedSortedBag;
+import org.apache.commons.collections4.bag.TreeBag;
+import org.apache.commons.collections4.bag.UnmodifiableBag;
+import org.apache.commons.collections4.bag.UnmodifiableSortedBag;
+import org.apache.commons.collections4.functors.TruePredicate;
/**
* Tests for BagUtils factory methods.
diff --git a/src/test/java/org/apache/commons/collections/BulkTest.java b/src/test/java/org/apache/commons/collections4/BulkTest.java
similarity index 99%
rename from src/test/java/org/apache/commons/collections/BulkTest.java
rename to src/test/java/org/apache/commons/collections4/BulkTest.java
index 40105ff13..ef3332f9f 100644
--- a/src/test/java/org/apache/commons/collections/BulkTest.java
+++ b/src/test/java/org/apache/commons/collections4/BulkTest.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
diff --git a/src/test/java/org/apache/commons/collections/ClosureUtilsTest.java b/src/test/java/org/apache/commons/collections4/ClosureUtilsTest.java
similarity index 95%
rename from src/test/java/org/apache/commons/collections/ClosureUtilsTest.java
rename to src/test/java/org/apache/commons/collections4/ClosureUtilsTest.java
index a24b6fe37..52037e2e8 100644
--- a/src/test/java/org/apache/commons/collections/ClosureUtilsTest.java
+++ b/src/test/java/org/apache/commons/collections4/ClosureUtilsTest.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.util.ArrayList;
import java.util.Collection;
@@ -24,11 +24,17 @@ import java.util.Map;
import junit.framework.TestCase;
-import org.apache.commons.collections.functors.EqualPredicate;
-import org.apache.commons.collections.functors.ExceptionClosure;
-import org.apache.commons.collections.functors.FalsePredicate;
-import org.apache.commons.collections.functors.NOPClosure;
-import org.apache.commons.collections.functors.TruePredicate;
+import org.apache.commons.collections4.Closure;
+import org.apache.commons.collections4.ClosureUtils;
+import org.apache.commons.collections4.FunctorException;
+import org.apache.commons.collections4.Predicate;
+import org.apache.commons.collections4.PredicateUtils;
+import org.apache.commons.collections4.Transformer;
+import org.apache.commons.collections4.functors.EqualPredicate;
+import org.apache.commons.collections4.functors.ExceptionClosure;
+import org.apache.commons.collections4.functors.FalsePredicate;
+import org.apache.commons.collections4.functors.NOPClosure;
+import org.apache.commons.collections4.functors.TruePredicate;
/**
* Tests the ClosureUtils class.
diff --git a/src/test/java/org/apache/commons/collections/CollectionUtilsTest.java b/src/test/java/org/apache/commons/collections4/CollectionUtilsTest.java
similarity index 98%
rename from src/test/java/org/apache/commons/collections/CollectionUtilsTest.java
rename to src/test/java/org/apache/commons/collections4/CollectionUtilsTest.java
index a72f91c51..1fa623ad0 100644
--- a/src/test/java/org/apache/commons/collections/CollectionUtilsTest.java
+++ b/src/test/java/org/apache/commons/collections4/CollectionUtilsTest.java
@@ -14,9 +14,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
-import static org.apache.commons.collections.functors.EqualPredicate.equalPredicate;
+import static org.apache.commons.collections4.functors.EqualPredicate.equalPredicate;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertSame;
@@ -26,14 +26,23 @@ import static org.junit.Assert.fail;
import java.util.*;
-import org.apache.commons.collections.bag.HashBag;
-import org.apache.commons.collections.collection.PredicatedCollection;
-import org.apache.commons.collections.collection.SynchronizedCollection;
-import org.apache.commons.collections.collection.TransformedCollection;
-import org.apache.commons.collections.collection.UnmodifiableCollection;
-import org.apache.commons.collections.functors.DefaultEquator;
-import org.apache.commons.collections.functors.Equator;
-import org.apache.commons.collections.queue.CircularFifoQueue;
+import org.apache.commons.collections4.queue.CircularFifoQueue;
+import org.apache.commons.collections4.Bag;
+import org.apache.commons.collections4.Closure;
+import org.apache.commons.collections4.ClosureUtils;
+import org.apache.commons.collections4.CollectionUtils;
+import org.apache.commons.collections4.FunctorException;
+import org.apache.commons.collections4.Predicate;
+import org.apache.commons.collections4.PredicateUtils;
+import org.apache.commons.collections4.Transformer;
+import org.apache.commons.collections4.TransformerUtils;
+import org.apache.commons.collections4.bag.HashBag;
+import org.apache.commons.collections4.collection.PredicatedCollection;
+import org.apache.commons.collections4.collection.SynchronizedCollection;
+import org.apache.commons.collections4.collection.TransformedCollection;
+import org.apache.commons.collections4.collection.UnmodifiableCollection;
+import org.apache.commons.collections4.functors.DefaultEquator;
+import org.apache.commons.collections4.functors.Equator;
import org.junit.Before;
import org.junit.Test;
diff --git a/src/test/java/org/apache/commons/collections/EnumerationUtilsTest.java b/src/test/java/org/apache/commons/collections4/EnumerationUtilsTest.java
similarity index 97%
rename from src/test/java/org/apache/commons/collections/EnumerationUtilsTest.java
rename to src/test/java/org/apache/commons/collections4/EnumerationUtilsTest.java
index 81f9b54b6..bf1e02ef3 100644
--- a/src/test/java/org/apache/commons/collections/EnumerationUtilsTest.java
+++ b/src/test/java/org/apache/commons/collections4/EnumerationUtilsTest.java
@@ -14,13 +14,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.List;
import java.util.StringTokenizer;
+import org.apache.commons.collections4.EnumerationUtils;
+
import junit.framework.Test;
/**
diff --git a/src/test/java/org/apache/commons/collections/FactoryUtilsTest.java b/src/test/java/org/apache/commons/collections4/FactoryUtilsTest.java
similarity index 96%
rename from src/test/java/org/apache/commons/collections/FactoryUtilsTest.java
rename to src/test/java/org/apache/commons/collections4/FactoryUtilsTest.java
index ce0084c65..890344a55 100644
--- a/src/test/java/org/apache/commons/collections/FactoryUtilsTest.java
+++ b/src/test/java/org/apache/commons/collections4/FactoryUtilsTest.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
@@ -26,8 +26,11 @@ import java.io.Serializable;
import java.util.Date;
import java.util.TimeZone;
-import org.apache.commons.collections.functors.ConstantFactory;
-import org.apache.commons.collections.functors.ExceptionFactory;
+import org.apache.commons.collections4.Factory;
+import org.apache.commons.collections4.FactoryUtils;
+import org.apache.commons.collections4.FunctorException;
+import org.apache.commons.collections4.functors.ConstantFactory;
+import org.apache.commons.collections4.functors.ExceptionFactory;
import org.junit.Test;
/**
diff --git a/src/test/java/org/apache/commons/collections/IteratorUtilsTest.java b/src/test/java/org/apache/commons/collections4/IteratorUtilsTest.java
similarity index 97%
rename from src/test/java/org/apache/commons/collections/IteratorUtilsTest.java
rename to src/test/java/org/apache/commons/collections4/IteratorUtilsTest.java
index 3ec297e54..29b3d25a7 100644
--- a/src/test/java/org/apache/commons/collections/IteratorUtilsTest.java
+++ b/src/test/java/org/apache/commons/collections4/IteratorUtilsTest.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.util.ArrayList;
import java.util.Arrays;
@@ -25,11 +25,17 @@ import java.util.NoSuchElementException;
import junit.framework.Test;
-import org.apache.commons.collections.iterators.EmptyIterator;
-import org.apache.commons.collections.iterators.EmptyListIterator;
-import org.apache.commons.collections.iterators.EmptyMapIterator;
-import org.apache.commons.collections.iterators.EmptyOrderedIterator;
-import org.apache.commons.collections.iterators.EmptyOrderedMapIterator;
+import org.apache.commons.collections4.IteratorUtils;
+import org.apache.commons.collections4.MapIterator;
+import org.apache.commons.collections4.OrderedIterator;
+import org.apache.commons.collections4.OrderedMapIterator;
+import org.apache.commons.collections4.ResettableIterator;
+import org.apache.commons.collections4.ResettableListIterator;
+import org.apache.commons.collections4.iterators.EmptyIterator;
+import org.apache.commons.collections4.iterators.EmptyListIterator;
+import org.apache.commons.collections4.iterators.EmptyMapIterator;
+import org.apache.commons.collections4.iterators.EmptyOrderedIterator;
+import org.apache.commons.collections4.iterators.EmptyOrderedMapIterator;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
diff --git a/src/test/java/org/apache/commons/collections/ListUtilsTest.java b/src/test/java/org/apache/commons/collections4/ListUtilsTest.java
similarity index 97%
rename from src/test/java/org/apache/commons/collections/ListUtilsTest.java
rename to src/test/java/org/apache/commons/collections4/ListUtilsTest.java
index f3ad7da82..08e8a8559 100644
--- a/src/test/java/org/apache/commons/collections/ListUtilsTest.java
+++ b/src/test/java/org/apache/commons/collections4/ListUtilsTest.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.util.ArrayList;
import java.util.Arrays;
@@ -25,8 +25,12 @@ import java.util.List;
import junit.framework.Test;
-import org.apache.commons.collections.functors.EqualPredicate;
-import org.apache.commons.collections.list.PredicatedList;
+import org.apache.commons.collections4.CollectionUtils;
+import org.apache.commons.collections4.Factory;
+import org.apache.commons.collections4.ListUtils;
+import org.apache.commons.collections4.Predicate;
+import org.apache.commons.collections4.functors.EqualPredicate;
+import org.apache.commons.collections4.list.PredicatedList;
/**
* Tests for ListUtils.
diff --git a/src/test/java/org/apache/commons/collections/MapPerformance.java b/src/test/java/org/apache/commons/collections4/MapPerformance.java
similarity index 98%
rename from src/test/java/org/apache/commons/collections/MapPerformance.java
rename to src/test/java/org/apache/commons/collections4/MapPerformance.java
index f73bb563c..c52b8e741 100644
--- a/src/test/java/org/apache/commons/collections/MapPerformance.java
+++ b/src/test/java/org/apache/commons/collections4/MapPerformance.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.util.Collection;
//import java.util.Collections;
@@ -23,7 +23,7 @@ import java.util.Map;
import java.util.Set;
//import java.util.TreeMap;
-import org.apache.commons.collections.map.Flat3Map;
+import org.apache.commons.collections4.map.Flat3Map;
/**
* MapPerformanceTest is designed to perform basic Map performance tests.
diff --git a/src/test/java/org/apache/commons/collections/MapUtilsTest.java b/src/test/java/org/apache/commons/collections4/MapUtilsTest.java
similarity index 97%
rename from src/test/java/org/apache/commons/collections/MapUtilsTest.java
rename to src/test/java/org/apache/commons/collections4/MapUtilsTest.java
index fa9ff9029..4633eab6f 100644
--- a/src/test/java/org/apache/commons/collections/MapUtilsTest.java
+++ b/src/test/java/org/apache/commons/collections4/MapUtilsTest.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
@@ -31,12 +31,20 @@ import java.util.ArrayList;
import junit.framework.Test;
-import org.apache.commons.collections.keyvalue.DefaultKeyValue;
-import org.apache.commons.collections.keyvalue.DefaultMapEntry;
-import org.apache.commons.collections.map.HashedMap;
-import org.apache.commons.collections.map.LazyMap;
-import org.apache.commons.collections.map.PredicatedMap;
-import org.apache.commons.collections.collection.TransformedCollectionTest;
+import org.apache.commons.collections4.Factory;
+import org.apache.commons.collections4.FactoryUtils;
+import org.apache.commons.collections4.IterableMap;
+import org.apache.commons.collections4.IterableSortedMap;
+import org.apache.commons.collections4.MapUtils;
+import org.apache.commons.collections4.Predicate;
+import org.apache.commons.collections4.Transformer;
+import org.apache.commons.collections4.TransformerUtils;
+import org.apache.commons.collections4.collection.TransformedCollectionTest;
+import org.apache.commons.collections4.keyvalue.DefaultKeyValue;
+import org.apache.commons.collections4.keyvalue.DefaultMapEntry;
+import org.apache.commons.collections4.map.HashedMap;
+import org.apache.commons.collections4.map.LazyMap;
+import org.apache.commons.collections4.map.PredicatedMap;
/**
* Tests for MapUtils.
diff --git a/src/test/java/org/apache/commons/collections/MockTestCase.java b/src/test/java/org/apache/commons/collections4/MockTestCase.java
similarity index 98%
rename from src/test/java/org/apache/commons/collections/MockTestCase.java
rename to src/test/java/org/apache/commons/collections4/MockTestCase.java
index bb6d42bea..ff290ffda 100644
--- a/src/test/java/org/apache/commons/collections/MockTestCase.java
+++ b/src/test/java/org/apache/commons/collections4/MockTestCase.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.util.ArrayList;
import java.util.List;
diff --git a/src/test/java/org/apache/commons/collections/PredicateUtilsTest.java b/src/test/java/org/apache/commons/collections4/PredicateUtilsTest.java
similarity index 96%
rename from src/test/java/org/apache/commons/collections/PredicateUtilsTest.java
rename to src/test/java/org/apache/commons/collections4/PredicateUtilsTest.java
index d8f26743d..417f19124 100644
--- a/src/test/java/org/apache/commons/collections/PredicateUtilsTest.java
+++ b/src/test/java/org/apache/commons/collections4/PredicateUtilsTest.java
@@ -14,10 +14,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
-import static org.apache.commons.collections.functors.NullPredicate.nullPredicate;
-import static org.apache.commons.collections.functors.TruePredicate.truePredicate;
+import static org.apache.commons.collections4.functors.NullPredicate.nullPredicate;
+import static org.apache.commons.collections4.functors.TruePredicate.truePredicate;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertSame;
@@ -30,14 +30,19 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import org.apache.commons.collections.functors.AllPredicate;
-import org.apache.commons.collections.functors.AbstractPredicateTest;
-import org.apache.commons.collections.functors.EqualPredicate;
-import org.apache.commons.collections.functors.ExceptionPredicate;
-import org.apache.commons.collections.functors.FalsePredicate;
-import org.apache.commons.collections.functors.NotNullPredicate;
-import org.apache.commons.collections.functors.NullPredicate;
-import org.apache.commons.collections.functors.TruePredicate;
+import org.apache.commons.collections4.FunctorException;
+import org.apache.commons.collections4.Predicate;
+import org.apache.commons.collections4.PredicateUtils;
+import org.apache.commons.collections4.Transformer;
+import org.apache.commons.collections4.TransformerUtils;
+import org.apache.commons.collections4.functors.AbstractPredicateTest;
+import org.apache.commons.collections4.functors.AllPredicate;
+import org.apache.commons.collections4.functors.EqualPredicate;
+import org.apache.commons.collections4.functors.ExceptionPredicate;
+import org.apache.commons.collections4.functors.FalsePredicate;
+import org.apache.commons.collections4.functors.NotNullPredicate;
+import org.apache.commons.collections4.functors.NullPredicate;
+import org.apache.commons.collections4.functors.TruePredicate;
import org.junit.Test;
/**
diff --git a/src/test/java/org/apache/commons/collections/SetUtilsTest.java b/src/test/java/org/apache/commons/collections4/SetUtilsTest.java
similarity index 94%
rename from src/test/java/org/apache/commons/collections/SetUtilsTest.java
rename to src/test/java/org/apache/commons/collections4/SetUtilsTest.java
index 4fb480115..eee543eae 100644
--- a/src/test/java/org/apache/commons/collections/SetUtilsTest.java
+++ b/src/test/java/org/apache/commons/collections4/SetUtilsTest.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.util.Arrays;
import java.util.Collection;
@@ -23,7 +23,9 @@ import java.util.Set;
import junit.framework.Test;
-import org.apache.commons.collections.set.PredicatedSet;
+import org.apache.commons.collections4.Predicate;
+import org.apache.commons.collections4.SetUtils;
+import org.apache.commons.collections4.set.PredicatedSet;
/**
* Tests for SetUtils.
diff --git a/src/test/java/org/apache/commons/collections/SplitMapUtilsTest.java b/src/test/java/org/apache/commons/collections4/SplitMapUtilsTest.java
similarity index 92%
rename from src/test/java/org/apache/commons/collections/SplitMapUtilsTest.java
rename to src/test/java/org/apache/commons/collections4/SplitMapUtilsTest.java
index 8308bb187..8e02e5b08 100644
--- a/src/test/java/org/apache/commons/collections/SplitMapUtilsTest.java
+++ b/src/test/java/org/apache/commons/collections4/SplitMapUtilsTest.java
@@ -14,14 +14,20 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.util.HashMap;
import java.util.Map;
-import org.apache.commons.collections.functors.NOPTransformer;
-import org.apache.commons.collections.map.HashedMap;
-import org.apache.commons.collections.splitmap.TransformedMap;
+import org.apache.commons.collections4.IterableMap;
+import org.apache.commons.collections4.MapIterator;
+import org.apache.commons.collections4.Put;
+import org.apache.commons.collections4.SplitMapUtils;
+import org.apache.commons.collections4.Transformer;
+import org.apache.commons.collections4.Unmodifiable;
+import org.apache.commons.collections4.functors.NOPTransformer;
+import org.apache.commons.collections4.map.HashedMap;
+import org.apache.commons.collections4.splitmap.TransformedMap;
/**
* Tests for {@link TransformedMap}
diff --git a/src/test/java/org/apache/commons/collections/TestUtils.java b/src/test/java/org/apache/commons/collections4/TestUtils.java
similarity index 98%
rename from src/test/java/org/apache/commons/collections/TestUtils.java
rename to src/test/java/org/apache/commons/collections4/TestUtils.java
index 54828dedb..9c1412467 100644
--- a/src/test/java/org/apache/commons/collections/TestUtils.java
+++ b/src/test/java/org/apache/commons/collections4/TestUtils.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import static org.junit.Assert.assertSame;
diff --git a/src/test/java/org/apache/commons/collections/TransformerUtilsTest.java b/src/test/java/org/apache/commons/collections4/TransformerUtilsTest.java
similarity index 95%
rename from src/test/java/org/apache/commons/collections/TransformerUtilsTest.java
rename to src/test/java/org/apache/commons/collections4/TransformerUtilsTest.java
index 5ad979eec..5b6af5fcc 100644
--- a/src/test/java/org/apache/commons/collections/TransformerUtilsTest.java
+++ b/src/test/java/org/apache/commons/collections4/TransformerUtilsTest.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections;
+package org.apache.commons.collections4;
import java.util.ArrayList;
import java.util.Collection;
@@ -24,14 +24,22 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import org.apache.commons.collections.functors.CloneTransformer;
-import org.apache.commons.collections.functors.ConstantTransformer;
-import org.apache.commons.collections.functors.EqualPredicate;
-import org.apache.commons.collections.functors.ExceptionTransformer;
-import org.apache.commons.collections.functors.FalsePredicate;
-import org.apache.commons.collections.functors.NOPTransformer;
-import org.apache.commons.collections.functors.StringValueTransformer;
-import org.apache.commons.collections.functors.TruePredicate;
+import org.apache.commons.collections4.Closure;
+import org.apache.commons.collections4.ClosureUtils;
+import org.apache.commons.collections4.Factory;
+import org.apache.commons.collections4.FactoryUtils;
+import org.apache.commons.collections4.FunctorException;
+import org.apache.commons.collections4.Predicate;
+import org.apache.commons.collections4.Transformer;
+import org.apache.commons.collections4.TransformerUtils;
+import org.apache.commons.collections4.functors.CloneTransformer;
+import org.apache.commons.collections4.functors.ConstantTransformer;
+import org.apache.commons.collections4.functors.EqualPredicate;
+import org.apache.commons.collections4.functors.ExceptionTransformer;
+import org.apache.commons.collections4.functors.FalsePredicate;
+import org.apache.commons.collections4.functors.NOPTransformer;
+import org.apache.commons.collections4.functors.StringValueTransformer;
+import org.apache.commons.collections4.functors.TruePredicate;
/**
* Tests the TransformerUtils class.
diff --git a/src/test/java/org/apache/commons/collections/bag/AbstractBagTest.java b/src/test/java/org/apache/commons/collections4/bag/AbstractBagTest.java
similarity index 98%
rename from src/test/java/org/apache/commons/collections/bag/AbstractBagTest.java
rename to src/test/java/org/apache/commons/collections4/bag/AbstractBagTest.java
index 67fd1844f..e03661c80 100644
--- a/src/test/java/org/apache/commons/collections/bag/AbstractBagTest.java
+++ b/src/test/java/org/apache/commons/collections4/bag/AbstractBagTest.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.bag;
+package org.apache.commons.collections4.bag;
import java.io.IOException;
import java.io.Serializable;
@@ -24,11 +24,12 @@ import java.util.Iterator;
import java.util.List;
import java.util.NoSuchElementException;
-import org.apache.commons.collections.AbstractObjectTest;
-import org.apache.commons.collections.Bag;
+import org.apache.commons.collections4.AbstractObjectTest;
+import org.apache.commons.collections4.Bag;
+import org.apache.commons.collections4.bag.HashBag;
/**
- * Abstract test class for {@link org.apache.commons.collections.Bag Bag} methods and contracts.
+ * Abstract test class for {@link org.apache.commons.collections4.Bag Bag} methods and contracts.
*
* To use, simply extend this class, and implement
* the {@link #makeObject} method.
diff --git a/src/test/java/org/apache/commons/collections/bag/AbstractSortedBagTest.java b/src/test/java/org/apache/commons/collections4/bag/AbstractSortedBagTest.java
similarity index 88%
rename from src/test/java/org/apache/commons/collections/bag/AbstractSortedBagTest.java
rename to src/test/java/org/apache/commons/collections4/bag/AbstractSortedBagTest.java
index daf762b38..8f0900b55 100644
--- a/src/test/java/org/apache/commons/collections/bag/AbstractSortedBagTest.java
+++ b/src/test/java/org/apache/commons/collections4/bag/AbstractSortedBagTest.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.bag;
+package org.apache.commons.collections4.bag;
-import org.apache.commons.collections.SortedBag;
+import org.apache.commons.collections4.SortedBag;
/**
* Abstract test class for
- * {@link org.apache.commons.collections.SortedBag SortedBag}
+ * {@link org.apache.commons.collections4.SortedBag SortedBag}
* methods and contracts.
*
* @since 3.0
diff --git a/src/test/java/org/apache/commons/collections/bag/HashBagTest.java b/src/test/java/org/apache/commons/collections4/bag/HashBagTest.java
similarity index 74%
rename from src/test/java/org/apache/commons/collections/bag/HashBagTest.java
rename to src/test/java/org/apache/commons/collections4/bag/HashBagTest.java
index 172ba0e37..7e093a85a 100644
--- a/src/test/java/org/apache/commons/collections/bag/HashBagTest.java
+++ b/src/test/java/org/apache/commons/collections4/bag/HashBagTest.java
@@ -14,9 +14,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.bag;
+package org.apache.commons.collections4.bag;
-import org.apache.commons.collections.Bag;
+import org.apache.commons.collections4.Bag;
+import org.apache.commons.collections4.bag.HashBag;
/**
* Extension of {@link AbstractBagTest} for exercising the {@link HashBag}
@@ -37,18 +38,18 @@ public class HashBagTest extends AbstractBagTest {
@Override
public String getCompatibilityVersion() {
- return "3";
+ return "4";
}
// public void testCreate() throws Exception {
-// Bag bag = makeBag();
-// writeExternalFormToDisk((Serializable) bag, "D:/dev/collections/data/test/HashBag.emptyCollection.version3.obj");
-// bag = makeBag();
+// Bag bag = makeObject();
+// writeExternalFormToDisk((java.io.Serializable) bag, "src/test/resources/data/test/HashBag.emptyCollection.version4.obj");
+// bag = makeObject();
// bag.add("A");
// bag.add("A");
// bag.add("B");
// bag.add("B");
// bag.add("C");
-// writeExternalFormToDisk((Serializable) bag, "D:/dev/collections/data/test/HashBag.fullCollection.version3.obj");
+// writeExternalFormToDisk((java.io.Serializable) bag, "src/test/resources/data/test/HashBag.fullCollection.version4.obj");
// }
}
diff --git a/src/test/java/org/apache/commons/collections/bag/PredicatedBagTest.java b/src/test/java/org/apache/commons/collections4/bag/PredicatedBagTest.java
similarity index 84%
rename from src/test/java/org/apache/commons/collections/bag/PredicatedBagTest.java
rename to src/test/java/org/apache/commons/collections4/bag/PredicatedBagTest.java
index b7c62c949..37e32c0b9 100644
--- a/src/test/java/org/apache/commons/collections/bag/PredicatedBagTest.java
+++ b/src/test/java/org/apache/commons/collections4/bag/PredicatedBagTest.java
@@ -14,13 +14,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.bag;
+package org.apache.commons.collections4.bag;
import java.util.Set;
-import org.apache.commons.collections.Bag;
-import org.apache.commons.collections.Predicate;
-import org.apache.commons.collections.functors.TruePredicate;
+import org.apache.commons.collections4.Bag;
+import org.apache.commons.collections4.Predicate;
+import org.apache.commons.collections4.bag.HashBag;
+import org.apache.commons.collections4.bag.PredicatedBag;
+import org.apache.commons.collections4.functors.TruePredicate;
/**
* Extension of {@link AbstractBagTest} for exercising the {@link PredicatedBag}
@@ -109,7 +111,7 @@ public class PredicatedBagTest extends AbstractBagTest {
}
try {
decorateBag(new HashBag(), null);
- fail("Expectiing IllegalArgumentException for null predicate.");
+ fail("Expecting IllegalArgumentException for null predicate.");
} catch (final IllegalArgumentException e) {
// expected
}
@@ -117,19 +119,19 @@ public class PredicatedBagTest extends AbstractBagTest {
@Override
public String getCompatibilityVersion() {
- return "3.1";
+ return "4";
}
// public void testCreate() throws Exception {
-// Bag bag = makeBag();
-// writeExternalFormToDisk((java.io.Serializable) bag, "D:/dev/collections/data/test/PredicatedBag.emptyCollection.version3.1.obj");
-// bag = makeBag();
+// Bag bag = makeObject();
+// writeExternalFormToDisk((java.io.Serializable) bag, "src/test/resources/data/test/PredicatedBag.emptyCollection.version4.obj");
+// bag = makeObject();
// bag.add("A");
// bag.add("A");
// bag.add("B");
// bag.add("B");
// bag.add("C");
-// writeExternalFormToDisk((java.io.Serializable) bag, "D:/dev/collections/data/test/PredicatedBag.fullCollection.version3.1.obj");
+// writeExternalFormToDisk((java.io.Serializable) bag, "src/test/resources/data/test/PredicatedBag.fullCollection.version4.obj");
// }
}
diff --git a/src/test/java/org/apache/commons/collections/bag/PredicatedSortedBagTest.java b/src/test/java/org/apache/commons/collections4/bag/PredicatedSortedBagTest.java
similarity index 82%
rename from src/test/java/org/apache/commons/collections/bag/PredicatedSortedBagTest.java
rename to src/test/java/org/apache/commons/collections4/bag/PredicatedSortedBagTest.java
index 98b499b71..e40a254c3 100644
--- a/src/test/java/org/apache/commons/collections/bag/PredicatedSortedBagTest.java
+++ b/src/test/java/org/apache/commons/collections4/bag/PredicatedSortedBagTest.java
@@ -14,13 +14,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.bag;
+package org.apache.commons.collections4.bag;
import java.util.Comparator;
-import org.apache.commons.collections.Predicate;
-import org.apache.commons.collections.SortedBag;
-import org.apache.commons.collections.functors.TruePredicate;
+import org.apache.commons.collections4.Predicate;
+import org.apache.commons.collections4.SortedBag;
+import org.apache.commons.collections4.bag.PredicatedSortedBag;
+import org.apache.commons.collections4.bag.TreeBag;
+import org.apache.commons.collections4.functors.TruePredicate;
/**
* Extension of {@link AbstractSortedBagTest} for exercising the {@link PredicatedSortedBag}
@@ -94,19 +96,19 @@ public class PredicatedSortedBagTest extends AbstractSortedBagTest {
@Override
public String getCompatibilityVersion() {
- return "3.1";
+ return "4";
}
// public void testCreate() throws Exception {
-// Bag bag = makeBag();
-// writeExternalFormToDisk((java.io.Serializable) bag, "D:/dev/collections/data/test/PredicatedSortedBag.emptyCollection.version3.1.obj");
-// bag = makeBag();
+// org.apache.commons.collections4.Bag bag = makeObject();
+// writeExternalFormToDisk((java.io.Serializable) bag, "src/test/resources/data/test/PredicatedSortedBag.emptyCollection.version4.obj");
+// bag = makeObject();
// bag.add("A");
// bag.add("A");
// bag.add("B");
// bag.add("B");
// bag.add("C");
-// writeExternalFormToDisk((java.io.Serializable) bag, "D:/dev/collections/data/test/PredicatedSortedBag.fullCollection.version3.1.obj");
+// writeExternalFormToDisk((java.io.Serializable) bag, "src/test/resources/data/test/PredicatedSortedBag.fullCollection.version4.obj");
// }
}
diff --git a/src/test/java/org/apache/commons/collections/bag/TransformedBagTest.java b/src/test/java/org/apache/commons/collections4/bag/TransformedBagTest.java
similarity index 82%
rename from src/test/java/org/apache/commons/collections/bag/TransformedBagTest.java
rename to src/test/java/org/apache/commons/collections4/bag/TransformedBagTest.java
index 5b13633a8..72fe3b895 100644
--- a/src/test/java/org/apache/commons/collections/bag/TransformedBagTest.java
+++ b/src/test/java/org/apache/commons/collections4/bag/TransformedBagTest.java
@@ -14,11 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.bag;
+package org.apache.commons.collections4.bag;
-import org.apache.commons.collections.Bag;
-import org.apache.commons.collections.Transformer;
-import org.apache.commons.collections.collection.TransformedCollectionTest;
+import org.apache.commons.collections4.Bag;
+import org.apache.commons.collections4.Transformer;
+import org.apache.commons.collections4.bag.HashBag;
+import org.apache.commons.collections4.bag.TransformedBag;
+import org.apache.commons.collections4.collection.TransformedCollectionTest;
/**
* Extension of {@link AbstractBagTest} for exercising the {@link TransformedBag}
@@ -79,19 +81,19 @@ public class TransformedBagTest extends AbstractBagTest {
@Override
public String getCompatibilityVersion() {
- return "3.1";
+ return "4";
}
// public void testCreate() throws Exception {
-// Bag bag = makeBag();
-// writeExternalFormToDisk((java.io.Serializable) bag, "D:/dev/collections/data/test/TransformedBag.emptyCollection.version3.1.obj");
-// bag = makeBag();
+// Bag bag = makeObject();
+// writeExternalFormToDisk((java.io.Serializable) bag, "src/test/resources/data/test/TransformedBag.emptyCollection.version4.obj");
+// bag = makeObject();
// bag.add("A");
// bag.add("A");
// bag.add("B");
// bag.add("B");
// bag.add("C");
-// writeExternalFormToDisk((java.io.Serializable) bag, "D:/dev/collections/data/test/TransformedBag.fullCollection.version3.1.obj");
+// writeExternalFormToDisk((java.io.Serializable) bag, "src/test/resources/data/test/TransformedBag.fullCollection.version4.obj");
// }
}
diff --git a/src/test/java/org/apache/commons/collections/bag/TransformedSortedBagTest.java b/src/test/java/org/apache/commons/collections4/bag/TransformedSortedBagTest.java
similarity index 78%
rename from src/test/java/org/apache/commons/collections/bag/TransformedSortedBagTest.java
rename to src/test/java/org/apache/commons/collections4/bag/TransformedSortedBagTest.java
index c31574dcc..c80c6ede9 100644
--- a/src/test/java/org/apache/commons/collections/bag/TransformedSortedBagTest.java
+++ b/src/test/java/org/apache/commons/collections4/bag/TransformedSortedBagTest.java
@@ -14,12 +14,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.bag;
+package org.apache.commons.collections4.bag;
-import org.apache.commons.collections.Bag;
-import org.apache.commons.collections.SortedBag;
-import org.apache.commons.collections.Transformer;
-import org.apache.commons.collections.collection.TransformedCollectionTest;
+import org.apache.commons.collections4.Bag;
+import org.apache.commons.collections4.SortedBag;
+import org.apache.commons.collections4.Transformer;
+import org.apache.commons.collections4.bag.TransformedBag;
+import org.apache.commons.collections4.bag.TransformedSortedBag;
+import org.apache.commons.collections4.bag.TreeBag;
+import org.apache.commons.collections4.collection.TransformedCollectionTest;
/**
* Extension of {@link AbstractSortedBagTest} for exercising the {@link TransformedSortedBag}
@@ -72,19 +75,19 @@ public class TransformedSortedBagTest extends AbstractSortedBagTest {
@Override
public String getCompatibilityVersion() {
- return "3.1";
+ return "4";
}
// public void testCreate() throws Exception {
-// Bag bag = makeBag();
-// writeExternalFormToDisk((java.io.Serializable) bag, "D:/dev/collections/data/test/TransformedSortedBag.emptyCollection.version3.1.obj");
-// bag = makeBag();
+// Bag bag = makeObject();
+// writeExternalFormToDisk((java.io.Serializable) bag, "src/test/resources/data/test/TransformedSortedBag.emptyCollection.version4.obj");
+// bag = makeObject();
// bag.add("A");
// bag.add("A");
// bag.add("B");
// bag.add("B");
// bag.add("C");
-// writeExternalFormToDisk((java.io.Serializable) bag, "D:/dev/collections/data/test/TransformedSortedBag.fullCollection.version3.1.obj");
+// writeExternalFormToDisk((java.io.Serializable) bag, "src/test/resources/data/test/TransformedSortedBag.fullCollection.version4.obj");
// }
}
diff --git a/src/test/java/org/apache/commons/collections/bag/TreeBagTest.java b/src/test/java/org/apache/commons/collections4/bag/TreeBagTest.java
similarity index 76%
rename from src/test/java/org/apache/commons/collections/bag/TreeBagTest.java
rename to src/test/java/org/apache/commons/collections4/bag/TreeBagTest.java
index 607749fed..926917d1c 100644
--- a/src/test/java/org/apache/commons/collections/bag/TreeBagTest.java
+++ b/src/test/java/org/apache/commons/collections4/bag/TreeBagTest.java
@@ -14,10 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.bag;
+package org.apache.commons.collections4.bag;
-import org.apache.commons.collections.Bag;
-import org.apache.commons.collections.SortedBag;
+import org.apache.commons.collections4.Bag;
+import org.apache.commons.collections4.SortedBag;
+import org.apache.commons.collections4.bag.TreeBag;
/**
* Extension of {@link AbstractBagTest} for exercising the {@link TreeBag}
@@ -68,18 +69,18 @@ public class TreeBagTest extends AbstractSortedBagTest {
@Override
public String getCompatibilityVersion() {
- return "3";
+ return "4";
}
- // public void testCreate() throws Exception {
- // Bag bag = makeBag();
- // writeExternalFormToDisk((Serializable) bag, "D:/dev/collections/data/test/TreeBag.emptyCollection.version3.obj");
- // bag = makeBag();
- // bag.add("A");
- // bag.add("A");
- // bag.add("B");
- // bag.add("B");
- // bag.add("C");
- // writeExternalFormToDisk((Serializable) bag, "D:/dev/collections/data/test/TreeBag.fullCollection.version3.obj");
- // }
+// public void testCreate() throws Exception {
+// Bag bag = makeObject();
+// writeExternalFormToDisk((java.io.Serializable) bag, "src/test/resources/data/test/TreeBag.emptyCollection.version4.obj");
+// bag = makeObject();
+// bag.add("A");
+// bag.add("A");
+// bag.add("B");
+// bag.add("B");
+// bag.add("C");
+// writeExternalFormToDisk((java.io.Serializable) bag, "src/test/resources/data/test/TreeBag.fullCollection.version4.obj");
+// }
}
diff --git a/src/test/java/org/apache/commons/collections/bidimap/AbstractBidiMapTest.java b/src/test/java/org/apache/commons/collections4/bidimap/AbstractBidiMapTest.java
similarity index 98%
rename from src/test/java/org/apache/commons/collections/bidimap/AbstractBidiMapTest.java
rename to src/test/java/org/apache/commons/collections4/bidimap/AbstractBidiMapTest.java
index 6a0723c0c..6f02fad8d 100644
--- a/src/test/java/org/apache/commons/collections/bidimap/AbstractBidiMapTest.java
+++ b/src/test/java/org/apache/commons/collections4/bidimap/AbstractBidiMapTest.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.bidimap;
+package org.apache.commons.collections4.bidimap;
import java.util.Collection;
import java.util.HashMap;
@@ -22,11 +22,11 @@ import java.util.Iterator;
import java.util.Map;
import java.util.Set;
-import org.apache.commons.collections.BidiMap;
-import org.apache.commons.collections.BulkTest;
-import org.apache.commons.collections.MapIterator;
-import org.apache.commons.collections.iterators.AbstractMapIteratorTest;
-import org.apache.commons.collections.map.AbstractIterableMapTest;
+import org.apache.commons.collections4.BidiMap;
+import org.apache.commons.collections4.BulkTest;
+import org.apache.commons.collections4.MapIterator;
+import org.apache.commons.collections4.iterators.AbstractMapIteratorTest;
+import org.apache.commons.collections4.map.AbstractIterableMapTest;
/**
* Abstract test class for {@link BidiMap} methods and contracts.
@@ -73,7 +73,7 @@ public abstract class AbstractBidiMapTest extends AbstractIterableMapTest<
*/
@Override
public String getCompatibilityVersion() {
- return "3";
+ return "4";
}
// BidiPut
diff --git a/src/test/java/org/apache/commons/collections/bidimap/AbstractOrderedBidiMapDecoratorTest.java b/src/test/java/org/apache/commons/collections4/bidimap/AbstractOrderedBidiMapDecoratorTest.java
similarity index 90%
rename from src/test/java/org/apache/commons/collections/bidimap/AbstractOrderedBidiMapDecoratorTest.java
rename to src/test/java/org/apache/commons/collections4/bidimap/AbstractOrderedBidiMapDecoratorTest.java
index 8e8dca20e..d30d63f3c 100644
--- a/src/test/java/org/apache/commons/collections/bidimap/AbstractOrderedBidiMapDecoratorTest.java
+++ b/src/test/java/org/apache/commons/collections4/bidimap/AbstractOrderedBidiMapDecoratorTest.java
@@ -14,12 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.bidimap;
+package org.apache.commons.collections4.bidimap;
import java.util.SortedMap;
import java.util.TreeMap;
-import org.apache.commons.collections.OrderedBidiMap;
+import org.apache.commons.collections4.OrderedBidiMap;
+import org.apache.commons.collections4.bidimap.AbstractOrderedBidiMapDecorator;
+import org.apache.commons.collections4.bidimap.DualTreeBidiMap;
/**
* Test class for AbstractOrderedBidiMapDecorator.
diff --git a/src/test/java/org/apache/commons/collections/bidimap/AbstractOrderedBidiMapTest.java b/src/test/java/org/apache/commons/collections4/bidimap/AbstractOrderedBidiMapTest.java
similarity index 95%
rename from src/test/java/org/apache/commons/collections/bidimap/AbstractOrderedBidiMapTest.java
rename to src/test/java/org/apache/commons/collections4/bidimap/AbstractOrderedBidiMapTest.java
index 1fc57e831..20443cbea 100644
--- a/src/test/java/org/apache/commons/collections/bidimap/AbstractOrderedBidiMapTest.java
+++ b/src/test/java/org/apache/commons/collections4/bidimap/AbstractOrderedBidiMapTest.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.bidimap;
+package org.apache.commons.collections4.bidimap;
import java.util.ArrayList;
import java.util.Collections;
@@ -23,10 +23,10 @@ import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;
-import org.apache.commons.collections.BulkTest;
-import org.apache.commons.collections.MapIterator;
-import org.apache.commons.collections.OrderedBidiMap;
-import org.apache.commons.collections.iterators.AbstractMapIteratorTest;
+import org.apache.commons.collections4.BulkTest;
+import org.apache.commons.collections4.MapIterator;
+import org.apache.commons.collections4.OrderedBidiMap;
+import org.apache.commons.collections4.iterators.AbstractMapIteratorTest;
/**
* Abstract test class for {@link OrderedBidiMap} methods and contracts.
diff --git a/src/test/java/org/apache/commons/collections/bidimap/AbstractSortedBidiMapTest.java b/src/test/java/org/apache/commons/collections4/bidimap/AbstractSortedBidiMapTest.java
similarity index 99%
rename from src/test/java/org/apache/commons/collections/bidimap/AbstractSortedBidiMapTest.java
rename to src/test/java/org/apache/commons/collections4/bidimap/AbstractSortedBidiMapTest.java
index 2fd954b93..953334a3b 100644
--- a/src/test/java/org/apache/commons/collections/bidimap/AbstractSortedBidiMapTest.java
+++ b/src/test/java/org/apache/commons/collections4/bidimap/AbstractSortedBidiMapTest.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.bidimap;
+package org.apache.commons.collections4.bidimap;
import java.util.ArrayList;
import java.util.Collections;
@@ -27,9 +27,9 @@ import java.util.SortedSet;
import java.util.TreeMap;
import java.util.TreeSet;
-import org.apache.commons.collections.BulkTest;
-import org.apache.commons.collections.SortedBidiMap;
-import org.apache.commons.collections.map.AbstractSortedMapTest;
+import org.apache.commons.collections4.BulkTest;
+import org.apache.commons.collections4.SortedBidiMap;
+import org.apache.commons.collections4.map.AbstractSortedMapTest;
/**
* Abstract test class for {@link SortedBidiMap} methods and contracts.
diff --git a/src/test/java/org/apache/commons/collections/bidimap/DualHashBidiMapTest.java b/src/test/java/org/apache/commons/collections4/bidimap/DualHashBidiMapTest.java
similarity index 78%
rename from src/test/java/org/apache/commons/collections/bidimap/DualHashBidiMapTest.java
rename to src/test/java/org/apache/commons/collections4/bidimap/DualHashBidiMapTest.java
index 2b45b9ea1..e64df27ed 100644
--- a/src/test/java/org/apache/commons/collections/bidimap/DualHashBidiMapTest.java
+++ b/src/test/java/org/apache/commons/collections4/bidimap/DualHashBidiMapTest.java
@@ -14,10 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.bidimap;
+package org.apache.commons.collections4.bidimap;
import junit.framework.Test;
-import org.apache.commons.collections.BulkTest;
+
+import org.apache.commons.collections4.BulkTest;
+import org.apache.commons.collections4.bidimap.DualHashBidiMap;
/**
* JUnit tests.
@@ -52,8 +54,8 @@ public class DualHashBidiMapTest extends AbstractBidiMapTest {
// public void testCreate() throws Exception {
// resetEmpty();
-// writeExternalFormToDisk((Serializable) map, "D:/dev/collections/data/test/DualHashBidiMap.emptyCollection.version3.obj");
+// writeExternalFormToDisk((java.io.Serializable) map, "src/test/resources/data/test/DualHashBidiMap.emptyCollection.version4.obj");
// resetFull();
-// writeExternalFormToDisk((Serializable) map, "D:/dev/collections/data/test/DualHashBidiMap.fullCollection.version3.obj");
+// writeExternalFormToDisk((java.io.Serializable) map, "src/test/resources/data/test/DualHashBidiMap.fullCollection.version4.obj");
// }
}
diff --git a/src/test/java/org/apache/commons/collections/bidimap/DualLinkedHashBidiMapTest.java b/src/test/java/org/apache/commons/collections4/bidimap/DualLinkedHashBidiMapTest.java
similarity index 79%
rename from src/test/java/org/apache/commons/collections/bidimap/DualLinkedHashBidiMapTest.java
rename to src/test/java/org/apache/commons/collections4/bidimap/DualLinkedHashBidiMapTest.java
index 4e487103a..f8eb4db37 100644
--- a/src/test/java/org/apache/commons/collections/bidimap/DualLinkedHashBidiMapTest.java
+++ b/src/test/java/org/apache/commons/collections4/bidimap/DualLinkedHashBidiMapTest.java
@@ -14,10 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.bidimap;
+package org.apache.commons.collections4.bidimap;
import junit.framework.Test;
-import org.apache.commons.collections.BulkTest;
+
+import org.apache.commons.collections4.BulkTest;
+import org.apache.commons.collections4.bidimap.DualLinkedHashBidiMap;
/**
* JUnit tests.
@@ -57,8 +59,8 @@ public class DualLinkedHashBidiMapTest extends AbstractBidiMapTest {
// public void testCreate() throws Exception {
// resetEmpty();
-// writeExternalFormToDisk((Serializable) map, "src/test/resources/data/test/DualLinkedHashBidiMap.emptyCollection.version4.obj");
+// writeExternalFormToDisk((java.io.Serializable) map, "src/test/resources/data/test/DualLinkedHashBidiMap.emptyCollection.version4.obj");
// resetFull();
-// writeExternalFormToDisk((Serializable) map, "src/test/resources/data/test/DualLinkedHashBidiMap.fullCollection.version4.obj");
+// writeExternalFormToDisk((java.io.Serializable) map, "src/test/resources/data/test/DualLinkedHashBidiMap.fullCollection.version4.obj");
// }
}
diff --git a/src/test/java/org/apache/commons/collections/bidimap/DualTreeBidiMap2Test.java b/src/test/java/org/apache/commons/collections4/bidimap/DualTreeBidiMap2Test.java
similarity index 89%
rename from src/test/java/org/apache/commons/collections/bidimap/DualTreeBidiMap2Test.java
rename to src/test/java/org/apache/commons/collections4/bidimap/DualTreeBidiMap2Test.java
index ad3288a0f..9634e28a7 100644
--- a/src/test/java/org/apache/commons/collections/bidimap/DualTreeBidiMap2Test.java
+++ b/src/test/java/org/apache/commons/collections4/bidimap/DualTreeBidiMap2Test.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.bidimap;
+package org.apache.commons.collections4.bidimap;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
@@ -28,10 +28,12 @@ import java.util.List;
import java.util.TreeMap;
import junit.framework.Test;
-import org.apache.commons.collections.BulkTest;
-import org.apache.commons.collections.SortedBidiMap;
-import org.apache.commons.collections.comparators.ComparableComparator;
-import org.apache.commons.collections.comparators.ReverseComparator;
+
+import org.apache.commons.collections4.BulkTest;
+import org.apache.commons.collections4.SortedBidiMap;
+import org.apache.commons.collections4.bidimap.DualTreeBidiMap;
+import org.apache.commons.collections4.comparators.ComparableComparator;
+import org.apache.commons.collections4.comparators.ReverseComparator;
/**
* JUnit tests.
@@ -144,7 +146,7 @@ public class DualTreeBidiMap2Test, V extends Comparable<
@Override
public String getCompatibilityVersion() {
- return "3.Test2";
+ return "4.Test2";
}
/**
@@ -157,8 +159,8 @@ public class DualTreeBidiMap2Test, V extends Comparable<
// public void testCreate() throws Exception {
// resetEmpty();
-// writeExternalFormToDisk((java.io.Serializable) map, "D:/dev/collections/data/test/DualTreeBidiMap.emptyCollection.version3.Test2.obj");
+// writeExternalFormToDisk((java.io.Serializable) map, "src/test/resources/data/test/DualTreeBidiMap.emptyCollection.version4.Test2.obj");
// resetFull();
-// writeExternalFormToDisk((java.io.Serializable) map, "D:/dev/collections/data/test/DualTreeBidiMap.fullCollection.version3.Test2.obj");
+// writeExternalFormToDisk((java.io.Serializable) map, "src/test/resources/data/test/DualTreeBidiMap.fullCollection.version4.Test2.obj");
// }
}
diff --git a/src/test/java/org/apache/commons/collections/bidimap/DualTreeBidiMapTest.java b/src/test/java/org/apache/commons/collections4/bidimap/DualTreeBidiMapTest.java
similarity index 79%
rename from src/test/java/org/apache/commons/collections/bidimap/DualTreeBidiMapTest.java
rename to src/test/java/org/apache/commons/collections4/bidimap/DualTreeBidiMapTest.java
index 465a2d78d..e0546cdde 100644
--- a/src/test/java/org/apache/commons/collections/bidimap/DualTreeBidiMapTest.java
+++ b/src/test/java/org/apache/commons/collections4/bidimap/DualTreeBidiMapTest.java
@@ -14,10 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.bidimap;
+package org.apache.commons.collections4.bidimap;
import junit.framework.Test;
-import org.apache.commons.collections.BulkTest;
+
+import org.apache.commons.collections4.BulkTest;
+import org.apache.commons.collections4.bidimap.DualTreeBidiMap;
/**
* JUnit tests.
@@ -52,8 +54,8 @@ public class DualTreeBidiMapTest, V extends Comparable, V extends Comparable> e
@Override
public String getCompatibilityVersion() {
- return "3.3";
+ return "4";
}
// public void testCreate() throws Exception {
// resetEmpty();
-// writeExternalFormToDisk((java.io.Serializable) map, "/tmp/TreeBidiMap.emptyCollection.version3.3.obj");
+// writeExternalFormToDisk((java.io.Serializable) map, "src/test/resources/data/test/TreeBidiMap.emptyCollection.version4.obj");
// resetFull();
-// writeExternalFormToDisk((java.io.Serializable) map, "/tmp/TreeBidiMap.fullCollection.version3.3.obj");
+// writeExternalFormToDisk((java.io.Serializable) map, "src/test/resources/data/test/TreeBidiMap.fullCollection.version4.obj");
// }
}
diff --git a/src/test/java/org/apache/commons/collections/bidimap/UnmodifiableBidiMapTest.java b/src/test/java/org/apache/commons/collections4/bidimap/UnmodifiableBidiMapTest.java
similarity index 88%
rename from src/test/java/org/apache/commons/collections/bidimap/UnmodifiableBidiMapTest.java
rename to src/test/java/org/apache/commons/collections4/bidimap/UnmodifiableBidiMapTest.java
index bb531a748..45ec1941b 100644
--- a/src/test/java/org/apache/commons/collections/bidimap/UnmodifiableBidiMapTest.java
+++ b/src/test/java/org/apache/commons/collections4/bidimap/UnmodifiableBidiMapTest.java
@@ -14,14 +14,16 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.bidimap;
+package org.apache.commons.collections4.bidimap;
import java.util.HashMap;
import java.util.Map;
import junit.framework.Test;
-import org.apache.commons.collections.BidiMap;
-import org.apache.commons.collections.BulkTest;
+import org.apache.commons.collections4.BidiMap;
+import org.apache.commons.collections4.BulkTest;
+import org.apache.commons.collections4.bidimap.DualHashBidiMap;
+import org.apache.commons.collections4.bidimap.UnmodifiableBidiMap;
/**
* JUnit tests.
diff --git a/src/test/java/org/apache/commons/collections/bidimap/UnmodifiableOrderedBidiMapTest.java b/src/test/java/org/apache/commons/collections4/bidimap/UnmodifiableOrderedBidiMapTest.java
similarity index 87%
rename from src/test/java/org/apache/commons/collections/bidimap/UnmodifiableOrderedBidiMapTest.java
rename to src/test/java/org/apache/commons/collections4/bidimap/UnmodifiableOrderedBidiMapTest.java
index d55fbb9db..8fb2e548c 100644
--- a/src/test/java/org/apache/commons/collections/bidimap/UnmodifiableOrderedBidiMapTest.java
+++ b/src/test/java/org/apache/commons/collections4/bidimap/UnmodifiableOrderedBidiMapTest.java
@@ -14,15 +14,17 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.bidimap;
+package org.apache.commons.collections4.bidimap;
import java.util.Map;
import java.util.TreeMap;
import junit.framework.Test;
-import org.apache.commons.collections.BidiMap;
-import org.apache.commons.collections.BulkTest;
-import org.apache.commons.collections.OrderedBidiMap;
+import org.apache.commons.collections4.BidiMap;
+import org.apache.commons.collections4.BulkTest;
+import org.apache.commons.collections4.OrderedBidiMap;
+import org.apache.commons.collections4.bidimap.TreeBidiMap;
+import org.apache.commons.collections4.bidimap.UnmodifiableOrderedBidiMap;
/**
* JUnit tests.
diff --git a/src/test/java/org/apache/commons/collections/bidimap/UnmodifiableSortedBidiMapTest.java b/src/test/java/org/apache/commons/collections4/bidimap/UnmodifiableSortedBidiMapTest.java
similarity index 90%
rename from src/test/java/org/apache/commons/collections/bidimap/UnmodifiableSortedBidiMapTest.java
rename to src/test/java/org/apache/commons/collections4/bidimap/UnmodifiableSortedBidiMapTest.java
index d8383c473..879c952a6 100644
--- a/src/test/java/org/apache/commons/collections/bidimap/UnmodifiableSortedBidiMapTest.java
+++ b/src/test/java/org/apache/commons/collections4/bidimap/UnmodifiableSortedBidiMapTest.java
@@ -14,14 +14,17 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.bidimap;
+package org.apache.commons.collections4.bidimap;
import java.util.SortedMap;
import java.util.TreeMap;
import junit.framework.Test;
-import org.apache.commons.collections.BulkTest;
-import org.apache.commons.collections.SortedBidiMap;
+
+import org.apache.commons.collections4.BulkTest;
+import org.apache.commons.collections4.SortedBidiMap;
+import org.apache.commons.collections4.bidimap.DualTreeBidiMap;
+import org.apache.commons.collections4.bidimap.UnmodifiableSortedBidiMap;
/**
* JUnit tests.
diff --git a/src/test/java/org/apache/commons/collections/collection/AbstractCollectionTest.java b/src/test/java/org/apache/commons/collections4/collection/AbstractCollectionTest.java
similarity index 99%
rename from src/test/java/org/apache/commons/collections/collection/AbstractCollectionTest.java
rename to src/test/java/org/apache/commons/collections4/collection/AbstractCollectionTest.java
index d1d93c523..b1a3b9c40 100644
--- a/src/test/java/org/apache/commons/collections/collection/AbstractCollectionTest.java
+++ b/src/test/java/org/apache/commons/collections4/collection/AbstractCollectionTest.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.collection;
+package org.apache.commons.collections4.collection;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
@@ -34,7 +34,7 @@ import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;
-import org.apache.commons.collections.AbstractObjectTest;
+import org.apache.commons.collections4.AbstractObjectTest;
/**
* Abstract test class for {@link java.util.Collection} methods and contracts.
@@ -90,7 +90,7 @@ import org.apache.commons.collections.AbstractObjectTest;
* {@link #confirmed}, the {@link #verify()} method is invoked to compare
* the results. You may want to override {@link #verify()} to perform
* additional verifications. For instance, when testing the collection
- * views of a map, {@link org.apache.commons.collections.map.AbstractMapTest AbstractTestMap}
+ * views of a map, {@link org.apache.commons.collections4.map.AbstractMapTest AbstractTestMap}
* would override {@link #verify()} to make
* sure the map is changed after the collection view is changed.
*
@@ -104,9 +104,9 @@ import org.apache.commons.collections.AbstractObjectTest;
* Those methods should provide a confirmed collection implementation
* that's compatible with your collection implementation.
*
- * If you're extending {@link org.apache.commons.collections.list.AbstractListTest AbstractListTest},
- * {@link org.apache.commons.collections.set.AbstractSetTest AbstractTestSet},
- * or {@link org.apache.commons.collections.bag.AbstractBagTest AbstractBagTest},
+ * If you're extending {@link org.apache.commons.collections4.list.AbstractListTest AbstractListTest},
+ * {@link org.apache.commons.collections4.set.AbstractSetTest AbstractTestSet},
+ * or {@link org.apache.commons.collections4.bag.AbstractBagTest AbstractBagTest},
* you probably don't have to worry about the
* above methods, because those three classes already override the methods
* to provide standard JDK confirmed collections.
diff --git a/src/test/java/org/apache/commons/collections/collection/CompositeCollectionTest.java b/src/test/java/org/apache/commons/collections4/collection/CompositeCollectionTest.java
similarity index 96%
rename from src/test/java/org/apache/commons/collections/collection/CompositeCollectionTest.java
rename to src/test/java/org/apache/commons/collections4/collection/CompositeCollectionTest.java
index 4508b27cc..d41f052d9 100644
--- a/src/test/java/org/apache/commons/collections/collection/CompositeCollectionTest.java
+++ b/src/test/java/org/apache/commons/collections4/collection/CompositeCollectionTest.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.collection;
+package org.apache.commons.collections4.collection;
import java.util.ArrayList;
import java.util.Arrays;
@@ -23,6 +23,8 @@ import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
+import org.apache.commons.collections4.collection.CompositeCollection;
+
/**
* Extension of {@link AbstractCollectionTest} for exercising the
* {@link CompositeCollection} implementation.
@@ -371,14 +373,14 @@ public class CompositeCollectionTest extends AbstractCollectionTest {
@Override
public String getCompatibilityVersion() {
- return "3.3";
+ return "4";
}
// public void testCreate() throws Exception {
// resetEmpty();
-// writeExternalFormToDisk((java.io.Serializable) collection, "/tmp/CompositeCollection.emptyCollection.version3.3.obj");
+// writeExternalFormToDisk((java.io.Serializable) getCollection(), "src/test/resources/data/test/CompositeCollection.emptyCollection.version4.obj");
// resetFull();
-// writeExternalFormToDisk((java.io.Serializable) collection, "/tmp/CompositeCollection.fullCollection.version3.3.obj");
+// writeExternalFormToDisk((java.io.Serializable) getCollection(), "src/test/resources/data/test/CompositeCollection.fullCollection.version4.obj");
// }
}
diff --git a/src/test/java/org/apache/commons/collections/collection/IndexedCollectionTest.java b/src/test/java/org/apache/commons/collections4/collection/IndexedCollectionTest.java
similarity index 96%
rename from src/test/java/org/apache/commons/collections/collection/IndexedCollectionTest.java
rename to src/test/java/org/apache/commons/collections4/collection/IndexedCollectionTest.java
index 4e71f636b..7653f261b 100644
--- a/src/test/java/org/apache/commons/collections/collection/IndexedCollectionTest.java
+++ b/src/test/java/org/apache/commons/collections4/collection/IndexedCollectionTest.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.collection;
+package org.apache.commons.collections4.collection;
import static java.util.Arrays.asList;
@@ -24,8 +24,8 @@ import java.util.Arrays;
import java.util.Collection;
import java.util.List;
-import org.apache.commons.collections.Transformer;
-import org.apache.commons.collections.collection.IndexedCollection;
+import org.apache.commons.collections4.Transformer;
+import org.apache.commons.collections4.collection.IndexedCollection;
/**
* Extension of {@link AbstractCollectionTest} for exercising the
diff --git a/src/test/java/org/apache/commons/collections/collection/PredicatedCollectionTest.java b/src/test/java/org/apache/commons/collections4/collection/PredicatedCollectionTest.java
similarity index 88%
rename from src/test/java/org/apache/commons/collections/collection/PredicatedCollectionTest.java
rename to src/test/java/org/apache/commons/collections4/collection/PredicatedCollectionTest.java
index 07051f54d..c4face208 100644
--- a/src/test/java/org/apache/commons/collections/collection/PredicatedCollectionTest.java
+++ b/src/test/java/org/apache/commons/collections4/collection/PredicatedCollectionTest.java
@@ -14,15 +14,16 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.collection;
+package org.apache.commons.collections4.collection;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
-import org.apache.commons.collections.Predicate;
-import org.apache.commons.collections.functors.TruePredicate;
+import org.apache.commons.collections4.Predicate;
+import org.apache.commons.collections4.collection.PredicatedCollection;
+import org.apache.commons.collections4.functors.TruePredicate;
/**
* Extension of {@link AbstractCollectionTest} for exercising the
@@ -123,14 +124,14 @@ public class PredicatedCollectionTest extends AbstractCollectionTest {
@Override
public String getCompatibilityVersion() {
- return "3.1";
+ return "4";
}
// public void testCreate() throws Exception {
// resetEmpty();
-// writeExternalFormToDisk((java.io.Serializable) collection, "D:/dev/collections/data/test/PredicatedCollection.emptyCollection.version3.1.obj");
+// writeExternalFormToDisk((java.io.Serializable) getCollection(), "src/test/resources/data/test/PredicatedCollection.emptyCollection.version4.obj");
// resetFull();
-// writeExternalFormToDisk((java.io.Serializable) collection, "D:/dev/collections/data/test/PredicatedCollection.fullCollection.version3.1.obj");
+// writeExternalFormToDisk((java.io.Serializable) getCollection(), "src/test/resources/data/test/PredicatedCollection.fullCollection.version4.obj");
// }
}
diff --git a/src/test/java/org/apache/commons/collections/collection/SynchronizedCollectionTest.java b/src/test/java/org/apache/commons/collections4/collection/SynchronizedCollectionTest.java
similarity index 80%
rename from src/test/java/org/apache/commons/collections/collection/SynchronizedCollectionTest.java
rename to src/test/java/org/apache/commons/collections4/collection/SynchronizedCollectionTest.java
index 8c29d69da..1974daf00 100644
--- a/src/test/java/org/apache/commons/collections/collection/SynchronizedCollectionTest.java
+++ b/src/test/java/org/apache/commons/collections4/collection/SynchronizedCollectionTest.java
@@ -14,12 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.collection;
+package org.apache.commons.collections4.collection;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
+import org.apache.commons.collections4.collection.SynchronizedCollection;
+
/**
* Extension of {@link AbstractCollectionTest} for exercising the
* {@link SynchronizedCollection} implementation.
@@ -53,14 +55,14 @@ public class SynchronizedCollectionTest extends AbstractCollectionTest {
@Override
public String getCompatibilityVersion() {
- return "3.1";
+ return "4";
}
// public void testCreate() throws Exception {
// resetEmpty();
-// writeExternalFormToDisk((java.io.Serializable) collection, "D:/dev/collections/data/test/SynchronizedCollection.emptyCollection.version3.1.obj");
+// writeExternalFormToDisk((java.io.Serializable) getCollection(), "src/test/resources/data/test/SynchronizedCollection.emptyCollection.version4.obj");
// resetFull();
-// writeExternalFormToDisk((java.io.Serializable) collection, "D:/dev/collections/data/test/SynchronizedCollection.fullCollection.version3.1.obj");
+// writeExternalFormToDisk((java.io.Serializable) getCollection(), "src/test/resources/data/test/SynchronizedCollection.fullCollection.version4.obj");
// }
}
diff --git a/src/test/java/org/apache/commons/collections/collection/TransformedCollectionTest.java b/src/test/java/org/apache/commons/collections4/collection/TransformedCollectionTest.java
similarity index 88%
rename from src/test/java/org/apache/commons/collections/collection/TransformedCollectionTest.java
rename to src/test/java/org/apache/commons/collections4/collection/TransformedCollectionTest.java
index bdb85c8f1..85448ca68 100644
--- a/src/test/java/org/apache/commons/collections/collection/TransformedCollectionTest.java
+++ b/src/test/java/org/apache/commons/collections4/collection/TransformedCollectionTest.java
@@ -14,15 +14,16 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.collections.collection;
+package org.apache.commons.collections4.collection;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
-import org.apache.commons.collections.Transformer;
-import org.apache.commons.collections.TransformerUtils;
+import org.apache.commons.collections4.Transformer;
+import org.apache.commons.collections4.TransformerUtils;
+import org.apache.commons.collections4.collection.TransformedCollection;
/**
* Extension of {@link AbstractCollectionTest} for exercising the {@link TransformedCollection}
@@ -116,14 +117,14 @@ public class TransformedCollectionTest extends AbstractCollectionTest