public class Checks extends Object
Constructor and Description |
---|
Checks() |
Modifier and Type | Method and Description |
---|---|
static void |
notEmpty(String argument,
String message,
Object... params)
Checks argument is not empty (not null and has a non-whitespace character)
|
static void |
notEmptyShort(String argument,
String name)
Checks argument is not empty (not null and has a non-whitespace character)
|
static void |
notNull(Object argument,
String message,
Object... params)
Checks value is not null
|
static void |
notNullShort(Object argument,
String name)
Checks value is not null
|
static <T extends Comparable<? super T>> |
withinRange(T min,
T max,
T value,
String message)
Checks if argument is within a range
|
static <T extends Comparable<? super T>> |
withinRangeShort(T min,
T max,
T value,
String name)
Checks if argument is within a range
|
public static void notNull(Object argument, String message, Object... params)
argument
- message
- params
- IllegalStateException
public static void notEmpty(String argument, String message, Object... params)
argument
- message
- params
- IllegalStateException
public static <T extends Comparable<? super T>> void withinRange(T min, T max, T value, String message)
T
- min
- max
- value
- message
- IllegalStateException
public static void notNullShort(Object argument, String name)
argument
- name
- IllegalStateException
public static void notEmptyShort(String argument, String name)
argument
- name
- IllegalStateException
public static <T extends Comparable<? super T>> void withinRangeShort(T min, T max, T value, String name)
T
- min
- max
- value
- name
- IllegalStateException
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.