@Test void fromOptionalShouldBeEquivalentToFromValueWhenPresent() { assertThat(Offset.from(Optional.of(VALUE))) .isEqualTo(Offset.from(VALUE)); }
public static Offset from(Optional<Integer> offset) { return offset.map(Offset::from) .orElse(none()); }
Offset { public static Offset from(Optional<Integer> offset) { return offset.map(Offset::from) .orElse(none()); } }
Offset { public static Offset from(Optional<Integer> offset) { return offset.map(Offset::from) .orElse(none()); } private  Offset(int offset); }
Offset { public static Offset from(Optional<Integer> offset) { return offset.map(Offset::from) .orElse(none()); } private  Offset(int offset); static Offset from(Optional<Integer> offset); static Offset none(); static Offset from(int offset); int getOffset(); @Override final boolean equals(Object o); @Override final int hashCode(); }
Offset { public static Offset from(Optional<Integer> offset) { return offset.map(Offset::from) .orElse(none()); } private  Offset(int offset); static Offset from(Optional<Integer> offset); static Offset none(); static Offset from(int offset); int getOffset(); @Override final boolean equals(Object o); @Override final int hashCode();  }