Search Options

Results per page
Sort
Preferred Languages
Advance

Results 731 - 740 of 838 for useEmpty (0.07 sec)

  1. guava/src/com/google/common/collect/CompactHashSet.java

          }
        } else {
          elements[dstIndex] = null;
          entries[dstIndex] = 0;
        }
      }
    
      int firstEntryIndex() {
        return isEmpty() ? -1 : 0;
      }
    
      int getSuccessor(int entryIndex) {
        return (entryIndex + 1 < size) ? entryIndex + 1 : -1;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

        val calls = connection.calls
        val index = calls.indexOfFirst { it.get() == this@RealCall }
        check(index != -1)
    
        calls.removeAt(index)
        this.connection = null
    
        if (calls.isEmpty()) {
          connection.idleAtNs = System.nanoTime()
          if (connectionPool.connectionBecameIdle(connection)) {
            return connection.socket()
          }
        }
    
        return null
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/QueuesTest.java

        List<Object> buf = newArrayList();
        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()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ForwardingMultiset.java

       * {@link ForwardingMultiset#clear}, {@link ForwardingMultiset#contains}, {@link
       * ForwardingMultiset#containsAll}, {@link ForwardingMultiset#count}, {@link
       * ForwardingMultiset#isEmpty}, the {@link Set#size} and {@link Set#iterator} methods of {@link
       * ForwardingMultiset#entrySet}, and {@link ForwardingMultiset#remove(Object, int)}. In many
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

        return keyOrNull(higherEntry(key));
      }
    
      @Override
      @CheckForNull
      public Entry<K, V> firstEntry() {
        return isEmpty() ? null : entrySet().asList().get(0);
      }
    
      @Override
      @CheckForNull
      public Entry<K, V> lastEntry() {
        return isEmpty() ? null : entrySet().asList().get(size() - 1);
      }
    
      /**
       * Guaranteed to throw an exception and leave the map unmodified.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java

                            break;
                        }
                        queryLogs.add(queryLog);
                        queryLog = queryLogReader.read();
                        if (queryLog == null && !queryLogs.isEmpty() || queryLogs.size() >= docPerReq) {
                            final SuggestIndexResponse res = indexFromQueryLog(queryLogs.toArray(new QueryLog[queryLogs.size()]));
                            errors.addAll(res.getErrors());
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

          }
        },
        ArrayTableImpl {
          @Override
          <R extends Comparable<R>, C extends Comparable<C>, V> Table<R, C, V> create(
              Table<R, C, V> contents) {
            if (contents.isEmpty()) {
              return ImmutableTable.of();
            } else {
              return ArrayTable.create(contents);
            }
          }
        },
        ImmutableTableImpl {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/Closer.java

       */
      @Override
      public void close() throws IOException {
        Throwable throwable = thrown;
    
        // close closeables in LIFO order
        while (!stack.isEmpty()) {
          Closeable closeable = stack.removeFirst();
          try {
            closeable.close();
          } catch (Throwable e) {
            if (throwable == null) {
              throwable = e;
            } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/GcFinalization.java

     * <pre>{@code
     * final WeakHashMap<Object, Object> map = new WeakHashMap<>();
     * map.put(new Object(), Boolean.TRUE);
     * GcFinalization.awaitDone(new FinalizationPredicate() {
     *   public boolean isDone() {
     *     return map.isEmpty();
     *   }
     * });
     * }</pre>
     *
     * <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:
     *
     * <pre>{@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/TreeMultisetTest.java

        assertThat(subset).containsExactly("b", "c", "d", "e").inOrder();
    
        subset.clear();
        assertThat(elementSet).containsExactly("a", "f").inOrder();
        assertThat(subset).isEmpty();
        assertEquals(3, ms.size());
      }
    
      public void testCustomComparator() throws Exception {
        Comparator<String> comparator =
            new Comparator<String>() {
              @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 12.9K bytes
    - Viewed (0)
Back to top