Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 32 for recycle (0.05 seconds)

  1. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterator<String> cycle = Iterators.cycle(iterable);
        assertTrue(cycle.hasNext());
        assertThat(cycle.next()).isEqualTo("a");
        cycle.remove();
        assertEquals(emptyList(), iterable);
        assertFalse(cycle.hasNext());
      }
    
      public void testCycleOfTwo() {
        Iterator<String> cycle = Iterators.cycle("a", "b");
        for (int i = 0; i < 3; i++) {
          assertTrue(cycle.hasNext());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 57.3K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterator<String> cycle = Iterators.cycle(iterable);
        assertTrue(cycle.hasNext());
        assertThat(cycle.next()).isEqualTo("a");
        cycle.remove();
        assertEquals(emptyList(), iterable);
        assertFalse(cycle.hasNext());
      }
    
      public void testCycleOfTwo() {
        Iterator<String> cycle = Iterators.cycle("a", "b");
        for (int i = 0; i < 3; i++) {
          assertTrue(cycle.hasNext());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 57.3K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

     *       verified or created.
     *   <li>If a new edge needs to be created, the outgoing edges of the acquired locks are traversed
     *       to check for a cycle that reaches the lock to be acquired. If no cycle is detected, a new
     *       "safe" edge is created.
     *   <li>If a cycle is detected, an "unsafe" (cyclic) edge is created to represent a potential
     *       deadlock situation, and the appropriate Policy is executed.
     * </ul>
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 36K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/collect/FluentIterableTest.java

        // always point to "a".
        assertThat(cycle.iterator().next()).isEqualTo("a");
      }
    
      public void testCycle_emptyIterable() {
        FluentIterable<Integer> cycle = FluentIterable.<Integer>of().cycle();
        assertFalse(cycle.iterator().hasNext());
      }
    
      public void testCycle_removingAllElementsStopsCycle() {
        FluentIterable<Integer> cycle = fluent(1, 2).cycle();
        Iterator<Integer> iterator = cycle.iterator();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 31.2K bytes
    - Click Count (0)
  5. docs/fr/docs/advanced/events.md

    Y compris comment gérer l'état de cycle de vie qui peut être utilisé dans d'autres parties de votre code.
    
    ///
    
    ## Sous-applications { #sub-applications }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 9.1K bytes
    - Click Count (0)
  6. src/cmd/asm/internal/asm/testdata/riscv64.s

    	SD	X5, 4(X6)				// 23325300
    
    	// 7.1: CSR Instructions
    	CSRRC	X0, CYCLE, X5				// f33200c0
    	CSRRC	X0, CYCLE, X0				// 733000c0
    	CSRRC	X10, CYCLE, X5				// f33205c0
    	CSRRC	$2, TIME, X5				// f37211c0
    	CSRRCI	$2, TIME, X5				// f37211c0
    	CSRRS	X0, CYCLE, X5				// f32200c0
    	CSRRS	X0, CYCLE, X0				// 732000c0
    	CSRRS	X10, CYCLE, X5				// f32205c0
    	CSRRS	$2, TIME, X5				// f36211c0
    	CSRRS	X0, VLENB, X5				// f32220c2
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Sat Apr 04 05:25:40 GMT 2026
    - 74.2K bytes
    - Click Count (0)
  7. src/cmd/asm/internal/asm/testdata/riscv64error.s

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    TEXT errors(SB),$0
    	CSRRC	(X10), CYCLE, X5		// ERROR "integer register or immediate expected for 1st operand"
    	CSRRC	X0, TU, X5			// ERROR "unknown CSR"
    	CSRRC	X0, CYCLE			// ERROR "missing CSR name"
    	CSRRC	X0, CYCLE, (X10)		// ERROR "needs an integer register output"
    	CSRRC	$-1, TIME, X15			// ERROR "immediate out of range 0 to 31"
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Wed Apr 01 04:17:57 GMT 2026
    - 27.2K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/io/ByteSourceTest.java

      }
    
      public void testConcat_infiniteIterable() throws IOException {
        ByteSource source = ByteSource.wrap(new byte[] {0, 1, 2, 3});
        Iterable<ByteSource> cycle = Iterables.cycle(ImmutableList.of(source));
        ByteSource concatenated = ByteSource.concat(cycle);
    
        byte[] expected = {0, 1, 2, 3, 0, 1, 2, 3};
        assertArrayEquals(expected, concatenated.slice(0, 8).read());
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 15.6K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

      }
    
      public void testConcat_infiniteIterable() throws IOException {
        ByteSource source = ByteSource.wrap(new byte[] {0, 1, 2, 3});
        Iterable<ByteSource> cycle = Iterables.cycle(ImmutableList.of(source));
        ByteSource concatenated = ByteSource.concat(cycle);
    
        byte[] expected = {0, 1, 2, 3, 0, 1, 2, 3};
        assertArrayEquals(expected, concatenated.slice(0, 8).read());
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 15.6K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/collect/IterablesTest.java

        assertEquals(expected, actual);
      }
    
      // Far less exhaustive than the tests in IteratorsTest
      public void testCycle() {
        Iterable<String> cycle = Iterables.cycle("a", "b");
    
        int howManyChecked = 0;
        for (String string : cycle) {
          String expected = (howManyChecked % 2 == 0) ? "a" : "b";
          assertThat(string).isEqualTo(expected);
          if (howManyChecked++ == 5) {
            break;
          }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 47.5K bytes
    - Click Count (0)
Back to Top