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

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

Introduction

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

The text is from its open source code.

Field

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

Method

longgetAsLong()
If a value is present, returns the value, otherwise throws NoSuchElementException .
OptionalLongof(long value)
Returns an OptionalLong describing the given value.