org.openspaces.core.util.numbers
Class NumberHelperFactory
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumberHelperFactory
public NumberHelperFactory()
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
Copyright © GigaSpaces.