MCPcopy 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:
15225

Callers

nothing calls this directly

Calls 3

trimMethod · 0.80
nextMethod · 0.65
hasNextMethod · 0.45

Tested by

no test coverage detected