Package mondrian.util

Class UtilCompatibleJdk16

  • All Implemented Interfaces:
    UtilCompatible

    public class UtilCompatibleJdk16
    extends UtilCompatibleJdk15
    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.

    Author:
    jhyde
    • Constructor Detail

      • UtilCompatibleJdk16

        public UtilCompatibleJdk16()
    • Method Detail

      • compileScript

        public <T> T compileScript​(java.lang.Class<T> iface,
                                   java.lang.String script,
                                   java.lang.String engineName)
        Description copied from interface: UtilCompatible
        Compiles a script to yield a Java interface.
        Specified by:
        compileScript in interface UtilCompatible
        Overrides:
        compileScript in class UtilCompatibleJdk15
        Type Parameters:
        T - Interface
        Parameters:
        iface - Interface script should implement
        script - Script code
        engineName - Name of engine (e.g. "JavaScript")
        Returns:
        Object that implements given interface
      • binarySearch

        public <T extends java.lang.Comparable<T>> int binarySearch​(T[] ts,
                                                                    int start,
                                                                    int end,
                                                                    T t)
        Description copied from interface: UtilCompatible
        As Arrays.binarySearch(Object[], int, int, Object), but available pre-JDK 1.6.
        Specified by:
        binarySearch in interface UtilCompatible
        Overrides:
        binarySearch in class UtilCompatibleJdk15