public class Assertions extends Object
Constructor and Description |
---|
Assertions() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
notNull(T value,
String name)
If the value is
null an IllegalArgumentException is thrown, otherwise the value is returned. |
public static <T> T notNull(T value, String name)
null
an IllegalArgumentException
is thrown, otherwise the value is returned.T
- the typevalue
- the value to checkname
- the name of the parameter being checkednull
Copyright © 2018 JBoss by Red Hat. All rights reserved.