|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.util.YUtil
public final class YUtil
This class provides some static convenience methods and temporary scratch variables.
Method Summary | |
---|---|
static boolean |
getBool(java.lang.Object obj)
Converts an Object to boolean. |
static double |
getDouble(java.lang.Object obj)
Converts an Object to double. |
static int |
getInt(java.lang.Object obj)
Converts an Object to int. |
static java.net.URL |
getURL(java.lang.String relativePath)
Returns the corresponding absolute URL to the given relative path. |
static boolean |
isDoubleConvertible(java.lang.Object obj)
Checks if the given Object is convertible to a double value. |
static boolean |
isIntConvertible(java.lang.Object obj)
Checks if the given Object is convertible to an integer value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean getBool(java.lang.Object obj)
public static boolean isIntConvertible(java.lang.Object obj)
public static boolean isDoubleConvertible(java.lang.Object obj)
public static int getInt(java.lang.Object obj)
0
is returned.
public static double getDouble(java.lang.Object obj)
0.0
is returned.
public static java.net.URL getURL(java.lang.String relativePath)
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |