Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 49 for IsArray (0.13 sec)

  1. platforms/core-runtime/logging/src/main/java/org/gradle/util/GUtil.java

                } else if ((element instanceof Map) && flattenMaps) {
                    flatten(((Map<?, ?>) element).values(), addTo, flattenMaps, flattenArrays);
                } else if (element.getClass().isArray() && flattenArrays) {
                    flatten(asList((Object[]) element), addTo, flattenMaps, flattenArrays);
                } else {
                    Cast.<Collection<Object>>uncheckedNonnullCast(addTo).add(element);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  2. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/text/TreeFormatter.java

        public TreeFormatter appendValue(@Nullable Object value) {
            // Implementation is currently dumb, can be made smarter
            if (value == null) {
                append("null");
            } else if (value.getClass().isArray()) {
                Class<?> componentType = value.getClass().getComponentType();
                if (componentType.isPrimitive()) {
                    append(value.toString());
                } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 14:04:39 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  3. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/DefaultFileCollectionFactory.java

                    formatter.node(item + " (class: " + item.getClass().getName() + ")");
                }
            }
        }
    
        private boolean isEmptyArray(Object sources) {
            return sources.getClass().isArray() && Array.getLength(sources) == 0;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 18:57:37 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  4. maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ReflectionValueExtractor.java

                throws IntrospectionException {
            try {
                int index = Integer.parseInt(indexStr);
    
                if (value.getClass().isArray()) {
                    return Array.get(value, index);
                }
    
                if (value instanceof List) {
                    return ((List) value).get(index);
                }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Dec 05 08:11:33 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/expand_calls.go

    			a.Pos, a.Op, a.Type = pos, op, at
    			a.AddArgs(args...)
    		}
    		return a
    	}
    
    	if at.Size() == 0 {
    		// For consistency, create these values even though they'll ultimately be unused
    		if at.IsArray() {
    			return makeOf(a, OpArrayMake0, nil)
    		}
    		if at.IsStruct() {
    			return makeOf(a, OpStructMake0, nil)
    		}
    		return a
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 05:13:40 UTC 2023
    - 31.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/typecheck/subr.go

    	}
    
    	// 10. src is a slice and dst is an array or pointer-to-array.
    	// They must have same element type.
    	if src.IsSlice() {
    		if dst.IsArray() && types.Identical(src.Elem(), dst.Elem()) {
    			return ir.OSLICE2ARR, ""
    		}
    		if dst.IsPtr() && dst.Elem().IsArray() &&
    			types.Identical(src.Elem(), dst.Elem().Elem()) {
    			return ir.OSLICE2ARRPTR, ""
    		}
    	}
    
    	return ir.OXXX, ""
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 19:45:58 UTC 2023
    - 20.2K bytes
    - Viewed (0)
  7. maven-embedder/src/main/java/org/eclipse/sisu/plexus/PlexusXmlBeanConverter.java

            }
            if (Collection.class.isAssignableFrom(rawType)) {
                return parseCollection(parser, TypeArguments.get(toType.getSupertype(Collection.class), 0));
            }
            if (rawType.isArray()) {
                return parseArray(parser, TypeArguments.get(toType, 0));
            }
            return parseBean(parser, toType, rawType);
        }
    
        /**
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Mar 18 00:24:53 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

        }
        if (type.isEnum()) {
          T[] enumConstants = type.getEnumConstants();
          return (enumConstants == null || enumConstants.length == 0) ? null : enumConstants[0];
        }
        if (type.isArray()) {
          return createEmptyArray(type);
        }
        T jvmDefault = Defaults.defaultValue(Primitives.unwrap(type));
        if (jvmDefault != null) {
          return jvmDefault;
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/reflect/Types.java

          }
    
          @Override
          Type usedInGenericType(Type type) {
            checkNotNull(type);
            if (type instanceof Class) {
              Class<?> cls = (Class<?>) type;
              if (cls.isArray()) {
                return new GenericArrayTypeImpl(cls.getComponentType());
              }
            }
            return type;
          }
        },
        JAVA7 {
          @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

        }
        if (type.isEnum()) {
          T[] enumConstants = type.getEnumConstants();
          return (enumConstants == null || enumConstants.length == 0) ? null : enumConstants[0];
        }
        if (type.isArray()) {
          return createEmptyArray(type);
        }
        T jvmDefault = Defaults.defaultValue(Primitives.unwrap(type));
        if (jvmDefault != null) {
          return jvmDefault;
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 21K bytes
    - Viewed (0)
Back to top