GigaSpaces XAP 7.0 API

org.openspaces.core.util.numbers
Class NumberHelperFactory

java.lang.Object
  extended by org.openspaces.core.util.numbers.NumberHelperFactory

public class NumberHelperFactory
extends Object

A factory allowing to create NumberHelper implemenations based on the provided Number type (such as Integer or Float).

Author:
kimchy

Constructor Summary
NumberHelperFactory()
           
 
Method Summary
static
<N extends Number>
NumberHelper<N>
getNumberHelper(Class<N> type)
          A factory allowing to create NumberHelper implemenations based on the provided Number type (such as Integer or Float).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberHelperFactory

public NumberHelperFactory()
Method Detail

getNumberHelper

public static <N extends Number> NumberHelper<N> getNumberHelper(Class<N> type)
                                                      throws IllegalArgumentException
A factory allowing to create NumberHelper implemenations based on the provided Number type (such as Integer or Float).

Parameters:
type - The type to construct the mappaed NumberHelper.
Returns:
The NumberHelper mapping for the provided type
Throws:
IllegalArgumentException - No NumberHelper for the provided type

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.