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 booleanbothNullOrEqual(Object a, Object b)static CollectionclassesAndInterfaces(Class c)static StringemptyStringIfNull(String s)static ObjectifNotNull(Object o, Object alternative)static ObjectifNull(Object o, Object alternative)Useful because an expression used to generate o need only be evaluated once.static booleanisPrimitive(Class c)static ObjectnewInstance(Class c)static ClasstoPrimitiveWrapperClass(Class primitiveClass)
-