Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for defaultValue (1.12 sec)

  1. guava/src/com/google/common/base/Defaults.java

       * false} for {@code boolean} and {@code '\0'} for {@code char}. For non-primitive types and
       * {@code void}, {@code null} is returned.
       */
      @SuppressWarnings("unchecked")
      @CheckForNull
      public static <T> T defaultValue(Class<T> type) {
        checkNotNull(type);
        if (type.isPrimitive()) {
          if (type == boolean.class) {
            return (T) Boolean.FALSE;
          } else if (type == char.class) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 23 15:09:35 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Defaults.java

       * false} for {@code boolean} and {@code '\0'} for {@code char}. For non-primitive types and
       * {@code void}, {@code null} is returned.
       */
      @SuppressWarnings("unchecked")
      @CheckForNull
      public static <T> T defaultValue(Class<T> type) {
        checkNotNull(type);
        if (type.isPrimitive()) {
          if (type == boolean.class) {
            return (T) Boolean.FALSE;
          } else if (type == char.class) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 23 15:09:35 UTC 2023
    - 2.2K bytes
    - Viewed (0)
Back to top