MCPcopy Create free account
hub / github.com/LFYSec/MScan / add

Method add

src/main/java/pascal/taie/util/collection/ArraySet.java:103–113  ·  view source on GitHub ↗
(E e)

Source from the content-addressed store, hash-verified

101 }
102
103 @Override
104 public boolean add(E e) {
105 Objects.requireNonNull(e, NULL_MESSAGE);
106 if (!elements.contains(e)) {
107 ensureCapacity(size() + 1);
108 elements.add(e);
109 return true;
110 } else {
111 return false;
112 }
113 }
114
115 @Override
116 public boolean remove(Object o) {

Callers 7

testBoundaryAddMethod · 0.95
getUsesMethod · 0.95
getUsesMethod · 0.95
getUsesMethod · 0.95
getUsesMethod · 0.95
addAllMethod · 0.95
addAllDiffMethod · 0.95

Calls 4

ensureCapacityMethod · 0.95
sizeMethod · 0.95
containsMethod · 0.65
addMethod · 0.65

Tested by 1

testBoundaryAddMethod · 0.76