public class Preconditions extends Object
| Constructor and Description |
|---|
Preconditions() |
| Modifier and Type | Method and Description |
|---|---|
static String |
notEmpty(String input) |
static String |
notEmpty(String input,
String name) |
static <T> T |
notNull(T object) |
static <T> T |
notNull(T object,
String name) |
static <T> T |
singleItem(Collection<T> collection) |
public static <T> T singleItem(Collection<T> collection)
public static <T> T notNull(T object)
public static <T> T notNull(T object,
String name)
Copyright © 2015. All rights reserved.