public class Assert extends Object
public static <V> V notNull(String errorMessage, V value)
V
- errorMessage
- an error message to be displayed as part of the NullPointerException thrown.value
- the value that must not be nullNullPointerException
- if value is null.public static <V> V notNull(V value)
V
- value
- the value that must not be nullNullPointerException
- if value is null.Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.