Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for cursor (0.2 sec)

  1. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

        @Override
        public E next() {
          if (cursor >= array.length) throw new NoSuchElementException();
          lastRet = cursor;
    
          // array comes from q.toArray() and so should have only E's in it
          @SuppressWarnings("unchecked")
          E e = (E) array[cursor++];
          return e;
        }
    
        @Override
        public void remove() {
          if (lastRet < 0) throw new IllegalStateException();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 19.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

          checkModCount();
          nextNotInSkipMe(cursor + 1);
          return (nextCursor < size()) || ((forgetMeNot != null) && !forgetMeNot.isEmpty());
        }
    
        @Override
        public E next() {
          checkModCount();
          nextNotInSkipMe(cursor + 1);
          if (nextCursor < size()) {
            cursor = nextCursor;
            canRemove = true;
            return elementData(cursor);
          } else if (forgetMeNot != null) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 34K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        it.remove();
        // After this remove, 400 has moved up and 20 down past cursor
        assertTrue("Heap is not intact after remove", mmHeap.isIntact());
        assertEquals((Integer) 10, it.next());
        assertEquals((Integer) 3, it.next());
        it.remove();
        // After this remove, 400 moved down again and 500 up past the cursor
        assertTrue("Heap is not intact after remove", mmHeap.isIntact());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

        @Override
        public E next() {
          if (cursor >= array.length) throw new NoSuchElementException();
          lastRet = cursor;
    
          // array comes from q.toArray() and so should have only E's in it
          @SuppressWarnings("unchecked")
          E e = (E) array[cursor++];
          return e;
        }
    
        @Override
        public void remove() {
          if (lastRet < 0) throw new IllegalStateException();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 19.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        it.remove();
        // After this remove, 400 has moved up and 20 down past cursor
        assertTrue("Heap is not intact after remove", mmHeap.isIntact());
        assertEquals((Integer) 10, it.next());
        assertEquals((Integer) 3, it.next());
        it.remove();
        // After this remove, 400 moved down again and 500 up past the cursor
        assertTrue("Heap is not intact after remove", mmHeap.isIntact());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

          monitor.enter();
          try {
            int i = lastRet;
            if (i == -1) throw new IllegalStateException();
            lastRet = -1;
    
            int ti = takeIndex;
            removeAt(i);
            // back up cursor (reset to front if was first element)
            nextIndex = (i == ti) ? takeIndex : i;
            checkNext();
          } finally {
            monitor.leave();
          }
        }
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

         * href="https://developer.android.com/sdk/api_diff/16/">API Level 16</a> is the first version
         * in which {@code Cursor} is {@code Closeable}. To support older versions, pass a wrapper
         * {@code Closeable} with a method reference like {@code cursor::close}.
         *
         * <p>Note that this method is still binary-compatible between flavors because the erasure of
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 98.5K bytes
    - Viewed (0)
  8. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

          monitor.enter();
          try {
            int i = lastRet;
            if (i == -1) throw new IllegalStateException();
            lastRet = -1;
    
            int ti = takeIndex;
            removeAt(i);
            // back up cursor (reset to front if was first element)
            nextIndex = (i == ti) ? takeIndex : i;
            checkNext();
          } finally {
            monitor.leave();
          }
        }
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/SourceSinkTester.java

              + "\n"
              + "Nunc quis lacus est. Sed aliquam pretium cursus. Sed eu libero eros. In hac habitasse "
              + "platea dictumst. Pellentesque molestie, nibh nec iaculis luctus, justo sem lobortis "
              + "enim, at feugiat leo magna nec libero. Mauris quis odio eget nisl rutrum cursus nec "
              + "eget augue. Sed nec arcu sem. In hac habitasse platea dictumst.";
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Apr 27 18:57:08 GMT 2022
    - 4.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

    Alice could not stand, and she went round the court and got
    behind him, and very soon found an opportunity of taking it
    away.  She did it so quickly that the poor little juror (it was
    Bill, the Lizard) could not make out at all what had become of
    it; so, after hunting all about for it, he was obliged to write
    with one finger for the rest of the day; and this was of very
    Plain Text
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 29 21:35:03 GMT 2012
    - 145.2K bytes
    - Viewed (0)
Back to top