[COLLECTIONS-494] Move Equator interface to base package.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1540567 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2013-11-10 22:19:29 +00:00
parent 1996cc6875
commit 648a21eb5d
9 changed files with 28 additions and 5 deletions

View File

@ -47,6 +47,7 @@ Major changes since 3.2.1
Changes since 4.0-alpha1
------------------------
o [COLLECTIONS-494] Moved "Equator" interface to base package for consistency. Thanks to Emmanuel Bourg.
o [COLLECTIONS-488] Added "CollectionsUtils#matchesAll(Iterable, Predicate)" to test if all elements
of a collection match a given predicate. Thanks to Josh Cain.
o [COLLECTIONS-485] Accept wildcard input where possible, e.g. in copy-constructors, Unmodifiable* decorators
@ -158,6 +159,7 @@ New features
Changed classes / methods
-------------------------
o [COLLECTIONS-494] Moved "Equator" interface to base package for consistency. Thanks to Emmanuel Bourg.
o [COLLECTIONS-485] Accept wildcard input where possible, e.g. in copy-constructors, Unmodifiable* decorators
and iterators. Thanks to Hollis Waite.
o [COLLECTIONS-480] Narrow return type of "BidiMap#values()" to Set as the values are required to be unique. Thanks to Hollis Waite.

View File

@ -21,7 +21,26 @@
</properties>
<body>
<release version="4.0" date="TBA" description="Next release">
<release version="4.0" date="2013-11-15" description="
This is a major release: It combines bug fixes, new features and
changes to existing features.
Most notable changes are: use of generics and other language features introduced in Java 5 (varargs, Iterable),
removed deprecated classes / methods and features which are now supported by the JDK,
replaced Buffer interface with java.util.Queue,
added concept of split maps with respective interfaces Put / Get (see also package splitmap),
added new Trie interface together with an implementation of a Patricia Trie.
Because of the base package name change, this release can be used together
with earlier versions of Commons Collections.
The minimal version of the Java platform required to compile and use
Commons Collections is Java 5.
Users are encouraged to upgrade to this version as, in addition to new
features, this release includes numerous bug fixes.
">
<action issue="COLLECTIONS-494" dev="tn" type="update" due-to="Emmanuel Bourg">
Moved "Equator" interface to base package for consistency.
</action>
<action issue="COLLECTIONS-488" dev="tn" type="add" due-to="Josh Cain">
Added "CollectionsUtils#matchesAll(Iterable, Predicate)" to test if all elements
of a collection match a given predicate.

View File

@ -36,7 +36,6 @@ 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;
import org.apache.commons.collections4.iterators.CollatingIterator;
import org.apache.commons.collections4.iterators.PermutationIterator;

View File

@ -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.collections4.functors;
package org.apache.commons.collections4;
/**
* An equation function, which determines equality between objects of type T.

View File

@ -26,7 +26,6 @@ import java.util.List;
import org.apache.commons.collections4.bag.HashBag;
import org.apache.commons.collections4.functors.DefaultEquator;
import org.apache.commons.collections4.functors.Equator;
import org.apache.commons.collections4.list.FixedSizeList;
import org.apache.commons.collections4.list.LazyList;
import org.apache.commons.collections4.list.PredicatedList;

View File

@ -18,6 +18,8 @@ package org.apache.commons.collections4.functors;
import java.io.Serializable;
import org.apache.commons.collections4.Equator;
/**
* Default {@link Equator} implementation.
*

View File

@ -20,6 +20,7 @@ import static org.apache.commons.collections4.functors.NullPredicate.nullPredica
import java.io.Serializable;
import org.apache.commons.collections4.Equator;
import org.apache.commons.collections4.Predicate;
/**

View File

@ -18,8 +18,8 @@ package org.apache.commons.collections4.sequence;
import java.util.List;
import org.apache.commons.collections4.Equator;
import org.apache.commons.collections4.functors.DefaultEquator;
import org.apache.commons.collections4.functors.Equator;
/**
* This class allows to compare two objects sequences.

View File

@ -155,6 +155,7 @@ have changed.
<center><h3>Changed classes / methods</h3></center>
<ul>
<li>Moved "Equator" interface to base package for consistency.</li>
<li>Accept wildcard input where possible, e.g. in copy-constructors, Unmodifiable* decorators and iterators.</li>
<li>Narrow return type of "BidiMap#values()" to Set as the values are required to be unique.</li>
<li>Made field "collection" in class "AbstractCollectionDecorator" private and added setter "setCollection(Collection)" with scope protected to set the decorated collection during de-serialization.</li>