mondrian.util
Class UtilCompatibleJdk15

java.lang.Object
  extended by 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
Author:
jhyde
 

Constructor Summary
UtilCompatibleJdk15()
           
 
Method Summary
<E extends Enum<E>>
Set<E>
enumSetAllOf(Class<E> elementType)
           
<E extends Enum<E>>
Set<E>
enumSetNoneOf(Class<E> elementType)
           
<E extends Enum<E>>
Set<E>
enumSetOf(E first, E... rest)
           
<T> T
getAnnotation(Method method, String annotationClassName, T defaultValue)
           
 BigDecimal makeBigDecimalFromDouble(double d)
          This generates a BigDecimal with a precision reflecting the precision of the input double.
 String quotePattern(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UtilCompatibleJdk15

public UtilCompatibleJdk15()
Method Detail

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

SourceForge.net_Logo