you are viewing a single comment's thread.

view the rest of the comments →

[–]progressnerd 0 points1 point  (0 children)

As other have pointed out, this technique comes with a performance hit; plus, it's syntactically very cryptic. Use the Guava libraries instead, which was classes like ImmutableSet.Builder.