Class TOptionalInt

java.lang.Object
org.teavm.classlib.java.util.TOptionalInt

public class TOptionalInt extends Object
  • Method Details

    • empty

      public static TOptionalInt empty()
    • of

      public static TOptionalInt of(int value)
    • getAsInt

      public int getAsInt()
    • isPresent

      public boolean isPresent()
    • isEmpty

      public boolean isEmpty()
    • ifPresent

      public void ifPresent(IntConsumer consumer)
    • orElse

      public int orElse(int other)
    • orElseGet

      public int orElseGet(IntSupplier other)
    • ifPresentOrElse

      public void ifPresentOrElse(IntConsumer action, Runnable emptyAction)
    • orElseThrow

      public <X extends Throwable> int orElseThrow(Supplier<? extends X> exceptionSupplier) throws X
      Throws:
      X extends Throwable
    • orElseThrow

      public int orElseThrow()
    • stream

      public TIntStream stream()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object