You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on this issue and here what I came to conclusion that the updated doc should be after describing effect of each.
* //Creates an empty mutable set
* MutableSet<String> emptySet = Sets.mutable.empty();
* // Creates a mutable set containing the specified elements "a", "b", and "c"
* MutableSet<String> setWith = Sets.mutable.with("a", "b", "c");
* // Creates a mutable set containing the specified elements "a", "b", and "c" (synonymous with setWith)
* MutableSet<String> setOf = Sets.mutable.of("a", "b", "c");
*
Thank you for your prompt response and for addressing the documentation issue. I appreciate the changes made to improve the clarity of the documentation for Sets.mutable.
If you have any more questions or if there's anything else I can assist with, please feel free to let me know.
The JavaDoc for factory classes contains examples. For example, the description of
org.eclipse.collections.impl.factory.Sets
contains:A reader will wonder how the last 2 examples (
setWith
andsetOf
) differ (besides names). It turns out they don't; they are merely synonyms.I recommend to stick with a single form, or to indicate that they are synonymous (or at least, to describe the effect of each).
The text was updated successfully, but these errors were encountered: