mondrian.util
Class UtilCompatibleJdk15
java.lang.Object
mondrian.util.UtilCompatibleJdk15
- All Implemented Interfaces:
- UtilCompatible
public class UtilCompatibleJdk15
- extends Object
- implements UtilCompatible
Implementation of UtilCompatible which runs in
JDK 1.5.
Prior to JDK 1.5, 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.
- Since:
- Feb 5, 2007
- Version:
- $Id: //open/mondrian/src/main/mondrian/util/UtilCompatibleJdk15.java#6 $
- Author:
- jhyde
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UtilCompatibleJdk15
public UtilCompatibleJdk15()
enumSetOf
public <E extends Enum<E>> Set<E> enumSetOf(E first,
E... rest)
- Specified by:
enumSetOf in interface UtilCompatible
enumSetNoneOf
public <E extends Enum<E>> Set<E> enumSetNoneOf(Class<E> elementType)
- Specified by:
enumSetNoneOf in interface UtilCompatible
enumSetAllOf
public <E extends Enum<E>> Set<E> enumSetAllOf(Class<E> elementType)
- Specified by:
enumSetAllOf in interface UtilCompatible
makeBigDecimalFromDouble
public BigDecimal makeBigDecimalFromDouble(double d)
- This generates a BigDecimal with a precision reflecting
the precision of the input double.
- Specified by:
makeBigDecimalFromDouble in interface UtilCompatible
- Parameters:
d - input double
- Returns:
- BigDecimal
quotePattern
public String quotePattern(String s)
- Specified by:
quotePattern in interface UtilCompatible
getAnnotation
public <T> T getAnnotation(Method method,
String annotationClassName,
T defaultValue)
- Specified by:
getAnnotation in interface UtilCompatible