Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EdwardRaff/JSAT
/ set
Method
set
JSAT/src/jsat/utils/SimpleList.java:99–107 ·
view source on GitHub ↗
(int index, E element)
Source
from the content-addressed store, hash-verified
97
}
98
99
@Override
100
public
E set(
int
index, E element)
101
{
102
if
(index >= size())
103
throw
new
IndexOutOfBoundsException();
104
E prev = (E) source[index];
105
source[index] = element;
106
return
prev;
107
}
108
}
Callers
1
testSet
Method · 0.95
Calls
1
size
Method · 0.95
Tested by
1
testSet
Method · 0.76