Example usage for Java java.util OptionalInt fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | isPresent If true then the value is present, otherwise indicates no value is present |
int | getAsInt() If a value is present, returns the value, otherwise throws NoSuchElementException . |
OptionalInt | of(int value) Returns an OptionalInt describing the given value. |