public class Guard extends Object
| Constructor and Description |
|---|
Guard() |
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
itemsNotNull(Iterable<T> argument,
String name)
Asserts the argument, and none of it's iterable items, is null.
|
static <T> void |
itemsNotNull(T[] argument,
String name)
Asserts the argument, and none of it's items, is null.
|
static void |
notNull(Object argument,
String name)
Asserts the value is not null.
|
static <T> io.vavr.control.Try<T> |
tryNotNull(T argument,
String name)
Asserts the argument is not null.
|
public static void notNull(Object argument, String name)
argument - The argument to check.name - The name of the argument.public static <T> void itemsNotNull(Iterable<T> argument, String name)
T - The argument type.argument - The argument to check.name - The name of the argument.public static <T> void itemsNotNull(T[] argument,
String name)
T - The argument type.argument - The argument to check.name - The name of the argument.public static <T> io.vavr.control.Try<T> tryNotNull(T argument,
String name)
T - The argument type.argument - The argument to check.name - The name of the argument.Copyright © 2017. All rights reserved.