@Test public void emptyIsSameInstanceEveryTime() { Assert.assertSame(OptionalLong.empty(), OptionalLong.empty()); }
public static OptionalLong empty() { return EMPTY; }
OptionalLong { public static OptionalLong empty() { return EMPTY; } }
OptionalLong { public static OptionalLong empty() { return EMPTY; } private  OptionalLong(boolean isPresent, long value); }
OptionalLong { public static OptionalLong empty() { return EMPTY; } private  OptionalLong(boolean isPresent, long value); static OptionalLong empty(); static OptionalLong of(long value); long getAsLong(); void ifPresent(LongConsumer consumer); void ifPresentOrElse(LongConsumer consumer, Runnable emptyAction); boolean isPresent(); long orElse(long other); long orElseGet(LongSupplier other); long orElseThrow(Supplier<? extends X> exceptionSupplier); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
OptionalLong { public static OptionalLong empty() { return EMPTY; } private  OptionalLong(boolean isPresent, long value); static OptionalLong empty(); static OptionalLong of(long value); long getAsLong(); void ifPresent(LongConsumer consumer); void ifPresentOrElse(LongConsumer consumer, Runnable emptyAction); boolean isPresent(); long orElse(long other); long orElseGet(LongSupplier other); long orElseThrow(Supplier<? extends X> exceptionSupplier); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }