public final class Verify extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
notNull(Object ref,
String name)
Verify that a reference is not null.
|
static void |
present(Map<?,?> map,
Object key,
String name)
Verify that a map contains an entry for a given key.
|
static void |
verifyNull(Object ref,
String name)
Verify that a reference is null.
|
public static void notNull(Object ref, String name)
ref - to be verified not null.name - of the reference to be verified.public static void verifyNull(Object ref, String name)
ref - to be verified as null.name - of the reference to be verified.public static void present(Map<?,?> map, Object key, String name)
map - to be checked.key - to get by.name - of entry.NullPointerException - if map or key is nullIllegalStateException - if the entry does not exist.Copyright © 2014-2021 Real Logic Limited. All Rights Reserved.