|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.commons.convert.Util
public class Util
Utility methods.
| Method Summary | ||
|---|---|---|
static
|
cast(Object object)
Convenience method to cast parameterized types. |
|
static boolean |
instanceOf(Class<?> objectClass,
Class<?> typeClass)
Tests if a class is the same class as, or sub-class of, or implements typeClass. |
|
static boolean |
isEmpty(String str)
Returns true if str is null
or empty. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <V> V cast(Object object)
V - The type to cast toobject - The object to cast
obj cast to type V
public static boolean instanceOf(Class<?> objectClass,
Class<?> typeClass)
typeClass.
objectClass - Class to testtypeClass - Class to test against
true if objectClass is the same class as, or sub-class of, or implements typeClasspublic static boolean isEmpty(String str)
true if str is null
or empty.
str - The String to test
true if str is null
or empty
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||