/** * Check that the array is not empty * @param array Array * @throws IllegalArgumentException If array is null or empty * @since 3.1 */ public static final void isNotEmpty(Object[] array) { isNotEmpty(array,null); }
/** * Check that the collection contains the value * @param collection Collection to check * @param value Value to check for, may be null * @throws IllegalArgumentException If collection is null or doesn't contain value */ public static final void contains(Collection collection, Object value) { contains(collection, value, null); }
/** * Check that the value is negative (<0). * @param value Value * @throws IllegalArgumentException If value is non-negative (>=0) */ public static final void isNegative(int value) { isNegative(value,null); }
/** * Check that the object is an instance of the specified Class * @param theClass Class * @param value Value * @throws IllegalArgumentException If value is null */ public static final void isInstanceOf(Class theClass, Object value) { isInstanceOf(theClass,value,null); }
/** * Check that the map contains the key * @param map Map to check * @param key Key to check for, may be null * @throws IllegalArgumentException If map is null or doesn't contain key */ public static final void containsKey(Map map, Object key) { containsKey(map, key, null); }
/** * Check that the value is negative (<0). * @param value Value * @throws IllegalArgumentException If value is non-negative (>=0) */ public static final void isNegative(int value) { isNegative(value,null); }
/** * Check that the object is an instance of the specified Class * @param theClass Class * @param value Value * @throws IllegalArgumentException If value is null */ public static final void isInstanceOf(Class theClass, Object value) { isInstanceOf(theClass,value,null); }
/** * Check that the map contains the key * @param map Map to check * @param key Key to check for, may be null * @throws IllegalArgumentException If map is null or doesn't contain key */ public static final void containsKey(Map map, Object key) { containsKey(map, key, null); }
/** * Check that the map is not empty * @param map Map * @throws IllegalArgumentException If map is null or empty */ public static final void isNotEmpty(Map map) { isNotEmpty(map,null); }
/** * Check that the value is negative (<0). * @param value Value * @throws IllegalArgumentException If value is non-negative (>=0) */ public static final void isNegative(long value) { isNegative(value,null); }
/** * Check that the collection contains the value * @param collection Collection to check * @param value Value to check for, may be null * @throws IllegalArgumentException If collection is null or doesn't contain value */ public static final void contains(Collection collection, Object value) { contains(collection, value, null); }
/** * Check that the object is non-null * @param value Value * @throws IllegalArgumentException If value is null */ public static final void isNotNull(Object value) { isNotNull(value,null); }
/** * Check that the array is not empty * @param array Array * @throws IllegalArgumentException If array is null or empty * @since 3.1 */ public static final void isNotEmpty(Object[] array) { isNotEmpty(array,null); }
/** * Check that the value is negative (<0). * @param value Value * @throws IllegalArgumentException If value is non-negative (>=0) */ public static final void isNegative(long value) { isNegative(value,null); }
/** * Check that the collection is not empty * @param collection Collection * @throws IllegalArgumentException If collection is null or empty */ public static final void isNotEmpty(Collection collection) { isNotEmpty(collection,null); }
public Permutation(Object[] items) { ArgCheck.isNotNull(items); this.items = items; }
/** * Check that the collection is not empty * @param collection Collection * @throws IllegalArgumentException If collection is null or empty */ public static final void isNotEmpty(Collection collection) { isNotEmpty(collection,null); }