1123 Commits

Author SHA1 Message Date
Stephen Colebourne
9a462e3990 Refactor to avoid unecessary instanceof call
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131693 13f79535-47bb-0310-9956-ffa450edef68
2004-05-03 11:50:30 +00:00
Stephen Colebourne
4eee185efd Remove dependency on functor subpackage
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131692 13f79535-47bb-0310-9956-ffa450edef68
2004-05-03 11:38:49 +00:00
Stephen Colebourne
987911a4a5 Javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131691 13f79535-47bb-0310-9956-ffa450edef68
2004-05-03 10:23:38 +00:00
Stephen Colebourne
c1576044be Change MultiKeyMap to be a decorator
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131689 13f79535-47bb-0310-9956-ffa450edef68
2004-04-30 23:51:36 +00:00
Stephen Colebourne
39ea52a450 Integrate reference identity map tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131688 13f79535-47bb-0310-9956-ffa450edef68
2004-04-30 22:53:44 +00:00
Stephen Colebourne
6f57c5a1f7 Improve reference map testing
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131687 13f79535-47bb-0310-9956-ffa450edef68
2004-04-30 22:53:16 +00:00
Stephen Colebourne
51c209801f Update to include latest map additions
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131686 13f79535-47bb-0310-9956-ffa450edef68
2004-04-30 21:13:38 +00:00
Stephen Colebourne
640d3a7b30 Javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131685 13f79535-47bb-0310-9956-ffa450edef68
2004-04-27 22:57:00 +00:00
Stephen Colebourne
a803d3b7b6 Add ReferenceIdentityMap
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131683 13f79535-47bb-0310-9956-ffa450edef68
2004-04-27 21:37:32 +00:00
Stephen Colebourne
6f10e417e1 Make ReferenceMap serializable
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131682 13f79535-47bb-0310-9956-ffa450edef68
2004-04-27 21:35:23 +00:00
Stephen Colebourne
c748ff1b56 Improve subclassability by delegating methods from entry to main map
Add support for serializable subclasses


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131681 13f79535-47bb-0310-9956-ffa450edef68
2004-04-27 21:32:52 +00:00
Stephen Colebourne
b2c7419e38 Javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131680 13f79535-47bb-0310-9956-ffa450edef68
2004-04-27 21:28:40 +00:00
Stephen Colebourne
d3077d07ae Update Bag interface text to indicate that we won't break compatability
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131679 13f79535-47bb-0310-9956-ffa450edef68
2004-04-27 20:43:05 +00:00
Stephen Colebourne
a249eba720 Add special cases for Set and Bag to CollectionUtils cardinality()
bug 28629, from Jon Schewe


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131678 13f79535-47bb-0310-9956-ffa450edef68
2004-04-27 20:00:18 +00:00
Stephen Colebourne
156ebc8e09 Use isFull() from addMapping() for better subclassing ability
from Mike Pettypiece


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131676 13f79535-47bb-0310-9956-ffa450edef68
2004-04-25 23:30:07 +00:00
Stephen Colebourne
bc680b3f48 Javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131675 13f79535-47bb-0310-9956-ffa450edef68
2004-04-25 23:27:43 +00:00
Stephen Colebourne
14e6c1795c Change enum to enumeration for JDK1.5 compliance
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131674 13f79535-47bb-0310-9956-ffa450edef68
2004-04-21 20:34:12 +00:00
Stephen Colebourne
491e48297b Add MapBackedSet that creates a Set by decorating a Map
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131673 13f79535-47bb-0310-9956-ffa450edef68
2004-04-20 23:51:31 +00:00
Stephen Colebourne
cf68324e1b Add accessor methods for value field in Node of AbstractLinkedList
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131672 13f79535-47bb-0310-9956-ffa450edef68
2004-04-20 23:47:53 +00:00
Stephen Colebourne
2199ec2fdf Add accessor methods for value field in Node
from Mike Pettypiece


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131670 13f79535-47bb-0310-9956-ffa450edef68
2004-04-20 23:33:54 +00:00
Stephen Colebourne
845a2177db LRUMap - The removeLRU() method was passed the wrong LinkEntry [28433]
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131669 13f79535-47bb-0310-9956-ffa450edef68
2004-04-16 23:53:59 +00:00
Stephen Colebourne
6aa2539dbf Add additional javadoc links to implementation classes
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131667 13f79535-47bb-0310-9956-ffa450edef68
2004-04-14 21:47:47 +00:00
Stephen Colebourne
94d5227bbf Clarify javadoc
from Simon Kitching


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131666 13f79535-47bb-0310-9956-ffa450edef68
2004-04-14 20:15:42 +00:00
Stephen Colebourne
834641d84a Add additional javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131665 13f79535-47bb-0310-9956-ffa450edef68
2004-04-14 20:08:57 +00:00
Stephen Colebourne
9cfe01cf6d Add MultiKeyMap implementation
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131664 13f79535-47bb-0310-9956-ffa450edef68
2004-04-12 12:05:30 +00:00
Stephen Colebourne
07a0768664 Fix additional tests for null handling to work with SortedMaps
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131663 13f79535-47bb-0310-9956-ffa450edef68
2004-04-12 12:04:00 +00:00
Stephen Colebourne
3ecf858e1a Remove reference to JDK1.2, as it breaks other tests, and seems to work anyway
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131662 13f79535-47bb-0310-9956-ffa450edef68
2004-04-12 12:01:38 +00:00
Stephen Colebourne
47f1e810f5 Add additional tests for null handling
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131661 13f79535-47bb-0310-9956-ffa450edef68
2004-04-12 11:38:33 +00:00
Stephen Colebourne
7374b1b7c2 Add singleton map to javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131660 13f79535-47bb-0310-9956-ffa450edef68
2004-04-12 11:37:05 +00:00
Stephen Colebourne
60dc88188c Change TransformedMap test cases to use good Transformer for serialization
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131659 13f79535-47bb-0310-9956-ffa450edef68
2004-04-10 22:22:57 +00:00
Stephen Colebourne
2edcfa07f8 Order tests alphabeticaly and by impl vs decorator
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131656 13f79535-47bb-0310-9956-ffa450edef68
2004-04-10 21:24:21 +00:00
Stephen Colebourne
79a39dac13 Add since tags and Javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131652 13f79535-47bb-0310-9956-ffa450edef68
2004-04-09 22:53:27 +00:00
Stephen Colebourne
e2db31cf78 Add since tags
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131651 13f79535-47bb-0310-9956-ffa450edef68
2004-04-09 22:52:48 +00:00
Stephen Colebourne
4433733ff1 Extract AbstractReferenceMap from ReferenceMap
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131650 13f79535-47bb-0310-9956-ffa450edef68
2004-04-09 22:18:18 +00:00
Stephen Colebourne
4c37a65e92 Javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131649 13f79535-47bb-0310-9956-ffa450edef68
2004-04-09 22:14:09 +00:00
Stephen Colebourne
64c1bc3bb0 Disable sub map serializable tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131647 13f79535-47bb-0310-9956-ffa450edef68
2004-04-09 15:17:11 +00:00
Stephen Colebourne
a61511a01b Increase testing of serialization
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131646 13f79535-47bb-0310-9956-ffa450edef68
2004-04-09 15:16:24 +00:00
Stephen Colebourne
a32505290c Fix tests for sub map views so BidiMap tests still work
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131645 13f79535-47bb-0310-9956-ffa450edef68
2004-04-09 15:04:29 +00:00
Stephen Colebourne
d759d4214b Make typed maps Serializable [18815]
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131644 13f79535-47bb-0310-9956-ffa450edef68
2004-04-09 14:57:41 +00:00
Stephen Colebourne
194c96f33b Add fully featured SingletonMap
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131643 13f79535-47bb-0310-9956-ffa450edef68
2004-04-09 14:46:35 +00:00
Stephen Colebourne
41660b5d62 Handle singleton maps in test class
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131642 13f79535-47bb-0310-9956-ffa450edef68
2004-04-09 14:45:38 +00:00
Stephen Colebourne
c2a8216feb Handle infinite loops in toString of Flat3Map
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131641 13f79535-47bb-0310-9956-ffa450edef68
2004-04-09 14:42:36 +00:00
Stephen Colebourne
56d551feff SingletonIterator - make remove() functionality optional
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131640 13f79535-47bb-0310-9956-ffa450edef68
2004-04-09 14:38:47 +00:00
Stephen Colebourne
8900470578 Handle singleton maps in test class
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131639 13f79535-47bb-0310-9956-ffa450edef68
2004-04-09 14:38:13 +00:00
Stephen Colebourne
94fff264aa Make TiedMapEntry serializable
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131638 13f79535-47bb-0310-9956-ffa450edef68
2004-04-09 14:35:10 +00:00
Stephen Colebourne
3c1749c51b Make unmodifiable maps Serializable [18815]
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131637 13f79535-47bb-0310-9956-ffa450edef68
2004-04-09 10:46:32 +00:00
Stephen Colebourne
ac6c18f090 Simplify the decorator serialization, add javadoc [18815]
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131636 13f79535-47bb-0310-9956-ffa450edef68
2004-04-09 10:36:02 +00:00
Stephen Colebourne
a05ca20552 Make UnmodifiableMap Serializable [18815]
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131635 13f79535-47bb-0310-9956-ffa450edef68
2004-04-09 10:32:25 +00:00
Stephen Colebourne
dcfc9f4ac2 Make Predicated and Transformed maps Serializable [18815]
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131634 13f79535-47bb-0310-9956-ffa450edef68
2004-04-09 09:43:09 +00:00
Stephen Colebourne
9511ce8dc1 Use support to work around bug in TreeMap sub map deserialization
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131633 13f79535-47bb-0310-9956-ffa450edef68
2004-04-09 09:40:15 +00:00