MCPcopy Create free account
hub / github.com/FabricMC/Matcher / copySet

Method copySet

src/main/java/matcher/Util.java:45–51  ·  view source on GitHub ↗
(Set<T> set)

Source from the content-addressed store, hash-verified

43 }
44
45 public static <T> Set<T> copySet(Set<T> set) {
46 if (set instanceof HashSet) {
47 return new HashSet<>(set);
48 } else {
49 return newIdentityHashSet(set);
50 }
51 }
52
53 public static String getStackTrace(Throwable t) {
54 if (t == null) return null;

Callers 1

compareSetsMethod · 0.95

Calls 1

newIdentityHashSetMethod · 0.95

Tested by

no test coverage detected