Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for asIntArray (0.05 sec)

  1. src/test/java/org/codelibs/core/collection/ArrayUtilTest.java

     *
     */
    public class ArrayUtilTest {
    
        /**
         * @throws Exception
         */
        @Test
        public void testAsArray() throws Exception {
            assertArrayEquals(new int[] { 1, 2 }, ArrayUtil.asIntArray(1, 2));
            assertArrayEquals(new Object[] { "a", 2 }, ArrayUtil.asArray("a", 2));
            assertArrayEquals(new String[] { "a", "b" }, ArrayUtil.asArray("a", "b"));
    Registered: Fri Nov 01 20:58:10 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

            return elements;
        }
    
        /**
         * {@literal int}の配列を返します。
         *
         * @param elements
         *            配列の要素
         * @return 配列
         */
        public static int[] asIntArray(final int... elements) {
            return elements;
        }
    
        /**
         * {@literal long}の配列を返します。
         *
         * @param elements
         *            配列の要素
         * @return 配列
         */
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 42.6K bytes
    - Viewed (0)
Back to top