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-release/3.0/src/main/mondrian/util/UtilCompatible.java#2 $
Author:
jhyde

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)
           
 String quotePattern(String s)
           
 

Method Detail

enumSetOf

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

enumSetNoneOf

<E extends Enum<E>> Set<E> enumSetNoneOf(Class<E> elementType)

enumSetAllOf

<E extends Enum<E>> Set<E> enumSetAllOf(Class<E> elementType)

makeBigDecimalFromDouble

BigDecimal makeBigDecimalFromDouble(double d)

quotePattern

String quotePattern(String s)

getAnnotation

<T> T getAnnotation(Method method,
                    String annotationClassName,
                    T defaultValue)

SourceForge.net_Logo