ICU-13620 Adding more comments on CollectionSet.

X-SVN-Rev: 41302
This commit is contained in:
Shane Carr 2018-05-02 03:17:05 +00:00
parent 215417117e
commit e63d20ff62

View File

@ -9,6 +9,10 @@ import java.util.Set;
/**
* A wrapper around java.util.Collection that implements java.util.Set. This class keeps a pointer to the
* Collection and does not persist any data on its own.
*
* Useful when you need a Set but creating a HashSet is too expensive.
*
* IMPORTANT: The elements of the Collection *must* be unique! This class does not check.
*/
public class CollectionSet<E> implements Set<E> {