Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 57 for newEArray (0.23 sec)

  1. 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)
  2. 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)
  3. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Mar 07 18:34:03 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  4. src/go/types/array.go

    package types
    
    // An Array represents an array type.
    type Array struct {
    	len  int64
    	elem Type
    }
    
    // NewArray returns a new array type for the given element type and length.
    // A negative length indicates an unknown length.
    func NewArray(elem Type, len int64) *Array { return &Array{len: len, elem: elem} }
    
    // Len returns the length of array a.
    // A negative result indicates an unknown length.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 927 bytes
    - Viewed (0)
  5. 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)
  6. platforms/core-configuration/kotlin-dsl/src/testFixtures/kotlin/org/gradle/kotlin/dsl/fixtures/bytecode/AsmExtensions.kt

    }
    
    
    internal
    fun MethodVisitor.visitTypeInsn(opcode: Int, type: InternalName) {
        visitTypeInsn(opcode, type.value)
    }
    
    
    internal
    fun MethodVisitor.NEWARRAY(primitiveType: Int) {
        visitIntInsn(Opcodes.NEWARRAY, primitiveType)
    }
    
    
    internal
    fun MethodVisitor.LDC(type: InternalName) {
        visitLdcInsn(Type.getType("L${type.value};"))
    }
    
    
    internal
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/bytecode/AsmExtensions.kt

    }
    
    
    internal
    fun MethodVisitor.visitTypeInsn(opcode: Int, type: InternalName) {
        visitTypeInsn(opcode, type.value)
    }
    
    
    internal
    fun MethodVisitor.NEWARRAY(primitiveType: Int) {
        visitIntInsn(Opcodes.NEWARRAY, primitiveType)
    }
    
    
    internal
    fun MethodVisitor.LDC(type: InternalName) {
        visitLdcInsn(Type.getType("L${type.value};"))
    }
    
    
    internal
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  10. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classpath/DefaultClassPath.java

                    if (array.length == inserted) {
                        return array;
                    }
                    Object[] newArray = new Object[inserted];
                    System.arraycopy(array, 0, newArray, 0, inserted);
                    return newArray;
                }
            }
    
            @SuppressWarnings("unchecked")
            public static <T> ImmutableUniqueList<T> empty() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 9.1K bytes
    - Viewed (0)
Back to top