Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
testConstruction
Method · 0.95
testAddingWrongTypeFails
Method · 0.95
testAddingNullFails
Method · 0.95
testConstructorWithoutType
Method · 0.95
testSetMethod
Method · 0.95
testEquals
Method · 0.95
testEqualsWithDifferentSizes
Method · 0.95
testHashCode
Method · 0.95
testHashCodeWithNullElement
Method · 0.95
testAddAtIndex
Method · 0.95
testAddAtIndexWithWrongTypeFails
Method · 0.95
testAddAllAtIndex
Method · 0.95
Calls
2
checkType
Method · 0.95
add
Method · 0.65
Tested by
15
testConstruction
Method · 0.76
testAddingWrongTypeFails
Method · 0.76
testAddingNullFails
Method · 0.76
testConstructorWithoutType
Method · 0.76
testSetMethod
Method · 0.76
testEquals
Method · 0.76
testEqualsWithDifferentSizes
Method · 0.76
testHashCode
Method · 0.76
testHashCodeWithNullElement
Method · 0.76
testAddAtIndex
Method · 0.76
testAddAtIndexWithWrongTypeFails
Method · 0.76
testAddAllAtIndex
Method · 0.76