Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 75 of 75 for assertArgumentNotNull (0.19 seconds)

  1. src/main/java/org/codelibs/core/lang/GenericsUtil.java

         * @return <code>true</code> if the raw type of <code>type</code> can be assigned to <code>clazz</code>
         */
        public static boolean isTypeOf(final Type type, final Class<?> clazz) {
            assertArgumentNotNull("type", type);
            assertArgumentNotNull("clazz", clazz);
    
            if (type instanceof Class) {
                return clazz.isAssignableFrom((Class<?>) type);
            }
            if (type instanceof ParameterizedType) {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 23.4K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/core/misc/AssertionUtil.java

         * @param argValue
         *            The value of the argument.
         * @throws NullArgumentException
         *             If the argument is <code>null</code>.
         */
        public static void assertArgumentNotNull(final String argName, final Object argValue) {
            if (argValue == null) {
                throw new NullArgumentException(argName);
            }
        }
    
        /**
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 12.5K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/core/beans/util/CopyOptions.java

    import static org.codelibs.core.lang.ClassIterator.iterable;
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotEmpty;
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull;
    
    import java.sql.Time;
    import java.util.List;
    import java.util.Map;
    
    import org.codelibs.core.beans.Converter;
    import org.codelibs.core.beans.converter.DateConverter;
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat Jul 05 00:11:05 GMT 2025
    - 17.5K bytes
    - Click Count (0)
  4. CLAUDE.md

    ### Class Structure
    
    - **Utility classes**: `abstract` class + `protected` constructor
    - **Constants classes**: Same pattern
    
    ### Argument Validation
    
    Use `AssertionUtil` at method entry:
    - `AssertionUtil.assertArgumentNotNull("argName", value)`
    - `AssertionUtil.assertArgumentNotEmpty("argName", value)`
    
    ### Exception Handling
    
    - Wrap checked exceptions in runtime exceptions from `org.codelibs.core.exception`
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Mar 12 03:38:56 GMT 2026
    - 3K bytes
    - Click Count (0)
  5. README.md

    ### Core Design Principles
    CoreLib follows a **utility-class pattern** where most functionality is exposed through static methods:
    
    - **Assertion-based validation** - All methods validate inputs using `AssertionUtil.assertArgumentNotNull()` and `AssertionUtil.assertArgumentNotEmpty()`
    - **Exception wrapping** - Checked exceptions are consistently wrapped in runtime exceptions (e.g., `ClassNotFoundException` → `ClassNotFoundRuntimeException`)
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sun Aug 31 02:56:02 GMT 2025
    - 12.7K bytes
    - Click Count (0)
Back to Top