org.apache.commons.collections.keyvalue |
This package contains implementations of collection and map related key/value classes.
These are usually used in maps, however they can be used as data holders in any collection.
The following key/value designs are included:
- Map Entry - various map entry implementations
- KeyValue - a key and value pair, without map entry semantics
- MultiKey - a holder of multiple keys tied together
|
Java Source File Name | Type | Comment |
AbstractKeyValue.java | Class | Abstract pair class to assist with creating KeyValue
and
java.util.Map.Entry Map.Entry implementations.
since: Commons Collections 3.0 version: $Revision: 405927 $ $Date: 2006-05-12 23:57:03 +0100 (Fri, 12 May 2006) $ author: James Strachan author: Michael A. |
AbstractMapEntry.java | Class | Abstract Pair class to assist with creating correct
java.util.Map.Entry Map.Entry implementations.
since: Commons Collections 3.0 version: $Revision: 405927 $ $Date: 2006-05-12 23:57:03 +0100 (Fri, 12 May 2006) $ author: James Strachan author: Michael A. |
AbstractMapEntryDecorator.java | Class | Provides a base decorator that allows additional functionality to be
added to a
java.util.Map.Entry Map.Entry . |
AbstractTestMapEntry.java | Class | Abstract tests that can be extended to test any Map.Entry implementation.
Subclasses must implement
AbstractTestMapEntry.makeMapEntry(Object,Object) to return
a new Map.Entry of the type being tested. |
DefaultKeyValue.java | Class | A mutable KeyValue pair that does not implement
java.util.Map.Entry Map.Entry .
Note that a DefaultKeyValue instance may not contain
itself as a key or value.
since: Commons Collections 3.0 version: $Revision: 405927 $ $Date: 2006-05-12 23:57:03 +0100 (Fri, 12 May 2006) $ author: James Strachan author: Michael A. |
DefaultMapEntry.java | Class | A restricted implementation of
java.util.Map.Entry that prevents
the Map.Entry contract from being broken.
since: Commons Collections 3.0 version: $Revision: 405927 $ $Date: 2006-05-12 23:57:03 +0100 (Fri, 12 May 2006) $ author: James Strachan author: Michael A. |
MultiKey.java | Class | A MultiKey allows multiple map keys to be merged together.
The purpose of this class is to avoid the need to write code to handle
maps of maps. |
TestAll.java | Class | Entry point for key-value test cases. |
TestDefaultKeyValue.java | Class | Test the DefaultKeyValue class. |
TestDefaultMapEntry.java | Class | Test the DefaultMapEntry class. |
TestMultiKey.java | Class | Unit tests for
org.apache.commons.collections.MultiKey . |
TestTiedMapEntry.java | Class | Test the TiedMapEntry class. |
TestUnmodifiableMapEntry.java | Class | Test the UnmodifiableMapEntry class. |
TiedMapEntry.java | Class | A
java.util.Map.Entry Map.Entry tied to a map underneath. |
UnmodifiableMapEntry.java | Class | A
java.util.Map.Entry Map.Entry that throws
UnsupportedOperationException when setValue is called. |