Module java.base
Package java.util

# Class OptionalInt

=
public final class OptionalInt
extends java.lang.Object

## Methods

- =
  public static java.util.OptionalInt empty()
- =
  public boolean equals(java.lang.Object arg0)
- =
  public int getAsInt()
- =
  public int hashCode()
- =
  public void ifPresent(java.util.function.IntConsumer arg0)
- =
  public void ifPresentOrElse(java.util.function.IntConsumer arg0, java.lang.Runnable arg1)
- =
  public boolean isEmpty()
- =
  public boolean isPresent()
- =
  public static java.util.OptionalInt of(int arg0)
- =
  public int orElse(int arg0)
- =
  public int orElseGet(java.util.function.IntSupplier arg0)
- =
  public int orElseThrow()
- =
  public <X> int orElseThrow(java.util.function.Supplier<? extends X> arg0) throws X
- =
  public java.util.stream.IntStream stream()
- =
  public java.lang.String toString()

## Summary

No differences.