Package com.hotels.transformer.base
Class Defaults
java.lang.Object
com.hotels.transformer.base.Defaults
public class Defaults extends Object
Default values for primitive types.
-
Constructor Summary
Constructors Constructor Description Defaults()
-
Method Summary
Modifier and Type Method Description static Object
defaultValue(Class<?> type)
Gets the default value of a primitive type.
-
Constructor Details
-
Defaults
public Defaults()
-
-
Method Details
-
defaultValue
Gets the default value of a primitive type.- Parameters:
type
- the class type- Returns:
- the default value of a primitive type.
-