Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/razerdp/BasePopup
/ subList
Method
subList
app/src/main/java/razerdp/demo/utils/ToolUtil.java:173–176 ·
view source on GitHub ↗
(List<T> source, int max)
Source
from the content-addressed store, hash-verified
171
}
172
173
public
static
<T> List<T> subList(List<T> source,
int
max) {
174
if
(isEmpty(source))
return
source;
175
return
source.size() > max ? source.subList(0, max) : source;
176
}
177
}
Callers
nothing calls this directly
Calls
2
isEmpty
Method · 0.95
size
Method · 0.45
Tested by
no test coverage detected