mondrian.util
Class UtilCompatibleJdk15
java.lang.Object
mondrian.util.UtilCompatibleJdk15
- All Implemented Interfaces:
- UtilCompatible
public class UtilCompatibleJdk15
- extends java.lang.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
Method Summary |
<E extends java.lang.Enum<E>>
java.util.Set<E> |
|
enumSetAllOf(java.lang.Class<E> elementType)
|
<E extends java.lang.Enum<E>>
java.util.Set<E> |
|
enumSetNoneOf(java.lang.Class<E> elementType)
|
<E extends java.lang.Enum<E>>
java.util.Set<E> |
|
enumSetOf(E first,
E... rest)
|
|
getAnnotation(java.lang.reflect.Method method,
java.lang.String annotationClassName,
T defaultValue)
|
java.math.BigDecimal |
makeBigDecimalFromDouble(double d)
This generates a BigDecimal with a precision reflecting
the precision of the input double. |
java.lang.String |
quotePattern(java.lang.String s)
|
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 java.lang.Enum<E>> java.util.Set<E> enumSetOf(E first,
E... rest)
- Specified by:
enumSetOf
in interface UtilCompatible
enumSetNoneOf
public <E extends java.lang.Enum<E>> java.util.Set<E> enumSetNoneOf(java.lang.Class<E> elementType)
- Specified by:
enumSetNoneOf
in interface UtilCompatible
enumSetAllOf
public <E extends java.lang.Enum<E>> java.util.Set<E> enumSetAllOf(java.lang.Class<E> elementType)
- Specified by:
enumSetAllOf
in interface UtilCompatible
makeBigDecimalFromDouble
public java.math.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 java.lang.String quotePattern(java.lang.String s)
- Specified by:
quotePattern
in interface UtilCompatible
getAnnotation
public <T> T getAnnotation(java.lang.reflect.Method method,
java.lang.String annotationClassName,
T defaultValue)
- Specified by:
getAnnotation
in interface UtilCompatible