Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for isPrimitive (0.09 sec)

  1. guava/src/com/google/common/reflect/Types.java

            // Bounds after the first can only be interfaces.
            if (componentType instanceof Class) {
              Class<?> componentClass = (Class<?>) componentType;
              if (componentClass.isPrimitive()) {
                return componentClass;
              }
            }
            return subtypeOf(componentType);
          }
        }
        return null;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/StringSearchModelInterpolator.java

            }
    
            private boolean isQualifiedForInterpolation(Field field, Class<?> fieldType) {
                if (!PRIMITIVE_BY_CLASS.containsKey(fieldType)) {
                    PRIMITIVE_BY_CLASS.put(fieldType, fieldType.isPrimitive());
                }
    
                if (PRIMITIVE_BY_CLASS.get(fieldType)) {
                    return false;
                }
    
                return !"parent".equals(field.getName());
            }
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 14K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

            return new String(buf);
        }
    
        @SuppressWarnings("unchecked")
        @Override
        public <T> T convertIfNeed(final Object arg) {
            if (propertyType.isPrimitive()) {
                return (T) convertPrimitiveWrapper(arg);
            } else if (Number.class.isAssignableFrom(propertyType)) {
                return (T) convertNumber(arg);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 24 01:52:43 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/lang/ClassUtil.java

            assertArgumentNotNull("toClass", toClass);
            assertArgumentNotNull("fromClass", fromClass);
    
            if (toClass == Object.class && !fromClass.isPrimitive()) {
                return true;
            }
            if (toClass.isPrimitive()) {
                fromClass = getPrimitiveClassIfWrapper(fromClass);
            }
            return toClass.isAssignableFrom(fromClass);
        }
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/reflect/Types.java

            // Bounds after the first can only be interfaces.
            if (componentType instanceof Class) {
              Class<?> componentClass = (Class<?>) componentType;
              if (componentClass.isPrimitive()) {
                return componentClass;
              }
            }
            return subtypeOf(componentType);
          }
        }
        return null;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  6. 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,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  7. 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) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 25.8K bytes
    - Viewed (1)
  8. 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");
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      }
    
      private static void assertIsPrimitive(TypeToken<?> type) {
        assertTrue(type.isPrimitive());
        assertNotWrapper(type);
        assertEquals(TypeToken.of(Primitives.wrap((Class<?>) type.getType())), type.wrap());
      }
    
      private static void assertNotPrimitive(TypeToken<?> type) {
        assertFalse(type.isPrimitive());
        assertSame(type, type.wrap());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      }
    
      private static void assertIsPrimitive(TypeToken<?> type) {
        assertTrue(type.isPrimitive());
        assertNotWrapper(type);
        assertEquals(TypeToken.of(Primitives.wrap((Class<?>) type.getType())), type.wrap());
      }
    
      private static void assertNotPrimitive(TypeToken<?> type) {
        assertFalse(type.isPrimitive());
        assertSame(type, type.wrap());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
Back to top