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 found that ImmutableSet extends Set and the mutation methods of the ImmutableSet implicitly do nothing. I think this is unexpected behavior.
So what about making a new abstract class BaseSet with all the methods of the Set exclude mutators and edit both of Set and ImmutableSet to extend BaseSet?
Hi @markrogoyski,
I have a suggestion about
SetTheory
namespace.I found that
ImmutableSet
extendsSet
and the mutation methods of theImmutableSet
implicitly do nothing. I think this is unexpected behavior.So what about making a new abstract class
BaseSet
with all the methods of theSet
exclude mutators and edit both ofSet
andImmutableSet
to extendBaseSet
?Something like this:
And one more thing: maybe it's better to have
BaseSet
implementIteratorAggregate
interface instead ofIterator
?The text was updated successfully, but these errors were encountered: