Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 63 for init (0.12 sec)

  1. src/test/java/org/codelibs/core/misc/DisposableUtilTest.java

    import static org.junit.Assert.assertThat;
    
    import org.junit.Before;
    import org.junit.Test;
    
    /**
     * @author koichik
     *
     */
    public class DisposableUtilTest {
    
        private int count;
    
        private String names = "";
    
        /**
         * @throws Exception
         */
        @Before
        public void setUp() throws Exception {
            DisposableUtil.dispose();
        }
    
        /**
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/lang/ClassUtilTest.java

        /**
         *
         */
        @Test
        public void testGetSimpleClassName() {
            assertThat(ClassUtil.getSimpleClassName(int.class), is("int"));
            assertThat(ClassUtil.getSimpleClassName(String.class), is("java.lang.String"));
            assertThat(ClassUtil.getSimpleClassName(int[].class), is("int[]"));
            assertThat(ClassUtil.getSimpleClassName(String[][].class), is("java.lang.String[][]"));
        }
    
        /**
         *
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/convert/IntegerConversionUtil.java

        }
    
        /**
         * {@literal int}に変換します。
         *
         * @param o
         *            変換元のオブジェクト
         * @return 変換された{@literal int}
         */
        public static int toPrimitiveInt(final Object o) {
            return toPrimitiveInt(o, null);
        }
    
        /**
         * {@literal int}に変換します。
         *
         * @param o
         *            変換元のオブジェクト
         * @param pattern
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/lang/ObjectUtilTest.java

        }
    
        class Hoge {
            private int i;
    
            private String s;
    
            /**
             * @param i
             *            the i to set
             */
            public void setI(final int i) {
                this.i = i;
            }
    
            /**
             * @return the i
             */
            public int getI() {
                return i;
            }
    
            /**
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/nio/ChannelUtil.java

         *
         * @param channel
         *            ファイルチャネル。{@literal null}であってはいけません
         * @param buffer
         *            バイトバッファ。{@literal null}であってはいけません
         * @return 読み込んだバイト数
         */
        public static int read(final FileChannel channel, final ByteBuffer buffer) {
            assertArgumentNotNull("channel", channel);
            assertArgumentNotNull("buffer", buffer);
    
            try {
                return channel.read(buffer);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/timer/TimeoutManager.java

         * 管理している {@link TimeoutTask}の数を返します。
         *
         * @return 管理している {@link TimeoutTask}の数
         */
        public synchronized int getTimeoutTaskCount() {
            return timeoutTaskList.size();
        }
    
        @Override
        public void run() {
            int nThreads = Runtime.getRuntime().availableProcessors() / 2;
            final String value = System.getProperty("corelib.timeout_task.num_of_threads");
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/io/InputStreamUtil.java

    import org.codelibs.core.exception.IORuntimeException;
    
    /**
     * {@link InputStream}用のユーティリティクラスです。
     *
     * @author higa
     */
    public abstract class InputStreamUtil {
    
        /** デフォルトのバッファサイズ */
        private static final int BUF_SIZE = 4096;
    
        /**
         * {@link FileInputStream}を作成します。
         *
         * @param file
         *            ファイル。{@literal null}であってはいけません
         * @return ファイルから入力する{@link FileInputStream}
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/collection/MultiIterator.java

     *            要素の型
     */
    public class MultiIterator<E> implements Iterator<E> {
    
        /** {@link Iterator}の配列 */
        protected final Iterator<E>[] iterators;
    
        /** 現在反復中の{@link Iterator}のインデックス */
        protected int index;
    
        /**
         * for each構文で使用するために{@link MultiIterator}をラップした{@link Iterable}を返します。
         *
         * @param <E>
         *            要素の型
         * @param iterables
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/collection/CaseInsensitiveMap.java

         */
        public CaseInsensitiveMap() {
        }
    
        /**
         * {@link CaseInsensitiveMap}を作成します。
         *
         * @param capacity
         *            初期容量
         */
        public CaseInsensitiveMap(final int capacity) {
            super(capacity);
        }
    
        /**
         * キーが含まれているかどうかを返します。
         *
         * @param key
         *            キー
         * @return キーが含まれているかどうか
         */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/text/DecimalFormatUtil.java

            final char decimalSep = symbols.getDecimalSeparator();
            final char groupingSep = symbols.getGroupingSeparator();
            final StringBuilder buf = new StringBuilder(20);
            for (int i = 0; i < s.length(); ++i) {
                char c = s.charAt(i);
                if (c == groupingSep) {
                    continue;
                } else if (c == decimalSep) {
                    c = '.';
                }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.4K bytes
    - Viewed (0)
Back to top