MCPcopy Index your code
hub / github.com/apache/groovy / add

Method add

src/main/java/groovy/lang/Sequence.java:145–150  ·  view source on GitHub ↗

{@inheritDoc}

(int index, Object element)

Source from the content-addressed store, hash-verified

143 * {@inheritDoc}
144 */
145 @Override
146 public void add(int index, Object element) {
147 checkType(element);
148 hashCode = 0;
149 super.add(index, element);
150 }
151
152 /**
153 * {@inheritDoc}

Callers 15

testConstructionMethod · 0.95
testAddingNullFailsMethod · 0.95
testSetMethodMethod · 0.95
testEqualsMethod · 0.95
testHashCodeMethod · 0.95
testAddAtIndexMethod · 0.95
testAddAllAtIndexMethod · 0.95

Calls 2

checkTypeMethod · 0.95
addMethod · 0.65

Tested by 15

testConstructionMethod · 0.76
testAddingNullFailsMethod · 0.76
testSetMethodMethod · 0.76
testEqualsMethod · 0.76
testHashCodeMethod · 0.76
testAddAtIndexMethod · 0.76
testAddAllAtIndexMethod · 0.76