@Test public void ofShouldThrowOnNegativeValue() { assertThatThrownBy(() -> Offset.of(-1)) .isInstanceOf(IllegalArgumentException.class); }
public static Offset of(int value) { return new Offset(value); }
Offset { public static Offset of(int value) { return new Offset(value); } }
Offset { public static Offset of(int value) { return new Offset(value); } private  Offset(int value); }
Offset { public static Offset of(int value) { return new Offset(value); } private  Offset(int value); static Offset of(int value); static Offset none(); int getValue(); @Override final boolean equals(Object o); @Override final int hashCode(); @Override String toString(); }
Offset { public static Offset of(int value) { return new Offset(value); } private  Offset(int value); static Offset of(int value); static Offset none(); int getValue(); @Override final boolean equals(Object o); @Override final int hashCode(); @Override String toString();  }