Returns a newly-created ImmutableSet based on the contents of the Builder.
()
| 529 | */ |
| 530 | |
| 531 | @Override |
| 532 | public ImmutableSet<E> build() { |
| 533 | ImmutableSet<E> result = construct(size, contents); |
| 534 | // construct has the side effect of deduping contents, so we update size |
| 535 | // accordingly. |
| 536 | size = result.size(); |
| 537 | return result; |
| 538 | } |
| 539 | } |
| 540 | } |