Class Defaults

java.lang.Object
org.javers.common.collections.Defaults

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

    • defaultValue

      public static Object defaultValue(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.