Package org.locationtech.jts.jump.util
Class LangUtil
- java.lang.Object
-
- org.locationtech.jts.jump.util.LangUtil
-
public class LangUtil extends Object
Utilities to support the Java language.
-
-
Constructor Summary
Constructors Constructor Description LangUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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)
-