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