Class Defaults


  • @Deprecated(since="2022-12-01")
    public final class Defaults
    extends java.lang.Object
    Deprecated.
    The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
    This class provides default values for all Java types, as defined by the JLS.
    Since:
    1.0
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static <T> T defaultValue​(java.lang.Class<T> type)
      Deprecated.
      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

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

      • defaultValue

        public static <T> T defaultValue​(java.lang.Class<T> type)
        Deprecated.
        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.