Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/BruceEckel/OnJava8-Examples
/ get
Method
get
enums/VendingMachine.java:144–149 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
142
}
143
}
144
@Override
public
Input get() {
145
if
(!input.hasNext())
146
return
null;
147
return
Enum.valueOf(
148
Input.
class
, input.next().trim());
149
}
150
}
151
/* Output:
152
25
Callers
nothing calls this directly
Calls
3
trim
Method · 0.80
next
Method · 0.65
hasNext
Method · 0.45
Tested by
no test coverage detected