@Test public void equalsSameReference() throws Exception { OptionalLong value = OptionalLong.of(1L); Assert.assertEquals(value, value); }
public static OptionalLong of(long value) { return new OptionalLong(true, value); }
OptionalLong { public static OptionalLong of(long value) { return new OptionalLong(true, value); } }
OptionalLong { public static OptionalLong of(long value) { return new OptionalLong(true, value); } private  OptionalLong(boolean isPresent, long value); }
OptionalLong { public static OptionalLong of(long value) { return new OptionalLong(true, value); } 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 of(long value) { return new OptionalLong(true, value); } 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();  }