mondrian.util
Interface UtilCompatible

All Known Implementing Classes:
UtilCompatibleJdk14, UtilCompatibleJdk15

public interface UtilCompatible

Interface containing methods which are implemented differently in different versions of the JDK.

The methods should not be called directly, only via the corresponding static methods in Util, namely:

This interface could in principle be extended to allow native implementations of methods, or to serve as a factory for entire classes which have different implementations in different environments.

Since:
Feb 5, 2007
Version:
$Id: //open/mondrian/src/main/mondrian/util/UtilCompatible.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)
           
<T> T
getAnnotation(java.lang.reflect.Method method, java.lang.String annotationClassName, T defaultValue)
           
 java.math.BigDecimal makeBigDecimalFromDouble(double d)
           
 java.lang.String quotePattern(java.lang.String s)
           
 

Method Detail

enumSetOf

<E extends java.lang.Enum<E>> java.util.Set<E> enumSetOf(E first,
                                                         E... rest)

enumSetNoneOf

<E extends java.lang.Enum<E>> java.util.Set<E> enumSetNoneOf(java.lang.Class<E> elementType)

enumSetAllOf

<E extends java.lang.Enum<E>> java.util.Set<E> enumSetAllOf(java.lang.Class<E> elementType)

makeBigDecimalFromDouble

java.math.BigDecimal makeBigDecimalFromDouble(double d)

quotePattern

java.lang.String quotePattern(java.lang.String s)

getAnnotation

<T> T getAnnotation(java.lang.reflect.Method method,
                    java.lang.String annotationClassName,
                    T defaultValue)

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads