Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 33 for nullValue (0.06 sec)

  1. src/test/java/org/codelibs/core/beans/impl/ConstructorDescTest.java

     */
    package org.codelibs.core.beans.impl;
    
    import static org.hamcrest.CoreMatchers.is;
    import static org.hamcrest.CoreMatchers.notNullValue;
    import static org.hamcrest.CoreMatchers.nullValue;
    import static org.hamcrest.CoreMatchers.sameInstance;
    import static org.junit.Assert.assertThat;
    
    import java.lang.reflect.Constructor;
    
    import org.codelibs.core.beans.BeanDesc;
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/util/OptionalUtilTest.java

            assertEquals("present", presentOptional.get());
            assertEquals("present", presentOptional.orElse("default"));
    
            // Test with null value
            String nullValue = null;
            OptionalEntity<String> emptyOptional = OptionalUtil.ofNullable(nullValue);
    
            assertFalse(emptyOptional.isPresent());
            assertEquals("default", emptyOptional.orElse("default"));
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 13K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/lang/ObjectUtilTest.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.lang;
    
    import static org.hamcrest.CoreMatchers.is;
    import static org.hamcrest.CoreMatchers.nullValue;
    import static org.junit.Assert.assertSame;
    import static org.junit.Assert.assertThat;
    
    import org.junit.Test;
    
    /**
     * @author wyukawa
     *
     */
    public class ObjectUtilTest {
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/lang/FieldUtilTest.java

     */
    package org.codelibs.core.lang;
    
    import static org.codelibs.core.TestUtil.sameClass;
    import static org.hamcrest.CoreMatchers.is;
    import static org.hamcrest.CoreMatchers.nullValue;
    import static org.junit.Assert.assertEquals;
    import static org.junit.Assert.assertThat;
    
    import java.lang.reflect.Field;
    import java.util.Collection;
    import java.util.Map;
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

            () -> ImmutableBiMap.ofEntries((Entry<Integer, Integer>) nullKey));
        Entry<Integer, @Nullable Integer> nullValue =
            ImmutableBiMapTest.<@Nullable Integer>entry(23, null);
        assertThrows(
            NullPointerException.class,
            () -> ImmutableBiMap.ofEntries((Entry<Integer, Integer>) nullValue));
      }
    
      private static <T extends @Nullable Object> Entry<T, T> entry(T key, T value) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  6. README.md

    ```
    
    ### Type Conversion
    ```java
    import org.codelibs.core.convert.*;
    
    // Safe type conversions with null handling
    Integer value = IntegerConversionUtil.toInteger("123");        // Returns 123
    Integer nullValue = IntegerConversionUtil.toInteger(null);     // Returns null
    Boolean flag = BooleanConversionUtil.toBoolean("true");        // Returns true
    Date date = DateConversionUtil.toDate("2023-12-25", "yyyy-MM-dd");
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sun Aug 31 02:56:02 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        // null key
        InternalEntry<Object, Object, ?> nullEntry = segment.newEntryForTesting(null, hash, entry);
        Object nullValue = new Object();
        WeakValueReference<Object, Object, ?> nullValueRef =
            segment.newWeakValueReferenceForTesting(nullEntry, nullValue);
        segment.setWeakValueReferenceForTesting(nullEntry, nullValueRef);
        segment.setTableEntryForTesting(index, nullEntry);
        // skip the null key
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        // null key
        InternalEntry<Object, Object, ?> nullEntry = segment.newEntryForTesting(null, hash, entry);
        Object nullValue = new Object();
        WeakValueReference<Object, Object, ?> nullValueRef =
            segment.newWeakValueReferenceForTesting(nullEntry, nullValue);
        segment.setWeakValueReferenceForTesting(nullEntry, nullValueRef);
        segment.setTableEntryForTesting(index, nullEntry);
        // skip the null key
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/util/WebApiUtilTest.java

            // setObject should handle various inputs
            try {
                WebApiUtil.setObject("validKey", "validValue");
                WebApiUtil.setObject("", "emptyKey");
                WebApiUtil.setObject("nullValue", null);
                WebApiUtil.setObject(null, "nullKey");
                WebApiUtil.setObject(null, null);
            } catch (Exception e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertNull(segment.get(new Object(), hash));
    
        // null key
        DummyEntry<Object, Object> nullEntry = DummyEntry.create(null, hash, entry);
        Object nullValue = new Object();
        ValueReference<Object, Object> nullValueRef = map.newValueReference(nullEntry, nullValue, 1);
        nullEntry.setValueReference(nullValueRef);
        table.set(index, nullEntry);
        // skip the null key
        assertSame(value, segment.get(key, hash));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 110.5K bytes
    - Viewed (0)
Back to top