MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / nextInstant

Method nextInstant

java/src/org/openqa/selenium/json/JsonInput.java:292–296  ·  view source on GitHub ↗

Read the next element of the JSON input stream as an instant. @deprecated Instant is not a basic JSON type, use the InstantCoercer instead. @return Instant object @throws JsonException if the next element isn't a Long @throws UncheckedIOException if an I/O exception is encou

()

Source from the content-addressed store, hash-verified

290 * @throws UncheckedIOException if an I/O exception is encountered
291 */
292 @Deprecated(forRemoval = true)
293 public @Nullable Instant nextInstant() {
294 Long time = read(Long.class);
295 return (null != time) ? Instant.ofEpochSecond(time) : null;
296 }
297
298 /**
299 * Read the next element of the JSON input stream and expect the end of the input.

Callers

nothing calls this directly

Calls 1

readMethod · 0.95

Tested by

no test coverage detected