Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 895 for match (0.2 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/ListToArrayTester.java

        Object[] actual = getList().toArray();
        assertArrayEquals("toArray() order should match list", createOrderedArray(), actual);
      }
    
      @CollectionSize.Require(absent = ZERO)
      public void testToArray_tooSmall() {
        Object[] actual = getList().toArray(new Object[0]);
        assertArrayEquals("toArray(tooSmall) order should match list", createOrderedArray(), actual);
      }
    
      public void testToArray_largeEnough() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 2.1K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java

       *     result doesn't match the expected value.
       */
      public void assertSuccess(Object expectedData) throws Throwable {
        // Verify that the listener executed in a reasonable amount of time.
        Assert.assertTrue(countDownLatch.await(1L, SECONDS));
    
        try {
          Assert.assertEquals(expectedData, future.get());
        } catch (ExecutionException e) {
          throw e.getCause();
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri May 12 18:12:42 GMT 2023
    - 3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/net/HttpHeaders.java

      /** The HTTP {@code If-Match} header field name. */
      public static final String IF_MATCH = "If-Match";
      /** The HTTP {@code If-Modified-Since} header field name. */
      public static final String IF_MODIFIED_SINCE = "If-Modified-Since";
      /** The HTTP {@code If-None-Match} header field name. */
      public static final String IF_NONE_MATCH = "If-None-Match";
      /** The HTTP {@code If-Range} header field name. */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:08:08 GMT 2024
    - 34.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

        bestGetCheckedTypeValidator().validateClass(exceptionClass);
        try {
          return future.get(timeout, unit);
        } catch (InterruptedException e) {
          currentThread().interrupt();
          throw newWithCause(exceptionClass, e);
        } catch (TimeoutException e) {
          throw newWithCause(exceptionClass, e);
        } catch (ExecutionException e) {
          wrapAndThrowExceptionOrError(e.getCause(), exceptionClass);
          throw new AssertionError();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/CharMatcher.java

      private static final class IsEither extends FastMatcher {
    
        private final char match1;
        private final char match2;
    
        IsEither(char match1, char match2) {
          this.match1 = match1;
          this.match2 = match2;
        }
    
        @Override
        public boolean matches(char c) {
          return c == match1 || c == match2;
        }
    
        @GwtIncompatible // used only from other GwtIncompatible code
    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)
  6. android/guava/src/com/google/common/base/Predicates.java

        return new CompositionPredicate<>(predicate, function);
      }
    
      /**
       * Returns a predicate that evaluates to {@code true} if the {@code CharSequence} being tested
       * contains any match for the given regular expression pattern. The test used is equivalent to
       * {@code Pattern.compile(pattern).matcher(arg).find()}
       *
       * @throws IllegalArgumentException if the pattern is invalid
       * @since 3.0
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/CharMatcher.java

      private static final class IsEither extends FastMatcher {
    
        private final char match1;
        private final char match2;
    
        IsEither(char match1, char match2) {
          this.match1 = match1;
          this.match2 = match2;
        }
    
        @Override
        public boolean matches(char c) {
          return c == match1 || c == match2;
        }
    
        @GwtIncompatible // used only from other GwtIncompatible code
    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)
  8. guava/src/com/google/common/base/SmallCharMatcher.java

       */
      @VisibleForTesting
      static int chooseTableSize(int setSize) {
        if (setSize == 1) {
          return 2;
        }
        // Correct the size for open addressing to match desired load factor.
        // Round up to the next highest power of 2.
        int tableSize = Integer.highestOneBit(setSize - 1) << 1;
        while (tableSize * DESIRED_LOAD_FACTOR < setSize) {
          tableSize <<= 1;
        }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/cache/CacheBuilderSpec.java

                durationInNanos(that.refreshDuration, that.refreshTimeUnit));
      }
    
      /**
       * Converts an expiration duration/unit pair into a single Long for hashing and equality. Uses
       * nanos to match CacheBuilder implementation.
       */
      @CheckForNull
      private static Long durationInNanos(long duration, @CheckForNull TimeUnit unit) {
        return (unit == null) ? null : unit.toNanos(duration);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Aug 22 14:27:44 GMT 2022
    - 18.1K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java

       *     result doesn't match the expected value.
       */
      public void assertSuccess(Object expectedData) throws Throwable {
        // Verify that the listener executed in a reasonable amount of time.
        Assert.assertTrue(countDownLatch.await(1L, SECONDS));
    
        try {
          Assert.assertEquals(expectedData, future.get());
        } catch (ExecutionException e) {
          throw e.getCause();
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 12 18:12:42 GMT 2023
    - 3K bytes
    - Viewed (0)
Back to top