Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for isPrimitive (0.06 sec)

  1. 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)) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Feb 25 08:27:34 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  2. 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();
      }
    
      /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 01:26:26 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Defaults.java

       * {@code void}, {@code null} is returned.
       */
      @SuppressWarnings("unchecked")
      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) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/io/SerializeUtil.java

                return ObjectInputFilter.Status.UNDECIDED;
            }
    
            final String className = serialClass.getName();
    
            // Allow primitive types and their wrappers
            if (serialClass.isPrimitive() || serialClass.isArray()) {
                return ObjectInputFilter.Status.ALLOWED;
            }
    
            // Check against allowed patterns
            for (String allowedPattern : DEFAULT_ALLOWED_PATTERNS) {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 9K bytes
    - Viewed (0)
  5. 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 Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  6. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Oct 31 19:34:24 UTC 2025
    - 24.3K bytes
    - Viewed (0)
  7. 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: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 24 01:52:43 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ClassMap.java

                // to convert our primitive type signature to the
                // corresponding Object type so introspection for
                // methods with primitive types will work correctly.
                if (parameterType.isPrimitive()) {
                    if (parameterType.equals(Boolean.TYPE)) {
                        methodKey.append("java.lang.Boolean");
                    } else if (parameterType.equals(Byte.TYPE)) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Apr 05 11:52:05 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  9. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Oct 31 19:34:24 UTC 2025
    - 24.3K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4.java

            if (type.isInstance(value)) {
                return true;
            }
            // likely Boolean -> boolean, Short -> int etc. conversions, it's not the problem case we try to avoid
            return ((type.isPrimitive() || type.getName().startsWith("java.lang."))
                    && value.getClass().getName().startsWith("java.lang."));
        }
    
        private String stripTokens(String expr) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jan 24 17:29:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
Back to top