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