public class Assert extends Object
public static <T> T notNull(T reference)
reference is not null. If it is, throw a
IllegalArgumentException.reference - reference to check is null or notreference so it may be usedIllegalArgumentException - if reference is nullpublic static <T> T notNull(T reference,
Object errorMessage)
reference is not null. If it is, throw a
IllegalArgumentException.reference - reference to check is null or noterrorMessage - message passed to the IllegalArgumentException constructor
to give more context when debuggingreference so it may be usedIllegalArgumentException - if reference is nullCopyright © 2015 Atlassian. All rights reserved.