2004-02-19 16:41:04 -05:00
|
|
|
<!--
|
|
|
|
Copyright 2003-2004 The Apache Software Foundation
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" 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.
|
|
|
|
-->
|
2004-02-26 19:22:09 -05:00
|
|
|
<title>RELEASE NOTES: COLLECTIONS 3.1</title>
|
2003-09-29 18:46:15 -04:00
|
|
|
|
2004-02-26 19:22:09 -05:00
|
|
|
<center><h2>RELEASE NOTES: COLLECTIONS 3.1</h2></center>
|
2003-09-29 18:46:15 -04:00
|
|
|
|
2003-12-29 13:04:36 -05:00
|
|
|
<p>
|
2004-06-09 17:13:14 -04:00
|
|
|
This release adds a various new classes and fixes a number of bugs.
|
2004-05-03 17:48:49 -04:00
|
|
|
No deprecations have occurred.
|
2004-06-09 17:13:14 -04:00
|
|
|
All feedback should be directed to commons-user at jakarta.apache.org.
|
2003-09-29 18:46:15 -04:00
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
2004-05-03 18:43:57 -04:00
|
|
|
<center><h3>COMPATABILITY</h3></center>
|
2004-06-09 17:13:14 -04:00
|
|
|
<p>
|
|
|
|
This release is source and binary compatible with v3.0 with one known exception:
|
|
|
|
</p>
|
2004-05-03 18:43:57 -04:00
|
|
|
<ul>
|
2004-06-09 17:13:14 -04:00
|
|
|
<li>ReferenceMap (map package) - No longer extends AbstractMap, only an issue if you previously cast to AbstractMap</li>
|
2004-05-03 18:43:57 -04:00
|
|
|
</ul>
|
2004-06-09 17:13:14 -04:00
|
|
|
<p>
|
|
|
|
This release also enables a workaround of the binary compatability issue with IteratorUtils in v3.0.
|
|
|
|
Collections v2.1.1 (with deprecations solved) and v3.1 are compatible with regards to iterators.
|
|
|
|
</p>
|
2004-05-03 18:43:57 -04:00
|
|
|
|
2004-03-13 10:54:34 -05:00
|
|
|
<center><h3>NEW CLASSES</h3></center>
|
2003-09-29 18:46:15 -04:00
|
|
|
<ul>
|
2004-05-16 07:54:47 -04:00
|
|
|
<li>TreeList - A list implementation that is faster than ArrayList for insertions and removals</li>
|
2004-04-12 08:05:30 -04:00
|
|
|
<li>MultiKeyMap - A map that allows multiple keys to be used to map the value</li>
|
2004-05-03 18:43:57 -04:00
|
|
|
<li>SingletonMap - fully featured singleton Map implementation</li>
|
2004-04-09 10:35:10 -04:00
|
|
|
<li>ObjectGraphIterator - An iterator that can iterate over a graph of objects</li>
|
2004-04-20 19:51:31 -04:00
|
|
|
<li>MapBackedSet - Set created by decorating a map</li>
|
2004-04-27 17:45:37 -04:00
|
|
|
<li>ReferenceIdentityMap - Similar to ReferenceMap, but matching keys and values by identity [26503]</li>
|
2004-04-09 18:56:00 -04:00
|
|
|
<li>AbstractReferenceMap - New base class for reference maps [26503]</li>
|
2004-05-22 05:46:39 -04:00
|
|
|
<li>Empty*Iterator - Iterators over empty collections</li>
|
2004-06-01 19:03:43 -04:00
|
|
|
<li>TransformedPredicate - A predicate where the input object is transformed [26946]</li>
|
|
|
|
<li>PredicateDecorator - An interface to provide a uniform interface to the decorated predicates</li>
|
2004-06-02 19:29:12 -04:00
|
|
|
<li>AbstractSerializable*Decorator - Abstract classes for decorators that are Serializable</li>
|
2003-09-29 18:46:15 -04:00
|
|
|
</ul>
|
|
|
|
|
2004-03-13 10:54:34 -05:00
|
|
|
<center><h3>ENHANCEMENTS</h3></center>
|
|
|
|
<ul>
|
2004-04-09 18:56:00 -04:00
|
|
|
<li>ReferenceMap - Changed to extend AbstractReferenceMap, thus gaining a mapIterator() and subclassability [26503]</li>
|
2004-03-31 18:18:56 -05:00
|
|
|
<li>Fast3Map - Add clone() method</li>
|
2004-03-13 10:54:34 -05:00
|
|
|
<li>MultiKey - Add getKey(index) and size() methods and make constructor public</li>
|
2004-03-31 18:18:56 -05:00
|
|
|
<li>MultiHashMap - Add five methods to improve the API</li>
|
2004-03-13 10:54:34 -05:00
|
|
|
<li>AbstractHashedMap,AbstractLinkedMap - Add methods to access entry methods when protected scope blocks</li>
|
2004-03-13 12:17:03 -05:00
|
|
|
<li>Functors - Add get methods to retrieve internal state [27515]</li>
|
2004-03-31 17:06:12 -05:00
|
|
|
<li>Functors - Add additional getInstance() methods for consistency [27856,27857]</li>
|
2004-04-01 17:43:13 -05:00
|
|
|
<li>CollectionUtils - get(Object,int) method now supports primitive arrays</li>
|
2004-04-27 16:00:18 -04:00
|
|
|
<li>CollectionUtils - cardinality() now works faster for Set and Bag instances [28629]</li>
|
2004-03-31 18:18:56 -05:00
|
|
|
<li>CollectionUtils - Add size(Object) method to find the size of various collection-like objects [27909]</li>
|
2004-04-09 10:38:47 -04:00
|
|
|
<li>SingletonIterator - make remove() functionality optional</li>
|
2004-04-20 19:47:53 -04:00
|
|
|
<li>AbstractLinkedList/NodeCachingLinkedList - added getValue() and setValue() to Node, and made everything use them</li>
|
2004-04-25 19:33:11 -04:00
|
|
|
<li>LRUMap - The addMapping() method now uses isFull() to determine whether it is full</li>
|
2004-05-12 15:55:56 -04:00
|
|
|
<li>LRUMap - Add boolean flag, scanUntilRemovable, giving the removeLRU() method more power [28887]</li>
|
2004-05-26 17:59:28 -04:00
|
|
|
<li>InvokerTransformer - Add additional getInstance() method</li>
|
|
|
|
<li>Reduced inter-class and inter-package dependencies, especially via *Utils classes</li>
|
2004-06-07 17:42:12 -04:00
|
|
|
<li>ListOrderedSet - Add new factory method decorate(Set,List)</li>
|
2004-06-07 17:51:39 -04:00
|
|
|
<li>ListOrderedSet - Add public constructor that uses a HashSet and ArrayList</li>
|
|
|
|
<li>ListOrderedMap - Add public constructor that uses a HashMap and ArrayList</li>
|
2004-03-13 10:54:34 -05:00
|
|
|
</ul>
|
2003-11-02 18:08:16 -05:00
|
|
|
|
2004-04-09 10:35:10 -04:00
|
|
|
<h4>Made Serializable</h4>
|
|
|
|
<ul>
|
|
|
|
<li>Fast3Map [27946]</li>
|
2004-06-02 19:29:12 -04:00
|
|
|
<li>ReferenceMap</li>
|
|
|
|
<li>UnboundedFifoBuffer</li>
|
|
|
|
<li>BoundedFifoBuffer</li>
|
|
|
|
<li>CircularFifoBuffer</li>
|
2004-04-09 10:35:10 -04:00
|
|
|
<li>TiedMapEntry</li>
|
2004-06-02 19:29:12 -04:00
|
|
|
<li>FixedSize* [18815]</li>
|
|
|
|
<li>Predicated* [18815]</li>
|
|
|
|
<li>Synchronized* [18815]</li>
|
|
|
|
<li>Transformed* [18815]</li>
|
|
|
|
<li>Typed* [18815]</li>
|
|
|
|
<li>Unmodifiable* [18815]</li>
|
|
|
|
<li>Lazy* [18815]</li>
|
|
|
|
<li>ListOrdered* [18815]</li>
|
|
|
|
<li>SetUniqueList [18815]</li>
|
2004-04-09 10:35:10 -04:00
|
|
|
</ul>
|
|
|
|
|
2004-03-13 07:43:43 -05:00
|
|
|
<center><h3>BUG FIXES</h3></center>
|
2004-03-13 10:54:34 -05:00
|
|
|
<ul>
|
2004-04-01 17:18:12 -05:00
|
|
|
<li>Map/BidiMap implementations only checked key and not value in entry set contains(Object) and remove(Object)</li>
|
2004-03-13 12:17:03 -05:00
|
|
|
<li>AbstractHashedMap subclasses failed to clone() correctly [27159]</li>
|
2004-03-17 16:14:10 -05:00
|
|
|
<li>ExtendedProperties - Close input stream in constructor [27737]</li>
|
2004-04-09 10:42:36 -04:00
|
|
|
<li>Flat3Map - Handle infinite loops in toString</li>
|
2004-04-16 19:53:59 -04:00
|
|
|
<li>LRUMap - The removeLRU() method was passed the wrong LinkEntry [28433]</li>
|
2004-04-25 19:33:11 -04:00
|
|
|
<li>EnumIterator/MapUtils - Changed enum references to enable JDK 1.5 compliance</li>
|
2004-05-03 11:13:30 -04:00
|
|
|
<li>UnmodifiableSortedBag - Fix to ensure unmodifiable</li>
|
2004-05-19 03:59:16 -04:00
|
|
|
<li>MultiHashMap - Fix copy constructor and clone to work properly [28972]</li>
|
2004-06-07 17:42:12 -04:00
|
|
|
<li>ListOrderedSet - Fix to throw IllegalArgumentException instead of NPE on null factory decorate(List)</li>
|
2004-03-13 10:54:34 -05:00
|
|
|
</ul>
|
2004-03-13 07:43:43 -05:00
|
|
|
|
2004-03-13 10:54:34 -05:00
|
|
|
<center><h3>JAVADOC</h3></center>
|
|
|
|
<ul>
|
2004-04-27 16:43:05 -04:00
|
|
|
<li>Bag - Indicate that no changes are likely to the interface despite its problems</li>
|
2004-03-13 12:17:03 -05:00
|
|
|
<li>TreeBidiMap - Add javadoc about requiring Comparable entries [26470]</li>
|
2004-03-13 10:54:34 -05:00
|
|
|
<li>MultiKey - Add extra explanatations, examples and warnings</li>
|
2004-03-14 10:33:57 -05:00
|
|
|
<li>MultiMap,MultiHashMap - Add extra documentation to clarify the interface and implementation</li>
|
2004-04-01 15:12:00 -05:00
|
|
|
<li>XxxUtils - Clarify the internal workings of the predicated decorator classes [28115]</li>
|
2004-04-25 19:33:11 -04:00
|
|
|
<li>BidiMap - Clarify 1 to 1 nature of the map</li>
|
2004-04-27 17:45:37 -04:00
|
|
|
<li>AbstractHashedMap - Fix isEqualValue() javadoc to refer to value not key</li>
|
2004-04-25 19:33:11 -04:00
|
|
|
<li>LRUMap - Added extra javadoc about method implementations</li>
|
2004-04-14 17:48:28 -04:00
|
|
|
<li>BoundedCollection/UnmodifiableBoundedCollection - reword to avoid misunderstandings</li>
|
|
|
|
<li>Closure/Predicate/Transformer/Factory - Additional javadoc with links</li>
|
|
|
|
<li>ClosureUtils/PredicateUtils/TransformerUtils/FactoryUtils - Additional links to implementations</li>
|
2004-05-22 05:46:39 -04:00
|
|
|
<li>Predicated* - Additional usage explanation [29018]</li>
|
2004-03-13 10:54:34 -05:00
|
|
|
</ul>
|