Class Defaults

java.lang.Object
com.expediagroup.transformer.base.Defaults

public class Defaults
extends java.lang.Object
Default values for primitive types.
  • Constructor Summary

    Constructors
    Constructor Description
    Defaults()  
  • Method Summary

    Modifier and Type Method Description
    static java.lang.Object defaultValue​(java.lang.Class<?> type)
    Gets the default value of a primitive type.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Defaults

      public Defaults()
  • Method Details

    • defaultValue

      public static java.lang.Object defaultValue​(java.lang.Class<?> type)
      Gets the default value of a primitive type.
      Parameters:
      type - the class type
      Returns:
      the default value of a primitive type.