Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for assertArgumentNotNull (0.32 sec)

  1. src/main/java/org/codelibs/core/sql/PreparedStatementUtil.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.sql;
    
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull;
    
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    
    import org.codelibs.core.exception.SQLRuntimeException;
    
    /**
     * {@link PreparedStatement}用のユーティリティクラスです。
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/sql/StatementUtil.java

     */
    package org.codelibs.core.sql;
    
    import static org.codelibs.core.log.Logger.format;
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotEmpty;
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull;
    
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    
    import org.codelibs.core.exception.SQLRuntimeException;
    import org.codelibs.core.log.Logger;
    
    /**
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/xml/SAXParserUtil.java

         */
        public static void parse(final SAXParser parser, final InputSource inputSource, final DefaultHandler handler) {
            assertArgumentNotNull("parser", parser);
            assertArgumentNotNull("inputSource", inputSource);
            assertArgumentNotNull("handler", handler);
    
            try {
                parser.parse(inputSource, handler);
            } catch (final SAXException e) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/misc/DisposableUtil.java

            assertArgumentNotNull("disposable", disposable);
            disposables.addFirst(disposable);
        }
    
        /**
         * 破棄可能なリソースを登録解除します。
         *
         * @param disposable
         *            破棄可能なリソース。{@literal null}であってはいけません
         */
        public static synchronized void remove(final Disposable disposable) {
            assertArgumentNotNull("disposable", disposable);
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/collection/MultiIterator.java

            assertArgumentNotNull("iterators", iterators);
    
            return () -> new MultiIterator<>(iterators);
        }
    
        /**
         * インスタンスを構築します。
         *
         * @param iterators
         *            {@link Iterator}の並び。{@literal null}であってはいけません
         */
        public MultiIterator(final Iterator<E>... iterators) {
            assertArgumentNotNull("iterators", iterators);
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/io/ResourceBundleUtil.java

         */
        public static final ResourceBundle getBundle(final String name, final Locale locale, final ClassLoader classLoader) {
            assertArgumentNotNull("name", name);
            assertArgumentNotNull("classLoader", classLoader);
    
            try {
                return ResourceBundle.getBundle(name, getLocale(locale), classLoader);
            } catch (final MissingResourceException ignore) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/xml/SchemaUtil.java

            assertArgumentNotNull("schema", schema);
            return newSchema(SchemaFactoryUtil.newRelaxNgSchemaFactory(), schema);
        }
    
        /**
         * URLからRELAX NGのための{@link Schema}を生成します。
         *
         * @param schema
         *            RELAX NGのURL。{@literal null}であってはいけません
         * @return {@link Schema}
         */
        public static Schema newRelaxNgSchema(final URL schema) {
            assertArgumentNotNull("schema", schema);
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/misc/AssertionUtilTest.java

        /**
         * Test method for
         * {@link org.codelibs.core.misc.AssertionUtil#assertArgumentNotNull(java.lang.String, java.lang.Object)}
         * .
         */
        @Test
        public void testAssertArgumentNotNull() {
            exception.expect(NullArgumentException.class);
            exception.expectMessage(is("[ECL0008]argument[hoge] is null."));
            assertArgumentNotNull("hoge", null);
        }
    
        /**
         * Test method for
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/io/PropertiesUtil.java

         * @param in
         *            入力ストリーム。{@literal null}であってはいけません
         */
        public static void load(final Properties props, final InputStream in) {
            assertArgumentNotNull("props", props);
            assertArgumentNotNull("in", in);
    
            try {
                props.load(in);
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        /**
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/lang/FieldUtil.java

            assertArgumentNotNull("field", field);
    
            return Modifier.isFinal(field.getModifiers());
        }
    
        /**
         * パラメタ化されたコレクション型のフィールドの要素型を返します。
         *
         * @param field
         *            パラメタ化されたコレクション型のフィールド。{@literal null}であってはいけません
         * @return コレクションの要素型
         */
        public static Class<?> getElementTypeOfCollection(final Field field) {
            assertArgumentNotNull("field", field);
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11.3K bytes
    - Viewed (0)
Back to top