Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/BruceEckel/OnJava8-Examples
/ toString
Method
toString
reflection/ID2.java:10–12 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
8
private
static
long counter;
9
private
final
long id = counter++;
10
@Override
public
String toString() {
11
return
Long.toString(id);
12
}
13
public
static
void
main(String[] args) {
14
Stream.generate(
15
new
DynamicSupplier<>(ID2.
class
))
Callers
1
main
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected