Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 145 for Haddad (0.19 sec)

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

        int added = 0;
        boolean interrupted = false;
        try {
          while (added < numElements) {
            // we could rely solely on #poll, but #drainTo might be more efficient when there are
            // multiple elements already available (e.g. LinkedBlockingQueue#drainTo locks only once)
            added += q.drainTo(buffer, numElements - added);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 16K bytes
    - Viewed (0)
  2. .github/ISSUE_TEMPLATE/feature_addition_request.yaml

            [many forms](https://github.com/google/guava/wiki/PhilosophyExplained#utility), but taking
            the time to discuss them in detail will make it much clearer why this feature should be
            added to Guava.
    
    
            Please fill out the following fields to give us a better understanding of your proposed
            feature and its potential value for other Guava users.
    
      - type: textarea
        attributes:
    Others
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Nov 17 18:47:47 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

      }
    
      public void testShort() {
        Sink sink = new Sink(4);
        sink.putShort((short) 0x0201);
        HashCode unused = sink.hash();
        sink.assertInvariants(2);
        sink.assertBytes(new byte[] {1, 2, 0, 0}); // padded with zeros
      }
    
      public void testInt() {
        Sink sink = new Sink(4);
        sink.putInt(0x04030201);
        HashCode unused = sink.hash();
        sink.assertInvariants(4);
        sink.assertBytes(new byte[] {1, 2, 3, 4});
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  4. futures/listenablefuture1/src/com/google/common/util/concurrent/ListenableFuture.java

     * it is invoked using this executor once the future's computation is {@linkplain Future#isDone()
     * complete}. If the computation has already completed when the listener is added, the listener will
     * execute immediately.
     *
     * <p>See the Guava User Guide article on <a
     * href="https://github.com/google/guava/wiki/ListenableFutureExplained">{@code
     * ListenableFuture}</a>.
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:13:41 GMT 2023
    - 8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableMap.java

       */
      public static <K, V> Builder<K, V> builder() {
        return new Builder<>();
      }
    
      /**
       * Returns a new builder, expecting the specified number of entries to be added.
       *
       * <p>If {@code expectedSize} is exactly the number of entries added to the builder before {@link
       * Builder#build} is called, the builder is likely to perform better than an unsized {@link
       * #builder()} would have.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 44.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/CloserTest.java

      }
    
      public void testExceptionThrown_whileClosingLastCloseable() throws IOException {
        Closer closer = new Closer(suppressor);
    
        IOException exception = new IOException();
    
        // c1 is added first, closed last
        TestCloseable c1 = closer.register(TestCloseable.throwsOnClose(exception));
        TestCloseable c2 = closer.register(TestCloseable.normal());
    
        try {
          closer.close();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:15:46 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableListCopyOfConcurrentlyModifiedInputTest.java

      }
    
      /** A list that mutates itself after every call to each of its {@link List} methods. */
      interface ConcurrentlyMutatedList<E> extends List<E> {
        /**
         * The elements of a {@link ConcurrentlyMutatedList} are added and removed over time. This
         * method returns every state that the list has passed through at some point.
         */
        Set<List<E>> getAllStates();
      }
    
      /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/testing/EqualsTester.java

        this.itemReporter = checkNotNull(itemReporter);
      }
    
      /**
       * Adds {@code equalityGroup} with objects that are supposed to be equal to each other and not
       * equal to any other equality groups added to this tester.
       *
       * <p>The {@code @Nullable} annotations on the {@code equalityGroup} parameter imply that the
       * objects, and the array itself, can be null. That is for programmer convenience, when the
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 31 19:11:50 GMT 2023
    - 6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

      }
    
      private List<Entry<Object, Object>> warmUp(LoadingCache<Object, Object> cache) {
        return warmUp(cache, WARMUP_MIN, WARMUP_MAX);
      }
    
      /**
       * Returns the entries that were added to the map, so they won't fall out of a map with weak or
       * soft references until the caller drops the reference to the returned entries.
       */
      private List<Entry<Object, Object>> warmUp(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        List<String> alreadyThere = newArrayList("already", "there");
        List<String> freshlyAdded = newArrayList("freshly", "added");
    
        boolean changed = Iterables.addAll(alreadyThere, freshlyAdded);
        assertThat(alreadyThere).containsExactly("already", "there", "freshly", "added").inOrder();
        assertTrue(changed);
      }
    
      private static void assertCanIterateAgain(Iterable<?> iterable) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 46K bytes
    - Viewed (0)
Back to top