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
The constructor of Array, ArraySet and ArrayMap uses instanceof for doing different logics according to different input which implements Iterable. This can be avoided by creating 2 new constructors taking Collection and other class and put the logic there.
The text was updated successfully, but these errors were encountered:
super132
changed the title
Array, ArraySet and ArrayMap should get rid of instanceof
Array, ArraySet and ArrayMap should get rid of instanceofMay 27, 2015
super132
changed the title
Array, ArraySet and ArrayMap should get rid of instanceof
Array, ArraySet and ArrayMap should get rid of "instanceof"
May 27, 2015
The constructor of
Array
,ArraySet
andArrayMap
usesinstanceof
for doing different logics according to different input which implementsIterable
. This can be avoided by creating 2 new constructors takingCollection
and other class and put the logic there.The text was updated successfully, but these errors were encountered: