|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.util.UtilCompatibleJdk15
mondrian.util.UtilCompatibleJdk16
public class UtilCompatibleJdk16
Implementation of UtilCompatible that runs in
JDK 1.6.
Prior to JDK 1.6, this class should never be loaded. Applications should
instantiate this class via Class.forName(String) or better, use
methods in Util, and not instantiate it at all.
| Constructor Summary | |
|---|---|
UtilCompatibleJdk16()
|
|
| Method Summary | ||
|---|---|---|
|
binarySearch(T[] ts,
int start,
int end,
T t)
As Arrays.binarySearch(Object[], int, int, Object), but
available pre-JDK 1.6. |
|
void |
cancelAndCloseStatement(Statement stmt)
Cancels and closes a SQL Statement object. |
|
|
compileScript(Class<T> iface,
String script,
String engineName)
Compiles a script to yield a Java interface. |
|
|
newIdentityHashSet()
Creates a hash set that, like IdentityHashMap,
compares keys using identity. |
|
| Methods inherited from class mondrian.util.UtilCompatibleJdk15 |
|---|
generateUuidString, getAnnotation, getMemoryInfo, makeBigDecimalFromDouble, newTimer, quotePattern, threadLocalRemove |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UtilCompatibleJdk16()
| Method Detail |
|---|
public <T> T compileScript(Class<T> iface,
String script,
String engineName)
UtilCompatible
compileScript in interface UtilCompatiblecompileScript in class UtilCompatibleJdk15T - Interfaceiface - Interface script should implementscript - Script codeengineName - Name of engine (e.g. "JavaScript")
public void cancelAndCloseStatement(Statement stmt)
UtilCompatibleUtil.
cancelAndCloseStatement in interface UtilCompatiblecancelAndCloseStatement in class UtilCompatibleJdk15stmt - The statement to close.public <T> Set<T> newIdentityHashSet()
UtilCompatibleIdentityHashMap,
compares keys using identity.
newIdentityHashSet in interface UtilCompatiblenewIdentityHashSet in class UtilCompatibleJdk15T - Element type
public <T extends Comparable<T>> int binarySearch(T[] ts,
int start,
int end,
T t)
UtilCompatibleArrays.binarySearch(Object[], int, int, Object), but
available pre-JDK 1.6.
binarySearch in interface UtilCompatiblebinarySearch in class UtilCompatibleJdk15
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||