MCPcopy Create free account
hub / github.com/apache/thrift / deepCopySet

Method deepCopySet

lib/java/src/main/java/org/apache/thrift/TUnion.java:92–98  ·  view source on GitHub ↗
(Set set)

Source from the content-addressed store, hash-verified

90 }
91
92 private static Set deepCopySet(Set set) {
93 Set copy = new HashSet(set.size());
94 for (Object o : set) {
95 copy.add(deepCopyObject(o));
96 }
97 return copy;
98 }
99
100 private static List deepCopyList(List list) {
101 List copy = new ArrayList(list.size());

Callers 1

deepCopyObjectMethod · 0.95

Calls 3

deepCopyObjectMethod · 0.95
sizeMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected