- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 392 for asArray (0.05 sec)
-
src/main/java/org/codelibs/core/collection/ArrayUtil.java
* the value to add * @return a new array with the value appended */ public static boolean[] add(final boolean[] array, final boolean value) { assertArgumentNotNull("array", array); final boolean[] newArray = (boolean[]) Array.newInstance(boolean.class, array.length + 1); System.arraycopy(array, 0, newArray, 0, array.length); newArray[array.length] = value; return newArray; }
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 41.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/misc/AssertionUtil.java
} } /** * Asserts that the argument is neither <code>null</code> nor an empty array. * * @param argName * The name of the argument that must not be {@code null} or an empty array. * @param argValue * The value of the argument. * @throws EmptyArgumentException * If the argument is <code>null</code> or an empty array.
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/ArrayUtilTest.java
assertThat(ArrayUtil.addAll(emptyArray, array), is(sameInstance(array))); assertThat(ArrayUtil.addAll(array, emptyArray), is(sameInstance(array))); } /** * @throws Exception */ @Test public void testAdd_int() throws Exception { final int[] array = new int[] { 1 }; final int[] newArray = ArrayUtil.add(array, 2); assertThat(newArray.length, is(2));
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Fri Jun 20 13:40:57 UTC 2025 - 10.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/FieldUtil.java
* either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.core.lang; import static org.codelibs.core.collection.ArrayUtil.asArray; import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull; import java.lang.reflect.Field; import java.lang.reflect.Modifier; import java.lang.reflect.Type;
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 9.8K bytes - Viewed (0) -
src/main/java/org/codelibs/core/log/Logger.java
* either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.core.log; import static org.codelibs.core.collection.ArrayUtil.asArray; import static org.codelibs.core.collection.CollectionsUtil.newHashMap; import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotEmpty; import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull;
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 12.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/TraversalUtil.java
return getTraverser(url, null, rootDir); } /** * Returns an array of {@link Traverser} instances that handle collections of classes or resources based on the specified root package. * * @param rootPackage * The root package. * @return An array of {@link Traverser} instances that handle collections of resources based on the specified root package. */
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 18.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java
// For datasets of many double values created from an array, we test many combinations of // finite and non-finite values: for (ManyValues values : ALL_MANY_VALUES) { StatsAccumulator accumulator = new StatsAccumulator(); StatsAccumulator accumulatorByAddAllStats = new StatsAccumulator(); accumulator.addAll(values.asArray()); for (double value : values.asIterable()) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 36.9K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/StringSearchModelInterpolator.java
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 14K bytes - Viewed (0) -
android/guava/src/com/google/common/base/MoreObjects.java
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 Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 16.1K bytes - Viewed (0) -
guava/src/com/google/common/reflect/Types.java
// TODO(user): This is not the most efficient way to handle generic // arrays, but is there another way to extract the array class in a // non-hacky way (i.e. using String value class names- "[L...")? return Array.newInstance(componentType, 0).getClass(); } /* * TODO(benyu): Once behavior is the same for all Java (and Android) versions we support, delete
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Sep 03 14:03:14 UTC 2025 - 23.5K bytes - Viewed (0)