Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for ctool (0.16 sec)

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

        list.add("cool");
        assertTrue(iterable.allMatch(predicate));
        list.add("pants");
        assertFalse(iterable.allMatch(predicate));
      }
    
      public void testFirstMatch() {
        FluentIterable<String> iterable = FluentIterable.from(Lists.newArrayList("cool", "pants"));
        assertThat(iterable.firstMatch(Predicates.equalTo("cool"))).hasValue("cool");
        assertThat(iterable.firstMatch(Predicates.equalTo("pants"))).hasValue("pants");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 18:35:19 GMT 2024
    - 31.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertTrue(Iterators.all(list.iterator(), predicate));
        list.add("pants");
        assertFalse(Iterators.all(list.iterator(), predicate));
      }
    
      public void testFind_firstElement() {
        Iterable<String> list = Lists.newArrayList("cool", "pants");
        Iterator<String> iterator = list.iterator();
        assertEquals("cool", Iterators.find(iterator, Predicates.equalTo("cool")));
        assertEquals("pants", iterator.next());
      }
    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)
  3. android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java

              "www.rave.ca.",
              "cnn.ca",
              "ledger-enquirer.com",
              "it-trace.ch",
              "cool.dk",
              "cool.co.uk",
              "cool.de",
              "cool.es",
              "cool\uFF61fr", // Alternate dot character
              "cool.nl",
              "members.blah.nl.",
              "cool.se",
              "utenti.blah.it",
              "kt.co",
              "a\u7f51\u7edcA.\u7f51\u7edc.Cn" // "a网络A.网络.Cn"
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 17.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/AndroidIncompatible.java

     * I'm not completely sure that this is the right choice, but it has various advantages:
     *
     * <ul>
     *   <li>An annotation named just "Suppress" might someday be treated by a non-Android tool as a
     *       suppression. This would follow the precedent of many of our annotation processors, which
     *       look for any annotation named, e.g., "GwtIncompatible," regardless of package.
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Jul 07 15:40:13 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

          assertTrue(afterBurst >= 1000);
        }
      }
    
      /**
       * This neat test shows that no matter what weights we use in our requests, if we push X amount of
       * permits in a cool state, where X = rate * timeToCoolDown, and we have specified a
       * timeToWarmUp() period, it will cost as the prescribed amount of time. E.g., calling
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

    `he's perfectly idiotic!'  And she opened the door and went in.
    
      The door led right into a large kitchen, which was full of
    smoke from one end to the other:  the Duchess was sitting on a
    three-legged stool in the middle, nursing a baby; the cook was
    leaning over the fire, stirring a large cauldron which seemed to
    be full of soup.
    
      `There's certainly too much pepper in that soup!' Alice said to
    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)
  7. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

        list.add("cool");
        assertTrue(iterable.allMatch(predicate));
        list.add("pants");
        assertFalse(iterable.allMatch(predicate));
      }
    
      public void testFirstMatch() {
        FluentIterable<String> iterable = FluentIterable.from(Lists.newArrayList("cool", "pants"));
        assertThat(iterable.firstMatch(Predicates.equalTo("cool"))).hasValue("cool");
        assertThat(iterable.firstMatch(Predicates.equalTo("pants"))).hasValue("pants");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 06 17:32:08 GMT 2023
    - 30.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java

       * <p>This always holds: {@code 0 <= permitsToTake <= storedPermits}
       */
      abstract long storedPermitsToWaitTime(double storedPermits, double permitsToTake);
    
      /**
       * Returns the number of microseconds during cool down that we have to wait to get a new permit.
       */
      abstract double coolDownIntervalMicros();
    
      /** Updates {@code storedPermits} and {@code nextFreeTicketMicros} based on the current time. */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/net/InternetDomainNameTest.java

              "www.rave.ca.",
              "cnn.ca",
              "ledger-enquirer.com",
              "it-trace.ch",
              "cool.dk",
              "cool.co.uk",
              "cool.de",
              "cool.es",
              "cool\uFF61fr", // Alternate dot character
              "cool.nl",
              "members.blah.nl.",
              "cool.se",
              "utenti.blah.it",
              "kt.co",
              "a\u7f51\u7edcA.\u7f51\u7edc.Cn" // "a网络A.网络.Cn"
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 17.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/IterablesTest.java

        Iterable<String> list = newArrayList("cool", "pants");
        assertEquals("cool", Iterables.find(list, Predicates.equalTo("cool")));
        assertEquals("pants", Iterables.find(list, Predicates.equalTo("pants")));
        try {
          Iterables.find(list, Predicates.alwaysFalse());
          fail();
        } catch (NoSuchElementException e) {
        }
        assertEquals("cool", Iterables.find(list, Predicates.alwaysTrue()));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
Back to top