Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for INT (0.21 sec)

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

         * @throws Exception
         */
        @Test
        public void testPerformance() throws Exception {
            int num = 100000;
            Map<String, Object> hmap = new HashMap<String, Object>();
            Map<String, Object> amap = new ArrayMap<String, Object>();
    
            long start = System.currentTimeMillis();
            for (int i = 0; i < num; i++) {
                hmap.put(String.valueOf(i), null);
            }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java

                return new Integer(3);
            }
    
            /**
             * @param arg1
             * @param arg2
             * @return int
             */
            public int add2(final int arg1, final int arg2) {
                return arg1 + arg2;
            }
    
            /**
             * @param arg
             * @return Integer
             */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 13.9K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java

                    public char charAt(final int index) {
                        return name.charAt(index);
                    }
    
                    @Override
                    public int length() {
                        return name.length();
                    }
    
                    @Override
                    public CharSequence subSequence(final int start, final int end) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 34.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java

            }
            return pd;
        }
    
        @Override
        public PropertyDesc getPropertyDesc(final int index) {
            assertArgumentArrayIndex("index", index, getPropertyDescSize());
    
            return propertyDescCache.getAt(index);
        }
    
        @Override
        public int getPropertyDescSize() {
            return propertyDescCache.size();
        }
    
        @Override
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/convert/DateConversionUtil.java

     *
     * @author higa
     * @see TimeConversionUtil
     * @see TimestampConversionUtil
     */
    public abstract class DateConversionUtil {
    
        /** {@link DateFormat}が持つスタイルの配列 */
        protected static final int[] STYLES = new int[] { SHORT, MEDIUM, LONG, FULL };
    
        /**
         * デフォルロケールで{@link DateFormat#SHORT}スタイルのパターン文字列を返します。
         *
         * @return {@link DateFormat#SHORT}スタイルのパターン文字列
         */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 21.5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/collection/ArrayMap.java

            if (size != e.size) {
                return false;
            }
            for (int i = 0; i < size; i++) {
                if (!listTable[i].equals(e.listTable[i])) {
                    return false;
                }
            }
            return true;
        }
    
        @Override
        public int hashCode() {
            int h = 0;
            for (int i = 0; i < size; i++) {
                h += listTable[i].hashCode();
            }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 20.6K bytes
    - Viewed (1)
  7. src/main/java/org/codelibs/core/convert/TimeConversionUtil.java

     *
     * @author koichik
     * @see DateConversionUtil
     * @see TimestampConversionUtil
     */
    public abstract class TimeConversionUtil {
    
        /** {@link DateFormat}が持つスタイルの配列 */
        protected static final int[] STYLES = new int[] { SHORT, MEDIUM, LONG, FULL };
    
        /**
         * デフォルロケールで{@link DateFormat#SHORT}スタイルのパターン文字列を返します。
         *
         * @return {@link DateFormat#SHORT}スタイルのパターン文字列
         */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 21.2K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/collection/ArrayUtilTest.java

         */
        @Test
        public void testAddAll_int() throws Exception {
            final int[] array = new int[] { 111 };
            final int[] newArray = ArrayUtil.add(array, 222);
            assertThat(newArray.length, is(2));
            assertThat(newArray[0], is(111));
            assertThat(newArray[1], is(222));
    
            final int[] emptyArray = new int[0];
            assertThat(ArrayUtil.addAll((int[]) null, (int[]) null), is(nullValue()));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/collection/SLinkedList.java

         * @return エントリ
         */
        public Entry getEntry(final int index) {
            assertIndex(0 <= index && index < size, "Index: " + index + ", Size: " + size);
            Entry e = header;
            if (index < size / 2) {
                for (int i = 0; i <= index; i++) {
                    e = e.next;
                }
            } else {
                for (int i = size; i > index; i--) {
                    e = e.previous;
                }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 11K bytes
    - Viewed (1)
  10. src/main/java/org/codelibs/core/collection/ArrayUtil.java

        }
    
        /**
         * {@literal int}配列の末尾に{@literal int}の値を追加した配列を返します。
         *
         * @param array
         *            配列。{@literal null}であってはいけません
         * @param value
         *            値
         * @return 値が追加された結果の配列
         */
        public static int[] add(final int[] array, final int value) {
            assertArgumentNotNull("array", array);
    
            final int[] newArray = (int[]) Array.newInstance(int.class, array.length + 1);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 42.6K bytes
    - Viewed (0)
Back to top