Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 20 for isPrimitive (0.07 seconds)

  1. android/guava/src/com/google/common/primitives/Primitives.java

      }
    
      /**
       * Returns an immutable set of all nine primitive types (including {@code void}). Note that a
       * simpler way to test whether a {@code Class} instance is a member of this set is to call {@link
       * Class#isPrimitive}.
       *
       * @since 3.0
       */
      public static Set<Class<?>> allPrimitiveTypes() {
        return PRIMITIVE_TO_WRAPPER_TYPE.keySet();
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 28 01:26:26 GMT 2024
    - 4.8K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/eventbus/SubscriberRegistry.java

                      + "Subscriber methods must have exactly 1 parameter.",
                  method,
                  parameterTypes.length);
    
              checkArgument(
                  !parameterTypes[0].isPrimitive(),
                  "@Subscribe method %s's parameter is %s. "
                      + "Subscriber methods cannot accept primitives. "
                      + "Consider changing the parameter to %s.",
                  method,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 10.8K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/reflect/TypeToken.java

       * @since 15.0
       */
      public final boolean isPrimitive() {
        return (runtimeType instanceof Class) && ((Class<?>) runtimeType).isPrimitive();
      }
    
      /**
       * Returns the corresponding wrapper type if this is a primitive type; otherwise returns {@code
       * this} itself. Idempotent.
       *
       * @since 15.0
       */
      public final TypeToken<T> wrap() {
        if (isPrimitive()) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 53.8K bytes
    - Click Count (0)
  4. compat/maven-model/src/test/java/org/apache/maven/model/pom/PomMemoryAnalyzer.java

                                            entry.getKey().toString(),
                                            visited);
                                }
                            }
                        } else if (!value.getClass().isPrimitive()
                                && !value.getClass().getName().startsWith("java.")) {
                            processModelNode(value, fullPath, field.getName(), visited);
                        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Mar 21 04:56:21 GMT 2025
    - 13.4K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java

         * @return {@literal true} if the argument was converted to match the type
         */
        protected static boolean adjustNumber(final Class<?>[] paramTypes, final Object[] args, final int index) {
            if (paramTypes[index].isPrimitive()) {
                if (paramTypes[index] == byte.class) {
                    args[index] = ByteConversionUtil.toByte(args[index]);
                    return true;
                } else if (paramTypes[index] == short.class) {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jun 19 09:12:22 GMT 2025
    - 25.8K bytes
    - Click Count (1)
  6. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

        } else {
          return TypeToken.of(instance.getClass()).method(method);
        }
      }
    
      static boolean isPrimitiveOrNullable(Parameter param) {
        return param.getType().getRawType().isPrimitive() || isNullable(param);
      }
    
      private static final ImmutableSet<String> NULLABLE_ANNOTATION_SIMPLE_NAMES =
          ImmutableSet.of("CheckForNull", "Nullable", "NullableDecl", "NullableType");
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 24.9K bytes
    - Click Count (0)
  7. guava-testlib/src/com/google/common/testing/NullPointerTester.java

        } else {
          return TypeToken.of(instance.getClass()).method(method);
        }
      }
    
      static boolean isPrimitiveOrNullable(Parameter param) {
        return param.getType().getRawType().isPrimitive() || isNullable(param);
      }
    
      private static final ImmutableSet<String> NULLABLE_ANNOTATION_SIMPLE_NAMES =
          ImmutableSet.of("CheckForNull", "Nullable", "NullableDecl", "NullableType");
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 25.4K bytes
    - Click Count (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/MethodMap.java

            if (actual == null && !formal.isPrimitive()) {
                return true;
            }
    
            // Check for identity or widening reference conversion
            if (formal.isAssignableFrom(actual)) {
                return true;
            }
    
            // Check for widening primitive conversion.
            if (formal.isPrimitive()) {
                if (formal == Short.TYPE && (actual == Byte.TYPE)) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/base/Defaults.java

       */
      @SuppressWarnings({
        "unchecked",
        "BooleanLiteral" // `(T) false` would produce an error
      })
      public static <T> @Nullable T defaultValue(Class<T> type) {
        checkNotNull(type);
        if (type.isPrimitive()) {
          if (type == boolean.class) {
            return (T) Boolean.FALSE;
          } else if (type == char.class) {
            return (T) Character.valueOf('\0');
          } else if (type == byte.class) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 02 19:58:40 GMT 2026
    - 2.2K bytes
    - Click Count (0)
  10. guava/src/com/google/common/base/Defaults.java

       */
      @SuppressWarnings({
        "unchecked",
        "BooleanLiteral" // `(T) false` would produce an error
      })
      public static <T> @Nullable T defaultValue(Class<T> type) {
        checkNotNull(type);
        if (type.isPrimitive()) {
          if (type == boolean.class) {
            return (T) Boolean.FALSE;
          } else if (type == char.class) {
            return (T) Character.valueOf('\0');
          } else if (type == byte.class) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 02 19:58:40 GMT 2026
    - 2.2K bytes
    - Click Count (0)
Back to Top