Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ReadyTalk/avian
/ singletonList
Method
singletonList
classpath/java/util/Collections.java:811–815 ·
view source on GitHub ↗
(T o)
Source
from the content-addressed store, hash-verified
809
}
810
811
public
static
<T> List<T> singletonList(T o) {
812
ArrayList<T> list =
new
ArrayList<T>(1);
813
list.add(o);
814
return
new
UnmodifiableList(list);
815
}
816
}
Callers
nothing calls this directly
Calls
1
add
Method · 0.95
Tested by
no test coverage detected