(
long amount,
U unit
)
| 333 | * @throws IllegalArgumentException if amount is negative |
| 334 | */ |
| 335 | public static <U> Item<U> of( |
| 336 | long amount, |
| 337 | U unit |
| 338 | ) { |
| 339 | |
| 340 | return new Item<>(amount, unit); |
| 341 | |
| 342 | } |
| 343 | |
| 344 | /** |
| 345 | * <p>Yields the non-negative amount. </p> |
no outgoing calls