Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for Stuart (0.19 sec)

  1. android/guava/src/com/google/common/collect/Iterators.java

        /*
         * We track the "meta iterators," the iterators-of-iterators, below.  Usually, topMetaIterator
         * is the only one in use, but if we encounter nested concatenations, we start a deque of
         * meta-iterators rather than letting the nesting get arbitrarily deep.  This keeps each
         * operation O(1).
         */
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        final String key = "bar";
    
        // start computing thread
        new Thread() {
          @Override
          public void run() {
            result.set(0, cache.getUnchecked(key));
            doneSignal.countDown();
          }
        }.start();
    
        // wait for computation to start
        secondSignal.await();
    
        // start waiting thread
        new Thread() {
          @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Preconditions.java

        if (start < 0 || start > size) {
          return badPositionIndex(start, size, "start index");
        }
        if (end < 0 || end > size) {
          return badPositionIndex(end, size, "end index");
        }
        // end < start
        return lenientFormat("end index (%s) must not be less than start index (%s)", end, start);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/IteratorsTest.java

            return Iterators.forArray(1, 2, 3);
          }
        }.test();
      }
    
      /*
       * TODO(cpovirk): Test forArray with ListIteratorTester (not just IteratorTester), including with
       * a start position other than 0.
       */
    
      public void testForEnumerationEmpty() {
        Enumeration<Integer> enumer = enumerate();
        Iterator<Integer> iter = Iterators.forEnumeration(enumer);
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        final String key = "bar";
    
        // start computing thread
        new Thread() {
          @Override
          public void run() {
            result.set(0, cache.getUnchecked(key));
            doneSignal.countDown();
          }
        }.start();
    
        // wait for computation to start
        secondSignal.await();
    
        // start waiting thread
        new Thread() {
          @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/MapsTest.java

      private static void assertWontGrow(
          int size,
          HashMap<Object, Object> referenceMap,
          HashMap<Object, Object> map1,
          HashMap<Object, Object> map2)
          throws Exception {
        // Only start measuring table size after the first element inserted, to
        // deal with empty-map optimization.
        map1.put(0, null);
    
        int initialBuckets = bucketsOf(map1);
    
        for (int i = 1; i < size; i++) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MapsTest.java

      private static void assertWontGrow(
          int size,
          HashMap<Object, Object> referenceMap,
          HashMap<Object, Object> map1,
          HashMap<Object, Object> map2)
          throws Exception {
        // Only start measuring table size after the first element inserted, to
        // deal with empty-map optimization.
        map1.put(0, null);
    
        int initialBuckets = bucketsOf(map1);
    
        for (int i = 1; i < size; i++) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/CharMatcher.java

       *     sequence.length()}
       */
      public int indexIn(CharSequence sequence, int start) {
        int length = sequence.length();
        checkPositionIndex(start, length);
        for (int i = start; i < length; i++) {
          if (matches(sequence.charAt(i))) {
            return i;
          }
        }
        return -1;
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/CharMatcher.java

       *     sequence.length()}
       */
      public int indexIn(CharSequence sequence, int start) {
        int length = sequence.length();
        checkPositionIndex(start, length);
        for (int i = start; i < length; i++) {
          if (matches(sequence.charAt(i))) {
            return i;
          }
        }
        return -1;
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/Preconditions.java

        if (start < 0 || start > size) {
          return badPositionIndex(start, size, "start index");
        }
        if (end < 0 || end > size) {
          return badPositionIndex(end, size, "end index");
        }
        // end < start
        return lenientFormat("end index (%s) must not be less than start index (%s)", end, start);
      }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Feb 14 15:46:55 GMT 2024
    - 52.9K bytes
    - Viewed (0)
Back to top