public final class CheckCollection
extends java.lang.Object
Collection values.| Modifier and Type | Method | Description |
|---|---|---|
static Verify<java.util.Collection> |
max(int max) |
Check that the collection contains a maximum number of elements
|
static Verify<java.util.Collection> |
min(int min) |
Check that the collection contains a minimum number of elements
|
static Verify<java.util.Collection> |
noNullElements() |
Check that the collection does not contain any null elements
|
static Verify<java.util.Collection> |
notEmpty() |
Check that the collection is not empty.
|
public static Verify<java.util.Collection> notEmpty()
public static Verify<java.util.Collection> noNullElements()
public static Verify<java.util.Collection> min(int min)
min - minimumpublic static Verify<java.util.Collection> max(int max)
max - maximum