|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface UtilCompatible
Interface containing methods which are implemented differently in different versions of the JDK.
The methods should not be called directly, only via the corresponding
static methods in Util, namely:
This interface could in principle be extended to allow native implementations of methods, or to serve as a factory for entire classes which have different implementations in different environments.
| Method Summary | ||
|---|---|---|
|
compileScript(Class<T> iface,
String script,
String engineName)
Compiles a script to yield a Java interface. |
|
String |
generateUuidString()
|
|
|
getAnnotation(Method method,
String annotationClassName,
T defaultValue)
|
|
BigDecimal |
makeBigDecimalFromDouble(double d)
|
|
String |
quotePattern(String s)
|
|
|
threadLocalRemove(ThreadLocal<T> threadLocal)
|
|
| Method Detail |
|---|
BigDecimal makeBigDecimalFromDouble(double d)
String quotePattern(String s)
<T> T getAnnotation(Method method,
String annotationClassName,
T defaultValue)
String generateUuidString()
<T> T compileScript(Class<T> iface,
String script,
String engineName)
T - Interfaceiface - Interface script should implementscript - Script codeengineName - Name of engine (e.g. "JavaScript")
<T> void threadLocalRemove(ThreadLocal<T> threadLocal)
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||