Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/EdwardRaff/JSAT
/ add
Method
add
JSAT/src/jsat/utils/BoundedSortedSet.java:30–38 ·
view source on GitHub ↗
(V e)
Source
from the content-addressed store, hash-verified
28
}
29
30
@Override
31
public
boolean add(V e)
32
{
33
super.add(e);
34
35
if
(size() > maxSize)
36
remove(last());
37
return
true;
38
}
39
40
@Override
41
public
boolean addAll(Collection<? extends V> clctn)
Callers
nothing calls this directly
Calls
3
size
Method · 0.65
remove
Method · 0.45
last
Method · 0.45
Tested by
no test coverage detected