public class LangUtil extends Object
| Constructor and Description |
|---|
LangUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
bothNullOrEqual(Object a,
Object b) |
static Collection |
classesAndInterfaces(Class c) |
static String |
emptyStringIfNull(String s) |
static Object |
ifNotNull(Object o,
Object alternative) |
static Object |
ifNull(Object o,
Object alternative)
Useful because an expression used to generate o need only be
evaluated once.
|
static boolean |
isPrimitive(Class c) |
static Object |
newInstance(Class c) |
static Class |
toPrimitiveWrapperClass(Class primitiveClass) |
Copyright © 2015. All rights reserved.