Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 861 - 870 of 996 for useEmpty (0.05 seconds)

  1. src/test/java/org/codelibs/fess/suggest/settings/SuggestSettingsBuilderTest.java

            assertEquals("fess_suggest", testBuilder.settingsIndexName);
            assertNotNull(testBuilder.timeoutSettings);
            assertNotNull(testBuilder.initialSettings);
            assertTrue(testBuilder.initialSettings.isEmpty());
        }
    
        @Test
        public void testSetSettingsIndexName() {
            // Test setting index name with lowercase conversion
            SuggestSettingsBuilder result = builder.setSettingsIndexName("TEST_INDEX");
    Created: Sat Dec 20 13:04:59 GMT 2025
    - Last Modified: Mon Sep 01 13:33:03 GMT 2025
    - 14.4K bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt

    /** Returns an immutable copy of this. */
    @Suppress("UNCHECKED_CAST")
    internal fun <T> List<T>.toImmutableList(): List<T> =
      when {
        this.isEmpty() -> emptyList()
        this.size == 1 -> Collections.singletonList(this[0])
        // Collection.toArray returns Object[] (covariant).
        // It is faster than creating real T[] via reflection (Arrays.copyOf).
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu Jul 31 04:18:40 GMT 2025
    - 10.2K bytes
    - Click Count (1)
  3. guava-tests/test/com/google/common/collect/QueuesTest.java

        List<Object> buf = new ArrayList<>();
        int elements = Queues.drain(q, buf, -1, MAX_VALUE, NANOSECONDS);
        assertEquals(0, elements);
        assertThat(buf).isEmpty();
    
        // Free the producer thread, and give subsequent tests a clean slate.
        q.take();
      }
    
      public void testDrain_throws() throws Exception {
        for (BlockingQueue<Object> q : blockingQueues()) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Nov 04 17:24:58 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  4. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

     * {@snippet :
     * final WeakHashMap<Object, Object> map = new WeakHashMap<>();
     * map.put(new Object(), Boolean.TRUE);
     * GcFinalization.awaitDone(new FinalizationPredicate() {
     *   public boolean isDone() {
     *     return map.isEmpty();
     *   }
     * });
     * }
     *
     * <p>Even if your non-test code does not use finalization, you can use this class to test for
     * leaks, by ensuring that objects are no longer strongly referenced:
     *
     * {@snippet :
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/CommonsCliMavenOptions.java

            }
            return Optional.empty();
        }
    
        @Override
        public Optional<List<String>> goals() {
            if (!commandLine.getArgList().isEmpty()) {
                return Optional.of(commandLine.getArgList());
            }
            return Optional.empty();
        }
    
        @Override
        protected CommonsCliMavenOptions copy(
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Sep 25 17:39:57 GMT 2025
    - 14.8K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java

        void testNotifyResponseInterface() {
            // Then
            assertTrue(response instanceof NotifyResponse);
            assertNotNull(response.getNotifyInformation());
            assertTrue(response.getNotifyInformation().isEmpty());
        }
    
        @Test
        @DisplayName("Should handle maximum buffer size")
        void testMaximumBufferSize() throws Exception {
            // Given - large buffer with many notifications
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb/SID.java

            return toByteArray(this);
        }
    
        /**
         * Checks whether the SID is empty (no sub-authorities).
         *
         * @return whether the SID is empty (no sub-authorities)
         */
        public boolean isEmpty() {
            return this.sub_authority_count == 0;
        }
    
        /**
         * Checks whether the SID is blank (all sub-authorities zero).
         *
         * @return whether the SID is blank (all sub-authorities zero)
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 16K bytes
    - Click Count (0)
  8. cmd/bucket-handlers.go

    			r, ok := dnsBuckets[bucket]
    			if !ok {
    				bucketsToBeUpdated.Add(bucket)
    				continue
    			}
    			if !globalDomainIPs.Intersection(set.CreateStringSet(getHostsSlice(r)...)).IsEmpty() {
    				if globalDomainIPs.Difference(set.CreateStringSet(getHostsSlice(r)...)).IsEmpty() && !domainMissing {
    					// No difference in terms of domainIPs and nothing
    					// has changed so we don't change anything on the etcd.
    					//
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 63.9K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/CompactHashMap.java

          }
        } else {
          keys[dstIndex] = null;
          values[dstIndex] = null;
          entries[dstIndex] = 0;
        }
      }
    
      int firstEntryIndex() {
        return isEmpty() ? -1 : 0;
      }
    
      int getSuccessor(int entryIndex) {
        return (entryIndex + 1 < size) ? entryIndex + 1 : -1;
      }
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 39.6K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/FluentIterable.java

        // TODO(kevinb): Support a concurrently modified collection?
        Iterable<E> iterable = getDelegate();
        if (iterable instanceof List) {
          List<E> list = (List<E>) iterable;
          if (list.isEmpty()) {
            return Optional.absent();
          }
          return Optional.of(list.get(list.size() - 1));
        }
        Iterator<E> iterator = iterable.iterator();
        if (!iterator.hasNext()) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 34.7K bytes
    - Click Count (0)
Back to Top