public class InvalidListSizeException
extends java.lang.RuntimeException
@Sized.
This exception is used to indicate that the size of a list is either smaller than the minimum allowed size or larger than the maximum allowed size.
| Constructor and Description |
|---|
InvalidListSizeException(int minimum,
int maximum,
int inputSize,
@NotNull java.util.List<java.lang.Object> items) |
| Modifier and Type | Method and Description |
|---|---|
int |
inputSize()
Returns the actual size of the input list.
|
<T> @NotNull java.util.List<T> |
items()
Returns the list of items that caused this exception to be thrown.
|
int |
maximum()
Returns the maximum allowed size of the list.
|
int |
minimum()
Returns the minimum allowed size of the list.
|
public InvalidListSizeException(int minimum,
int maximum,
int inputSize,
@NotNull
@NotNull java.util.List<java.lang.Object> items)
public int minimum()
public int maximum()
public int inputSize()
@NotNull public <T> @NotNull java.util.List<T> items()