Class Defaults


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

      Constructors 
      Constructor Description
      Defaults()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      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 Detail

      • Defaults

        public Defaults()
    • Method Detail

      • 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.