Package com.google.common.base
Class Defaults
- java.lang.Object
-
- com.google.common.base.Defaults
-
@GwtIncompatible public final class Defaults extends java.lang.Object
This class provides default values for all Java types, as defined by the JLS.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.DoubleDOUBLE_DEFAULTprivate static java.lang.FloatFLOAT_DEFAULT
-
Constructor Summary
Constructors Modifier Constructor Description privateDefaults()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> TdefaultValue(java.lang.Class<T> type)Returns the default value oftypeas defined by JLS ---0for numbers,falseforbooleanand'\0'forchar.
-