Search Options

Results per page
Sort
Preferred Languages
Advance

Results 911 - 920 of 3,374 for Object (0.03 sec)

  1. android/guava-tests/test/com/google/common/base/SuppliersTest.java

        // it still should only have executed twice due to memoization
        assertEquals(2, countingSupplier.calls);
      }
    
      public void testOfInstanceSuppliesSameInstance() {
        Object toBeSupplied = new Object();
        Supplier<Object> objectSupplier = Suppliers.ofInstance(toBeSupplied);
        assertSame(toBeSupplied, objectSupplier.get());
        assertSame(toBeSupplied, objectSupplier.get()); // idempotent
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/util/DocumentUtil.java

         */
        @SuppressWarnings("unchecked")
        public static <T> T getValue(final Map<String, Object> doc, final String key, final Class<T> clazz) {
            if (doc == null || key == null) {
                return null;
            }
    
            final Object value = doc.get(key);
            if (value == null) {
                return null;
            }
    
            if (value instanceof List) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/spnego/NegTokenInitTest.java

                return Stream.of(Arguments.of((Object) null), Arguments.of((Object) new ASN1ObjectIdentifier[] {}),
                        Arguments.of((Object) new ASN1ObjectIdentifier[] { OID_KRB }),
                        Arguments.of((Object) new ASN1ObjectIdentifier[] { OID_NTLM }),
                        Arguments.of((Object) new ASN1ObjectIdentifier[] { OID_KRB_LEGACY }),
                        Arguments.of((Object) new ASN1ObjectIdentifier[] { OID_KRB, OID_NTLM }),
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  4. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

        assertThat(adapter.toDer(null)).isEqualTo(bytes)
        assertThat(adapter.fromDer(bytes)).isNull()
      }
    
      /** Make the claimed length of a nested object larger than the enclosing object. */
      @Test fun `large object inside small object`() {
        val bytes = "301b300d06092a864886f70d010101050003847fffffff000504030201".decodeHex()
        assertFailsWith<ProtocolException> {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 31.7K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/util/OptionalUtilTest.java

            assertFalse(result.isPresent());
        }
    
        public void test_ofNullable_withMap() {
            Map<String, Object> testValue = new HashMap<>();
            testValue.put("key1", "value1");
            testValue.put("key2", 42);
    
            OptionalEntity<Map<String, Object>> result = OptionalUtil.ofNullable(testValue);
    
            assertNotNull(result);
            assertTrue(result.isPresent());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 13K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/base/FessBaseAction.java

         * This is a utility method that wraps BeanUtil.copyBeanToBean with custom options.
         *
         * @param src the source bean object
         * @param dest the destination bean object
         * @param option a consumer function to configure copy options
         */
        protected static void copyBeanToBean(final Object src, final Object dest, final Consumer<CopyOptions> option) {
            BeanUtil.copyBeanToBean(src, dest, option);
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 15K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/exception/ConverterRuntimeException.java

         */
        private final Object value;
    
        /**
         * Constructs an instance.
         *
         * @param propertyName
         *            Property name
         * @param value
         *            Value
         * @param cause
         *            Cause
         */
        public ConverterRuntimeException(final String propertyName, final Object value, final Throwable cause) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat Jul 05 00:11:05 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

       * o.equals(e)}.
       *
       * @param o object to be checked for containment in this queue
       * @return {@code true} if this queue contains the specified element
       */
      @CanIgnoreReturnValue // pushed down from class to method
      @Override
      public boolean contains(@Nullable Object o) {
        Monitor monitor = this.monitor;
        monitor.enter();
        try {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableListMultimap.java

        if (keyCount < 0) {
          throw new InvalidObjectException("Invalid key count " + keyCount);
        }
        ImmutableMap.Builder<Object, ImmutableList<Object>> builder = ImmutableMap.builder();
        int tmpSize = 0;
    
        for (int i = 0; i < keyCount; i++) {
          Object key = requireNonNull(stream.readObject());
          int valueCount = stream.readInt();
          if (valueCount <= 0) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/pac/ASN1UtilTest.java

    import org.junit.jupiter.api.Test;
    
    /**
     * Tests for the {@link ASN1Util} class.
     */
    class ASN1UtilTest {
    
        // --- as(Class, Object) ---
    
        @Test
        void testAs_Object_Success() throws PACDecodingException {
            // Test successful casting
            String expected = "test string";
            Object obj = expected;
            String result = ASN1Util.as(String.class, obj);
            assertSame(expected, result);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
Back to top