public final class Arguments extends Object
| Modifier and Type | Method and Description |
|---|---|
static io.atlassian.fugue.Option<String> |
checkArgumentNotBlank(io.atlassian.fugue.Option<String> argument,
String argumentName)
Check that the passed argument is not blank provided it is defined.
|
static String |
checkArgumentNotBlank(String argument,
String argumentName)
Check that the passed argument is not blank.
|
static <T> T |
checkArgumentNotNull(T argument,
String argumentName)
Check that the passed argument is
null. |
public static String checkArgumentNotBlank(String argument, String argumentName)
argument - the argument to check.argumentName - the name of the argument to check.IllegalArgumentException - if argument is blank.public static <T> T checkArgumentNotNull(@Nullable T argument, String argumentName)
null.T - the type of argumentargument - the argument to check.argumentName - the name of the argument to check.NullPointerException - if argument is null.public static io.atlassian.fugue.Option<String> checkArgumentNotBlank(io.atlassian.fugue.Option<String> argument, String argumentName)
argument - the argument to check.argumentName - the name of the argument to check.IllegalArgumentException - if argument is blank.Copyright © 2018 Atlassian. All rights reserved.