@Test public void fromLongShouldThrowWhenNegativeValue() throws Exception { assertThatThrownBy(() -> Number.fromLong(-1)) .isInstanceOf(IllegalArgumentException.class); }
public static Number fromLong(long value) { return new Number(value); }
Number { public static Number fromLong(long value) { return new Number(value); } }
Number { public static Number fromLong(long value) { return new Number(value); } private  Number(long value); }
Number { public static Number fromLong(long value) { return new Number(value); } private  Number(long value); static Number fromLong(long value); @JsonValue long asLong(); @Override final boolean equals(Object o); @Override final int hashCode(); @Override String toString(); }
Number { public static Number fromLong(long value) { return new Number(value); } private  Number(long value); static Number fromLong(long value); @JsonValue long asLong(); @Override final boolean equals(Object o); @Override final int hashCode(); @Override String toString(); static final Logger LOGGER; static final String VALIDATION_MESSAGE; static final long MAX_VALUE; static final Number ZERO; static final Factory<Optional<Number>> DEFAULT_FACTORY; static final Factory<Number> BOUND_SANITIZING_FACTORY; }