Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testReentrantHasNext (0.12 sec)

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

                return new Object();
              }
            };
        WeakReference<Object> ref = new WeakReference<>(itr.next());
        GcFinalization.awaitClear(ref);
      }
    
      public void testReentrantHasNext() {
        Iterator<Integer> iter =
            new AbstractIterator<Integer>() {
              @Override
              protected Integer computeNext() {
                boolean unused = hasNext();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

                return 0;
              }
            };
    
        assertEquals(0, (int) iter.next());
    
        assertThrows(UnsupportedOperationException.class, iter::remove);
      }
    
      public void testReentrantHasNext() {
        Iterator<Integer> iter =
            new AbstractIterator<Integer>() {
              @Override
              protected Integer computeNext() {
                boolean unused = hasNext();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

                return 0;
              }
            };
    
        assertEquals(0, (int) iter.next());
    
        assertThrows(UnsupportedOperationException.class, iter::remove);
      }
    
      public void testReentrantHasNext() {
        Iterator<Integer> iter =
            new AbstractIterator<Integer>() {
              @Override
              protected Integer computeNext() {
                boolean unused = hasNext();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top