- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 15 for newEArray (0.1 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/org/codelibs/core/collection/ArrayUtilTest.java
final String[] newArray = ArrayUtil.remove(array, "333"); assertThat(newArray.length, is(2)); assertThat(newArray[0], is("111")); assertThat(newArray[1], is("222")); } /** * @throws Exception */ @Test public void testRemoveNothing() throws Exception { final String[] array = new String[] { "111", "222", "333" };
Created: Sat Dec 20 08:55:33 GMT 2025 - Last Modified: Fri Jun 20 13:40:57 GMT 2025 - 10.6K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMultipartRequestHandler.java
final String[] newArray; if (oldArray != null) { newArray = new String[oldArray.length + 1]; System.arraycopy(oldArray, 0, newArray, 0, oldArray.length); newArray[oldArray.length] = value; } else { newArray = new String[] { value }; } elementsAll.put(fieldName, newArray); elementsText.put(fieldName, newArray);
Created: Sat Dec 20 09:19:18 GMT 2025 - Last Modified: Sat Mar 15 06:53:53 GMT 2025 - 18.6K bytes - Click Count (1) -
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
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Dec 09 15:48:28 GMT 2025 - 8.9K bytes - Click Count (0) -
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
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Dec 09 15:48:28 GMT 2025 - 8.9K bytes - Click Count (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); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Jun 10 15:17:16 GMT 2025 - 5.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/ShortsTest.java
short[] array = {(short) 0, (short) 1, (short) 2}; List<Short> list = Shorts.asList(array); short[] newArray = Shorts.toArray(list); // Make sure it returned a copy list.set(0, (short) 4); assertThat(newArray).isEqualTo(new short[] {(short) 0, (short) 1, (short) 2}); newArray[1] = (short) 5; assertThat((short) list.get(1)).isEqualTo((short) 1); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 27.5K bytes - Click Count (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); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 5.3K bytes - Click Count (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); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 5.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableCollection.java
Object[] internal = internalArray(); if (internal != null) { return Platform.copy(internal, internalArrayStart(), internalArrayEnd(), other); } other = ObjectArrays.newArray(other, size); } else if (other.length > size) { other[size] = null; } copyIntoArray(other, 0); return other; }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 21.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/IterablesTest.java
public void testToArray() { String[] sourceArray = new String[] {"a", "b", "c"}; Iterable<String> iterable = asList(sourceArray); String[] newArray = Iterables.toArray(iterable, String.class); assertThat(newArray).isEqualTo(sourceArray); } public void testAny() { List<String> list = new ArrayList<>(); Predicate<String> predicate = equalTo("pants");
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:44:53 GMT 2025 - 45.6K bytes - Click Count (0)