Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for pret (0.13 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        SettableFuture<String> orig = SettableFuture.create();
        SettableFuture<String> prev = orig;
        for (int i = 0; i < 100000; i++) {
          SettableFuture<String> curr = SettableFuture.create();
          prev.setFuture(curr);
          prev = curr;
        }
        // prev represents the 'innermost' future
        prev.set("done");
        assertTrue(orig.isDone());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Ordering.java

        Iterator<? extends T> it = iterable.iterator();
        if (it.hasNext()) {
          T prev = it.next();
          while (it.hasNext()) {
            T next = it.next();
            if (compare(prev, next) > 0) {
              return false;
            }
            prev = next;
          }
        }
        return true;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Ordering.java

        Iterator<? extends T> it = iterable.iterator();
        if (it.hasNext()) {
          T prev = it.next();
          while (it.hasNext()) {
            T next = it.next();
            if (compare(prev, next) > 0) {
              return false;
            }
            prev = next;
          }
        }
        return true;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        SettableFuture<String> orig = SettableFuture.create();
        SettableFuture<String> prev = orig;
        for (int i = 0; i < 100000; i++) {
          SettableFuture<String> curr = SettableFuture.create();
          prev.setFuture(curr);
          prev = curr;
        }
        // prev represents the 'innermost' future
        prev.set("done");
        assertTrue(orig.isDone());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Equivalence.java

       *
       * <pre>{@code
       * equiv.wrap("a").equals(equiv.wrap("b")) // true
       * equiv.wrap("a").equals(equiv.wrap("hello")) // false
       * }</pre>
       *
       * <p>Note in particular that an equivalence wrapper is never equal to the object it wraps.
       *
       * <pre>{@code
       * equiv.wrap(obj).equals(obj) // always false
       * }</pre>
       *
       * @since 10.0
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu May 16 14:34:47 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

       * static final} multimaps ("constant multimaps"). Example:
       *
       * <pre>{@code
       * static final Multimap<String, Integer> STRING_TO_INTEGER_MULTIMAP =
       *     new ImmutableListMultimap.Builder<String, Integer>()
       *         .put("one", 1)
       *         .putAll("several", 1, 2, 3)
       *         .putAll("many", 1, 2, 3, 4, 5)
       *         .build();
       * }</pre>
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

     *
     * <pre>
     * public class PackageSanityTests extends AbstractPackageSanityTests {}
     * </pre>
     *
     * <p>Note that only top-level classes with either a non-private constructor or a non-private static
     * factory method to construct instances can have their instance methods checked. For example:
     *
     * <pre>
     * public class Address {
     *   private final String city;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

       * final} multimaps ("constant multimaps"). Example:
       *
       * <pre>{@code
       * static final Multimap<String, Integer> STRING_TO_INTEGER_MULTIMAP =
       *     new ImmutableSetMultimap.Builder<String, Integer>()
       *         .put("one", 1)
       *         .putAll("several", 1, 2, 3)
       *         .putAll("many", 1, 2, 3, 4, 5)
       *         .build();
       * }</pre>
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

        }
        checkElementsNotNull(contents, n);
        Arrays.sort(contents, 0, n, comparator);
        int uniques = 1;
        for (int i = 1; i < n; i++) {
          E cur = contents[i];
          E prev = contents[uniques - 1];
          if (comparator.compare(cur, prev) != 0) {
            contents[uniques++] = cur;
          }
        }
        Arrays.fill(contents, uniques, n, null);
        if (uniques < contents.length / 2) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableMap.java

       * ("constant maps"). Example:
       *
       * <pre>{@code
       * static final ImmutableMap<String, Integer> WORD_TO_INT =
       *     new ImmutableMap.Builder<String, Integer>()
       *         .put("one", 1)
       *         .put("two", 2)
       *         .put("three", 3)
       *         .buildOrThrow();
       * }</pre>
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 41.6K bytes
    - Viewed (0)
Back to top