Java java.util OptionalInt fields, constructors, methods, implement or subclass

Example usage for Java java.util OptionalInt fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util OptionalInt.

The text is from its open source code.

Field

booleanisPresent
If true then the value is present, otherwise indicates no value is present

Method

intgetAsInt()
If a value is present, returns the value, otherwise throws NoSuchElementException .
OptionalIntof(int value)
Returns an OptionalInt describing the given value.