|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.common.base.Defaults
public final class Defaults
This class provides default values for all Java types, as defined by the JLS.
| Method Summary | ||
|---|---|---|
static
|
defaultValue(java.lang.Class<T> 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 |
|---|
public static <T> T defaultValue(java.lang.Class<T> type)
type as defined by JLS --- 0
for numbers, false for boolean and '\0' for char. For non-primitive types and void, null is returned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||