Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 572 for While (0.17 sec)

  1. android/guava-tests/test/com/google/common/graph/GraphMutationTest.java

          assertThat(graph.edges()).isEmpty();
          AbstractGraphTest.validateGraph(graph);
    
          while (graph.nodes().size() < NUM_NODES) {
            graph.addNode(gen.nextInt(NODE_POOL_SIZE));
          }
          ArrayList<Integer> nodeList = new ArrayList<>(graph.nodes());
          while (graph.edges().size() < NUM_EDGES) {
            graph.putEdge(getRandomElement(nodeList, gen), getRandomElement(nodeList, gen));
          }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Joiner.java

            checkNotNull(appendable, "appendable");
            checkNotNull(parts, "parts");
            while (parts.hasNext()) {
              Object part = parts.next();
              if (part != null) {
                appendable.append(Joiner.this.toString(part));
                break;
              }
            }
            while (parts.hasNext()) {
              Object part = parts.next();
              if (part != null) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 15:16:19 UTC 2025
    - 21K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Sets.java

            return new AbstractIterator<E>() {
              @Override
              public @Nullable E computeNext() {
                while (itr1.hasNext()) {
                  E elem1 = itr1.next();
                  if (!set2.contains(elem1)) {
                    return elem1;
                  }
                }
                while (itr2.hasNext()) {
                  E elem2 = itr2.next();
                  if (!set1.contains(elem2)) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 81.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/CharSourceTester.java

      }
    
      public void testOpenStream() throws IOException {
        Reader reader = source.openStream();
    
        StringWriter writer = new StringWriter();
        char[] buf = new char[64];
        int read;
        while ((read = reader.read(buf)) != -1) {
          writer.write(buf, 0, read);
        }
        reader.close();
        writer.close();
    
        assertExpectedString(writer.toString());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  5. guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

        Interruptenator(Thread interruptee, AtomicBoolean shutdown) {
          super(
              new Runnable() {
                @Override
                public void run() {
                  while (!shutdown.get()) {
                    interruptee.interrupt();
                    Thread.yield();
                  }
                }
              });
          this.shutdown = shutdown;
          start();
        }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/CompactHashSet.java

                && Objects.equals(object, elements[entryIndex])) {
              return false;
            }
            next = CompactHashing.getNext(entry, mask);
            bucketLength++;
          } while (next != UNSET);
    
          if (bucketLength >= MAX_HASH_BUCKET_LENGTH) {
            return convertToHashFloodingResistantImplementation().add(object);
          }
    
          if (newSize > mask) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 23.9K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/SequentialExchangeFinder.kt

    internal class SequentialExchangeFinder(
      override val routePlanner: RoutePlanner,
    ) : ExchangeFinder {
      override fun find(): RealConnection {
        var firstException: IOException? = null
        while (true) {
          if (routePlanner.isCanceled()) throw IOException("Canceled")
    
          try {
            val plan = routePlanner.plan()
    
            if (!plan.isReady) {
              val tcpConnectResult = plan.connectTcp()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

          public void cancel(boolean mayInterruptIfRunning) {
            /*
             * Lock to ensure that a task cannot be rescheduled while a cancel is ongoing.
             *
             * In theory, cancel() could execute arbitrary listeners -- bad to do while holding a lock.
             * However, we don't expose currentFuture to users, so they can't attach listeners. And the
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 27.8K bytes
    - Viewed (0)
  9. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

          maxChunkSize: Int = Int.MAX_VALUE,
        ): Builder =
          apply {
            removeHeader("Content-Length")
            headers_.add("Transfer-encoding: chunked")
    
            val bytesOut = Buffer()
            while (!body.exhausted()) {
              val chunkSize = minOf(body.size, maxChunkSize.toLong())
              bytesOut.writeHexadecimalUnsignedLong(chunkSize)
              bytesOut.writeUtf8("\r\n")
              bytesOut.write(body, chunkSize)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/escape/UnicodeEscaper.java

       *     surrogate pairs
       */
      protected int nextEscapeIndex(CharSequence csq, int start, int end) {
        int index = start;
        while (index < end) {
          int cp = codePointAt(csq, index, end);
          if (cp < 0 || escape(cp) != null) {
            break;
          }
          index += Character.isSupplementaryCodePoint(cp) ? 2 : 1;
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 15:45:16 UTC 2025
    - 13.2K bytes
    - Viewed (0)
Back to top