Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 252 for finally (0.14 sec)

  1. src/main/java/org/codelibs/core/convert/NumberConversionUtil.java

         */
        public static Object convertPrimitiveWrapper(final Class<?> type, final Object o) {
            if (type == int.class) {
                final Integer i = IntegerConversionUtil.toInteger(o);
                if (i != null) {
                    return i;
                }
                return Integer.valueOf(0);
            } else if (type == double.class) {
                final Double d = DoubleConversionUtil.toDouble(o);
                if (d != null) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/exception/EmptyArgumentException.java

        private static final long serialVersionUID = 4625805280526951642L;
    
        /**
         * {@link EmptyArgumentException}を作成します。
         *
         * @param argName
         *            引数の名前
         * @param messageCode
         *            メッセージコード
         * @param args
         *            引数の配列
         */
        public EmptyArgumentException(final String argName, final String messageCode, final Object[] args) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/sql/PreparedStatementUtil.java

         * @throws SQLRuntimeException
         *             {@link SQLException}が発生した場合
         */
        public static ResultSet executeQuery(final PreparedStatement ps) throws SQLRuntimeException {
            assertArgumentNotNull("ps", ps);
    
            try {
                return ps.executeQuery();
            } catch (final SQLException ex) {
                throw new SQLRuntimeException(ex);
            }
        }
    
        /**
         * 更新を実行します。
         *
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/collection/Maps.java

         */
        public static <KEY, VALUE> Maps<KEY, VALUE> weakHashMap(final KEY key, final VALUE value) {
            return new Maps<>(new WeakHashMap<KEY, VALUE>()).$(key, value);
        }
    
        /**
         * インスタンスを構築します。
         *
         * @param map
         *            キーと値を追加する対象の<code>Map</code>
         */
        protected Maps(final Map<K, V> map) {
            this.map = map;
        }
    
        /**
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/zip/ZipFileUtilTest.java

        /**
         * @throws Exception
         */
        public void testToJarFilePath() throws Exception {
            final URL url = new URL(null, "zip:/Program Files/foo.zip!/", new URLStreamHandler() {
                @Override
                protected void parseURL(final URL u, final String spec, final int start, final int limit) {
                    setURL(u, "zip", null, 0, null, null, spec.substring(4), null, null);
                }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/convert/DoubleConversionUtil.java

         */
        public static Double toDouble(final Object o) {
            return toDouble(o, null);
        }
    
        /**
         * {@link Double}に変換します。
         *
         * @param o
         *            変換元のオブジェクト
         * @param pattern
         *            パターン文字列
         * @return 変換された{@link Double}
         */
        public static Double toDouble(final Object o, final String pattern) {
            if (o == null) {
                return null;
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/beans/impl/ConstructorDescTest.java

        /**
         * @throws Exception
         */
        @SuppressWarnings("rawtypes")
        @Test
        public void testDefaultConstructor() throws Exception {
            final BeanDesc beanDesc = new BeanDescImpl(MyBean.class);
            final ConstructorDesc ctor = beanDesc.getConstructorDesc();
            assertThat(ctor, is(notNullValue()));
            assertThat(ctor.getBeanDesc(), is(sameInstance(beanDesc)));
    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)
  8. src/test/java/org/codelibs/core/net/MimeTypeUtilTest.java

            final String path = ClassUtil.getPackageName(this.getClass()).replaceAll("\\.", "/") + "/aaa.html";
            final String contentType = MimeTypeUtil.guessContentType(path);
            assertEquals("text/html", contentType);
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGetFromStream_gif() throws Exception {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/zip/ZipInputStreamUtil.java

        private static final Logger logger = Logger.getLogger(ZipInputStreamUtil.class);
    
        /**
         * {@link ZipInputStream#getNextEntry()}の例外処理をラップするメソッドです。
         *
         * @param zis
         *            {@link ZipInputStream}。{@literal null}であってはいけません
         * @return {@link ZipEntry}
         * @see ZipInputStream#getNextEntry()
         */
        public static ZipEntry getNextEntry(final ZipInputStream zis) {
    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)
  10. src/main/java/org/codelibs/core/xml/DocumentBuilderFactoryUtil.java

        }
    
        public static DocumentBuilderFactory newInstance(final boolean external) {
            final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
            if (!external) {
                try {
                    factory.setAttribute(XMLConstants.ACCESS_EXTERNAL_DTD, "");
                    factory.setAttribute(XMLConstants.ACCESS_EXTERNAL_SCHEMA, "");
                } catch (final Exception e) {
                    if (logger.isDebugEnabled()) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.6K bytes
    - Viewed (0)
Back to top