Here you can find the source of assertPositive(int value)
Parameter | Description |
---|---|
value | a parameter |
public static void assertPositive(int value)
//package com.java2s; public class Main { /**/*from ww w . j a va2s .com*/ * throws an IllegalArgumentException if the value is smaller then 0 * * * @param value * @since 1.4 */ public static void assertPositive(int value) { if (value < 0) { throw new IllegalArgumentException("value is smaller then 0"); } } }