@Test void testNegativeBigInteger() { assertThrows(IllegalArgumentException.class, () -> { Wei.valueOf(BigInteger.valueOf(-123L)); }); }
public static Wei valueOf(UInt256 value) { if (value.compareTo(UINT256_MAX_CONSTANT) <= 0) { return CONSTANTS[value.intValue()]; } return new Wei(value); }
Wei extends BaseUInt256Value<Wei> { public static Wei valueOf(UInt256 value) { if (value.compareTo(UINT256_MAX_CONSTANT) <= 0) { return CONSTANTS[value.intValue()]; } return new Wei(value); } }
Wei extends BaseUInt256Value<Wei> { public static Wei valueOf(UInt256 value) { if (value.compareTo(UINT256_MAX_CONSTANT) <= 0) { return CONSTANTS[value.intValue()]; } return new Wei(value); } private  Wei(UInt256 bytes); private  Wei(long value); private  Wei(BigInteger value); }
Wei extends BaseUInt256Value<Wei> { public static Wei valueOf(UInt256 value) { if (value.compareTo(UINT256_MAX_CONSTANT) <= 0) { return CONSTANTS[value.intValue()]; } return new Wei(value); } private  Wei(UInt256 bytes); private  Wei(long value); private  Wei(BigInteger value); static Wei valueOf(UInt256 value); static Wei valueOf(long value); static Wei valueOf(BigInteger value); }
Wei extends BaseUInt256Value<Wei> { public static Wei valueOf(UInt256 value) { if (value.compareTo(UINT256_MAX_CONSTANT) <= 0) { return CONSTANTS[value.intValue()]; } return new Wei(value); } private  Wei(UInt256 bytes); private  Wei(long value); private  Wei(BigInteger value); static Wei valueOf(UInt256 value); static Wei valueOf(long value); static Wei valueOf(BigInteger value);  }