Module java.base
Package java.util

# Class OptionalLong

=
public final class OptionalLong
extends java.lang.Object

## Methods

- =
  public static java.util.OptionalLong empty()
- =
  public boolean equals(java.lang.Object arg0)
- =
  public long getAsLong()
- =
  public int hashCode()
- =
  public void ifPresent(java.util.function.LongConsumer arg0)
- =
  public void ifPresentOrElse(java.util.function.LongConsumer arg0, java.lang.Runnable arg1)
- =
  public boolean isEmpty()
- =
  public boolean isPresent()
- =
  public static java.util.OptionalLong of(long arg0)
- =
  public long orElse(long arg0)
- =
  public long orElseGet(java.util.function.LongSupplier arg0)
- =
  public long orElseThrow()
- =
  public <X> long orElseThrow(java.util.function.Supplier<? extends X> arg0) throws X
- =
  public java.util.stream.LongStream stream()
- =
  public java.lang.String toString()

## Summary

No differences.