@Test public void equalsOfValueEqualsItself() throws Exception { Assert.assertEquals(OptionalDouble.of(1.0), OptionalDouble.of(1.0)); }
public static OptionalDouble of(double value) { return new OptionalDouble(true, value); }
OptionalDouble { public static OptionalDouble of(double value) { return new OptionalDouble(true, value); } }
OptionalDouble { public static OptionalDouble of(double value) { return new OptionalDouble(true, value); } private  OptionalDouble(boolean isPresent, double value); }
OptionalDouble { public static OptionalDouble of(double value) { return new OptionalDouble(true, value); } private  OptionalDouble(boolean isPresent, double value); static OptionalDouble empty(); static OptionalDouble of(double value); double getAsDouble(); void ifPresent(DoubleConsumer consumer); void ifPresentOrElse(DoubleConsumer consumer, Runnable emptyAction); boolean isPresent(); double orElse(double other); double orElseGet(DoubleSupplier other); double orElseThrow(Supplier<? extends X> exceptionSupplier); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
OptionalDouble { public static OptionalDouble of(double value) { return new OptionalDouble(true, value); } private  OptionalDouble(boolean isPresent, double value); static OptionalDouble empty(); static OptionalDouble of(double value); double getAsDouble(); void ifPresent(DoubleConsumer consumer); void ifPresentOrElse(DoubleConsumer consumer, Runnable emptyAction); boolean isPresent(); double orElse(double other); double orElseGet(DoubleSupplier other); double orElseThrow(Supplier<? extends X> exceptionSupplier); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }