Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 36 for inArray (0.11 sec)

  1. android/guava/src/com/google/common/base/MoreObjects.java

          } else if (value instanceof Map) {
            return ((Map<?, ?>) value).isEmpty();
          } else if (value instanceof Optional) {
            return !((Optional) value).isPresent();
          } else if (value.getClass().isArray()) {
            return Array.getLength(value) == 0;
          }
          return false;
        }
    
        /**
         * Returns a string in the format specified by {@link MoreObjects#toStringHelper(Object)}.
         *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 10 15:41:27 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/collection/ArrayUtil.java

         *
         * @param object
         *            オブジェクト
         * @return オブジェクトが配列の場合は{@literal true}。{@literal null}の場合は{@literal false}
         */
        public static boolean isArray(final Object object) {
            return object != null && object.getClass().isArray();
        }
    
        /**
         * オブジェクトが配列でない場合は{@literal true}を返します。{@literal null}の場合は{@literal true}
         * を返します。
         *
         * @param object
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/crawler/transformer/FessTransformer.java

                    oldValues = ((Collection<?>) oldValue).toArray();
                } else {
                    oldValues = new Object[] { oldValue };
                }
                if (value.getClass().isArray()) {
                    final Object[] newValues = (Object[]) value;
                    final Object[] values = Arrays.copyOf(oldValues, oldValues.length + newValues.length);
                    for (int i = 0; i < newValues.length; i++) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. internal/s3select/sql/value.go

    		return true
    	}
    	return false
    }
    
    // IsMissing - checks if value is missing.
    func (v Value) IsMissing() bool {
    	_, ok := v.value.(Missing)
    	return ok
    }
    
    // IsArray returns whether the value is an array.
    func (v Value) IsArray() (ok bool) {
    	_, ok = v.value.([]Value)
    	return ok
    }
    
    func (v Value) isNumeric() bool {
    	//nolint:gocritic
    	switch v.value.(type) {
    	case int64, float64:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Feb 25 20:31:19 UTC 2022
    - 20.2K bytes
    - Viewed (0)
  5. compat/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: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  6. compat/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: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  7. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 23K 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/reflect/InvokableTest.java

            sep = ", ";
          }
          methods.add(signature.append(")").toString());
        }
        return methods.build();
      }
    
      private static String typeName(Class<?> type) {
        return type.isArray() ? typeName(type.getComponentType()) + "[]" : type.getName();
      }
    
      public void testConstructor() throws Exception {
        Invokable<A, A> invokable = A.constructor();
        assertTrue(invokable.isPublic());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/reflect/InvokableTest.java

            sep = ", ";
          }
          methods.add(signature.append(")").toString());
        }
        return methods.build();
      }
    
      private static String typeName(Class<?> type) {
        return type.isArray() ? typeName(type.getComponentType()) + "[]" : type.getName();
      }
    
      public void testConstructor() throws Exception {
        Invokable<A, A> invokable = A.constructor();
        assertTrue(invokable.isPublic());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top