From: Shane Carr Date: Wed, 2 May 2018 03:17:05 +0000 (+0000) Subject: ICU-13620 Adding more comments on CollectionSet. X-Git-Tag: release-62-rc~173 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e63d20ff6275cbb05b96601276bf082202c5df2a;p=icu ICU-13620 Adding more comments on CollectionSet. X-SVN-Rev: 41302 --- diff --git a/icu4j/main/classes/core/src/com/ibm/icu/impl/CollectionSet.java b/icu4j/main/classes/core/src/com/ibm/icu/impl/CollectionSet.java index 4f7eb9ce789..095661929b8 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/impl/CollectionSet.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/impl/CollectionSet.java @@ -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 implements Set {