MCPcopy Create free account
hub / github.com/antlr/codebuff / immutableCopy

Method immutableCopy

corpus/java/training/guava/collect/Sets.java:559–561  ·  view source on GitHub ↗

Returns an immutable copy of the current contents of this set view. Does not support null elements. Warning: this may have unexpected results if a backing set of this view uses a nonstandard notion of equivalence, for example if it is a TreeSet using a comparator that is inconsist

()

Source from the content-addressed store, hash-verified

557 * Object#equals(Object)}.
558 */
559 public ImmutableSet<E> immutableCopy() {
560 return ImmutableSet.copyOf(this);
561 }
562
563 /**
564 * Copies the current contents of this set view into an existing set. This

Callers

nothing calls this directly

Calls 1

copyOfMethod · 0.95

Tested by

no test coverage detected