- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 57 for newarray (0.21 sec)
-
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" };
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 10.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/ArrayUtil.java
final T[] newArray = (T[]) Array.newInstance(array.getClass().getComponentType(), array.length - 1); if (index > 0) { System.arraycopy(array, 0, newArray, 0, index); } if (index < array.length - 1) { System.arraycopy(array, index + 1, newArray, index, newArray.length - index); } return newArray; } /**
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 42.6K bytes - Viewed (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 }; } elementsText.put(name, newArray); elementsAll.put(name, newArray); }
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 16.4K bytes - Viewed (0) -
src/cmd/compile/internal/test/abiutils_test.go
// (r1 [2]int32, r2 [1]int32, r3 [0]int32, r4 [1][1]int32) { i32 := types.Types[types.TINT32] ae := types.NewArray(i32, 0) a1 := types.NewArray(i32, 1) a2 := types.NewArray(i32, 2) aa1 := types.NewArray(a1, 1) ft := mkFuncType(nil, []*types.Type{a1, ae, aa1, a2}, []*types.Type{a2, a1, ae, aa1}) exp := makeExpectedDump(`
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 04 15:11:40 UTC 2023 - 14.2K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/builtin.go
typs[28] = types.Types[types.TSTRING] typs[29] = newSig(params(typs[28]), nil) typs[30] = newSig(params(typs[2]), nil) typs[31] = newSig(params(typs[5]), nil) typs[32] = types.NewArray(typs[0], 32) typs[33] = types.NewPtr(typs[32]) typs[34] = newSig(params(typs[33], typs[28], typs[28]), params(typs[28])) typs[35] = newSig(params(typs[33], typs[28], typs[28], typs[28]), params(typs[28]))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 21:08:03 UTC 2024 - 16.2K bytes - Viewed (0) -
src/regexp/onepass.go
defer func() { if !ok { merged = nil next = nil } }() ix := -1 extend := func(newLow *int, newArray *[]rune, pc uint32) bool { if ix > 0 && (*newArray)[*newLow] <= merged[ix] { return false } merged = append(merged, (*newArray)[*newLow], (*newArray)[*newLow+1]) *newLow += 2 ix += 2 next = append(next, pc) return true } for lx < leftLen || rx < rightLen {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:36:03 UTC 2024 - 13.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/BytesTest.java
byte[] array = {(byte) 0, (byte) 1, (byte) 2}; List<Byte> list = Bytes.asList(array); byte[] newArray = Bytes.toArray(list); // Make sure it returned a copy list.set(0, (byte) 4); assertThat(newArray).isEqualTo(new byte[] {(byte) 0, (byte) 1, (byte) 2}); newArray[1] = (byte) 5; assertThat((byte) list.get(1)).isEqualTo((byte) 1); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 06 16:10:08 UTC 2024 - 16.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/CharsTest.java
char[] array = {(char) 0, (char) 1, (char) 2}; List<Character> list = Chars.asList(array); char[] newArray = Chars.toArray(list); // Make sure it returned a copy list.set(0, (char) 4); assertThat(newArray).isEqualTo(new char[] {(char) 0, (char) 1, (char) 2}); newArray[1] = (char) 5; assertThat((char) list.get(1)).isEqualTo((char) 1); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 24.7K bytes - Viewed (0) -
android/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); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 29 15:43:06 UTC 2024 - 26.6K bytes - Viewed (0) -
src/runtime/map_fast64.go
// Set hashWriting after calling t.hasher for consistency with mapassign. h.flags ^= hashWriting if h.buckets == nil { h.buckets = newobject(t.Bucket) // newarray(t.bucket, 1) } again: bucket := hash & bucketMask(h.B) if h.growing() { growWork_fast64(t, h, bucket) } b := (*bmap)(add(h.buckets, bucket*uintptr(t.BucketSize))) var insertb *bmap
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 14.1K bytes - Viewed (0)