Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for conceal (0.2 sec)

  1. guava-tests/test/com/google/common/collect/IteratorsTest.java

          protected Iterator<Integer> newTargetIterator() {
            return Iterators.concat();
          }
        }.test();
      }
    
      @GwtIncompatible // slow (~5s)
      public void testConcatOneEmptyIteratorYieldsEmpty() {
        new EmptyIteratorTester() {
          @Override
          protected Iterator<Integer> newTargetIterator() {
            return Iterators.concat(iterateOver());
          }
        }.test();
      }
    
    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)
  2. android/guava/src/com/google/common/base/Preconditions.java

     * allocations in many common cases.
     *
     * <p>The message string is not formatted unless the exception will be thrown, so the cost of the
     * string formatting itself should not be a concern.
     *
     * <p>As with any performance concerns, you should consider profiling your code (in a production
     * environment if possible) before spending a lot of effort on tweaking a particular element.
     *
    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)
  3. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

              // Note: The only way this CAS could fail is if cancel() has raced with us. That is ok.
              boolean unused = ATOMIC_HELPER.casValue(this, valueToSet, failure);
            }
            return true;
          }
          localValue = value; // we lost the cas, fall through and maybe cancel
        }
        // The future has already been set to something. If it is cancellation we should cancel the
        // incoming future.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/MapsTest.java

        EntryTransformer<String, String, String> concat =
            new EntryTransformer<String, String, String>() {
              @Override
              public String transformEntry(String key, String value) {
                return key + value;
              }
            };
        Map<String, String> transformed = transformEntries(map, concat);
    
        assertEquals(ImmutableMap.of("a", "a4", "b", "b9"), transformed);
    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)
  5. android/guava-tests/test/com/google/common/collect/MapsTest.java

        EntryTransformer<String, String, String> concat =
            new EntryTransformer<String, String, String>() {
              @Override
              public String transformEntry(String key, String value) {
                return key + value;
              }
            };
        Map<String, String> transformed = transformEntries(map, concat);
    
        assertEquals(ImmutableMap.of("a", "a4", "b", "b9"), transformed);
    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)
  6. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

        step2Waiter.awaitStarted();
    
        // Everything should still be open.
        assertStillOpen(closeable1, closeable2, closeable3, closeable4);
    
        // Cancel step 3, resume step 2, and pause in step 4.
        assertWithMessage("step3.cancel()").that(step3.cancel(false)).isTrue();
        step2Waiter.awaitReturned();
        step4Waiter.awaitStarted();
    
        // Step 1 is not cancelled because it was done.
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Sets.java

       *
       * <p>The returned set and its constituent sets use {@code equals} to decide whether two elements
       * are identical, even if the input set uses a different concept of equivalence.
       *
       * <p><i>Performance notes:</i> while the power set of a set with size {@code n} is of size {@code
       * 2^n}, its memory usage is only {@code O(n)}. When the power set is constructed, the input set
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/Futures.java

          this.state = state;
        }
    
        @Override
        public boolean cancel(boolean interruptIfRunning) {
          InCompletionOrderState<T> localState = state;
          if (super.cancel(interruptIfRunning)) {
            /*
             * requireNonNull is generally safe: If cancel succeeded, then this Future was still
             * pending, so its `state` field hasn't been nulled out yet.
             *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertEquals("d", itr2.next());
        assertEquals("c", itr2.next());
      }
    
      public void testConcatPartiallyAdvancedFirst() {
        Iterator<String> itr1 = Iterators.concat(singletonIterator("a"), Iterators.forArray("b", "c"));
        assertEquals("a", itr1.next());
        assertEquals("b", itr1.next());
        Iterator<String> itr2 = Iterators.concat(itr1, singletonIterator("d"));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

        step2Waiter.awaitStarted();
    
        // Everything should still be open.
        assertStillOpen(closeable1, closeable2, closeable3, closeable4);
    
        // Cancel step 3, resume step 2, and pause in step 4.
        assertWithMessage("step3.cancel()").that(step3.cancel(false)).isTrue();
        step2Waiter.awaitReturned();
        step4Waiter.awaitStarted();
    
        // Step 1 is not cancelled because it was done.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 74.7K bytes
    - Viewed (0)
Back to top