Class Defaults


  • public final class Defaults
    extends java.lang.Object
    based on Guava com.google.common.base.Defaults
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object defaultValue​(java.lang.reflect.Type type)
      Returns the default value of type as defined by JLS --- 0 for numbers, false for boolean and '\0' for char.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • defaultValue

        public static java.lang.Object defaultValue​(java.lang.reflect.Type type)
        Returns the default value of type as defined by JLS --- 0 for numbers, false for boolean and '\0' for char. For non-primitive types and void, null is returned.