List
to ensure that no duplicates are present much like a Set
. The List
interface makes certain assumptions/requirements. This implementation breaks these in certain ways, but this is merely the result of rejecting duplicates. Each violation is explained in the method, but it should not affect you.
The {@link org.apache.commons.collections.set.ListOrderedSet ListOrderedSet}class provides an alternative approach, by wrapping an existing Set and retaining insertion order in the iterator.
This class is Serializable from Commons Collections 3.1. @since Commons Collections 3.0 @version $Revision: 1.8 $ $Date: 2004/06/03 22:02:13 $ @author Matthew Hawthorne @author Stephen Colebourne
|
|