- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for NewArray (0.74 sec)
-
guava/src/com/google/common/collect/ObjectArrays.java
* @param length the length of the new array */ public static <T extends @Nullable Object> T[] newArray(T[] reference, int length) { return Platform.newArray(reference, length); } /** * Returns a new array that contains the concatenated contents of two arrays. * * @param first the first array of elements to concatenate * @param second the second array of elements to concatenate
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 8.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ObjectArraysTest.java
} @GwtIncompatible // ObjectArrays.newArray(Class, int) public void testNewArray_fromClass_empty() { String[] empty = ObjectArrays.newArray(String.class, 0); assertEquals(String[].class, empty.getClass()); assertThat(empty).isEmpty(); } @GwtIncompatible // ObjectArrays.newArray(Class, int) public void testNewArray_fromClass_nonempty() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 8.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ObjectArrays.java
* @param length the length of the new array */ public static <T extends @Nullable Object> T[] newArray(T[] reference, int length) { return Platform.newArray(reference, length); } /** * Returns a new array that contains the concatenated contents of two arrays. * * @param first the first array of elements to concatenate * @param second the second array of elements to concatenate
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 8.9K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.java
* for insertions. */ static <E extends @Nullable Object> Set<E> preservesInsertionOrderOnAddsSet() { return new LinkedHashSet<>(); } static <T extends @Nullable Object> T[] newArray(T[] reference, int length) { T[] empty = reference.length == 0 ? reference : Arrays.copyOf(reference, 0); return Arrays.copyOf(empty, length); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jun 10 15:17:16 UTC 2025 - 5.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Platform.java
* about arrays for now, as they're a mess. (We previously discussed this in the review of * ObjectArrays, which is the main caller of this method.) */ static <T extends @Nullable Object> T[] newArray(T[] reference, int length) { T[] empty = reference.length == 0 ? reference : Arrays.copyOf(reference, 0); return Arrays.copyOf(empty, length); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/Platform.java
* about arrays for now, as they're a mess. (We previously discussed this in the review of * ObjectArrays, which is the main caller of this method.) */ static <T extends @Nullable Object> T[] newArray(T[] reference, int length) { T[] empty = reference.length == 0 ? reference : Arrays.copyOf(reference, 0); return Arrays.copyOf(empty, length); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.5K bytes - Viewed (0)