public class UtilCompatibleJdk16 extends UtilCompatibleJdk15
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 and Description |
|---|
UtilCompatibleJdk16() |
| Modifier and Type | Method and Description |
|---|---|
<T extends Comparable<T>> |
binarySearch(T[] ts,
int start,
int end,
T t)
As
Arrays.binarySearch(Object[], int, int, Object), but
available pre-JDK 1.6. |
void |
cancelStatement(Statement stmt)
Cancels and closes a SQL Statement object.
|
<T> T |
compileScript(Class<T> iface,
String script,
String engineName)
Compiles a script to yield a Java interface.
|
<T> Set<T> |
newIdentityHashSet()
Creates a hash set that, like
IdentityHashMap,
compares keys using identity. |
generateUuidString, getAnnotation, getMemoryInfo, makeBigDecimalFromDouble, newTimer, quotePattern, threadLocalRemovepublic <T> T compileScript(Class<T> iface, String script, String engineName)
UtilCompatiblecompileScript in interface UtilCompatiblecompileScript in class UtilCompatibleJdk15T - Interfaceiface - Interface script should implementscript - Script codeengineName - Name of engine (e.g. "JavaScript")public void cancelStatement(Statement stmt)
UtilCompatibleUtil.cancelStatement in interface UtilCompatiblecancelStatement 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 typepublic <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 UtilCompatibleJdk15Copyright © 2021 Hitachi Vantara. All rights reserved.