Class TOptionalLong

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

public class TOptionalLong extends Object
  • Method Details

    • empty

      public static TOptionalLong empty()
    • of

      public static TOptionalLong of(long value)
    • getAsLong

      public long getAsLong()
    • isPresent

      public boolean isPresent()
    • isEmpty

      public boolean isEmpty()
    • ifPresent

      public void ifPresent(LongConsumer consumer)
    • orElse

      public long orElse(long other)
    • orElseGet

      public long orElseGet(LongSupplier other)
    • ifPresentOrElse

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

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

      public long orElseThrow()
    • stream

      public TLongStream 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