- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for isArray (0.11 sec)
-
src/test/java/org/codelibs/core/collection/ArrayUtilTest.java
/** * */ @Test public void testIsArray() { assertFalse(ArrayUtil.isArray(null)); assertFalse(ArrayUtil.isArray("hoge")); assertTrue(ArrayUtil.isArray(new Object[] {})); assertTrue(ArrayUtil.isArray(new Object[] { "" })); assertTrue(ArrayUtil.isArray(new Object[] { "aaa" })); } /** * */ @Test
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 10.6K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/StringSearchModelInterpolator.java
private void traverseObjectWithParents(Class<?> cls, Object target) throws ModelInterpolationException { if (cls == null) { return; } if (cls.isArray()) { evaluateArray(target); } else if (isQualifiedForInterpolation(cls)) { Field[] fields = FIELDS_BY_CLASS.computeIfAbsent(cls, k -> cls.getDeclaredFields());
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 14.1K bytes - Viewed (0) -
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) -
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) -
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) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ReflectionValueExtractor.java
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 10.8K bytes - Viewed (0) -
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) -
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) -
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) -
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)