Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 70 for fare (0.14 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

        this.allowsNullKeys = allowsNullKeys;
        this.allowsNullValues = allowsNullValues;
        this.supportsIteratorRemove = supportsIteratorRemove;
      }
    
      /**
       * Used by tests that require a map, but don't care whether it's populated or not.
       *
       * @return a new map instance.
       */
      protected Map<K, V> makeEitherMap() {
        try {
          return makePopulatedMap();
        } catch (UnsupportedOperationException e) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (2)
  2. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        try {
          builder.buildOrThrow();
          fail("Expected exception from duplicate keys");
        } catch (IllegalArgumentException expected) {
          // We don't really care which values the exception message contains, but they should be
          // different from each other. If buildKeepingLast() collapsed duplicates, that might end up
          // not being true.
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 27 13:27:08 GMT 2024
    - 41.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        assertThat(logged.get(0).getThrown()).hasMessageThat().isEqualTo("You can't fire me, I quit.");
      }
    
      private static final class CancelPanickingFuture<V> extends AbstractFuture<V> {
        @Override
        public boolean cancel(boolean mayInterruptIfRunning) {
          setException(new Error("You can't fire me, I quit."));
          return false;
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/OrderingTest.java

              int identityHashCode(Object object) {
                return ((Integer) object) % 5; // fake tons of collisions!
              }
            };
    
        // Don't let the elements be in such a predictable order
        list = shuffledCopy(list, new Random(1));
    
        Collections.sort(list, arbitrary);
    
        // Now we don't care what order it's put the list in, only that
        // comparing any pair of elements gives the answer we expect.
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/OrderingTest.java

              int identityHashCode(Object object) {
                return ((Integer) object) % 5; // fake tons of collisions!
              }
            };
    
        // Don't let the elements be in such a predictable order
        list = shuffledCopy(list, new Random(1));
    
        Collections.sort(list, arbitrary);
    
        // Now we don't care what order it's put the list in, only that
        // comparing any pair of elements gives the answer we expect.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/MinimalSet.java

    import java.util.List;
    import java.util.Set;
    import org.checkerframework.checker.nullness.qual.NonNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A simplistic set which implements the bare minimum so that it can be used in tests without
     * relying on any specific Set implementations. Slow. Explicitly allows null elements so that they
     * can be used in the testers.
     *
     * @author Regina O'Dell
     */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/MinimalSet.java

    import java.util.List;
    import java.util.Set;
    import org.checkerframework.checker.nullness.qual.NonNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A simplistic set which implements the bare minimum so that it can be used in tests without
     * relying on any specific Set implementations. Slow. Explicitly allows null elements so that they
     * can be used in the testers.
     *
     * @author Regina O'Dell
     */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/MoreFilesTest.java

        MoreFiles.touch(temp);
        assertThat(Files.getLastModifiedTime(temp).toMillis()).isNotEqualTo(0);
      }
    
      public void testCreateParentDirectories_root() throws IOException {
        // We use a fake filesystem to sidestep flaky problems with Windows (b/136041958).
        try (FileSystem fs = Jimfs.newFileSystem(Configuration.unix())) {
          Path root = fs.getRootDirectories().iterator().next();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 29 22:57:05 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/base/PreconditionsTest.java

      }
    
      public void testCheckElementIndex_badSize() {
        try {
          Preconditions.checkElementIndex(1, -1);
          fail();
        } catch (IllegalArgumentException expected) {
          // don't care what the message text is, as this is an invalid usage of
          // the Preconditions class, unlike all the other exceptions it throws
        }
      }
    
      public void testCheckElementIndex_negative() {
        try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/CharMatcher.java

       * Determines whether a character is a BMP digit according to <a
       * href="http://unicode.org/cldr/utility/list-unicodeset.jsp?a=%5Cp%7Bdigit%7D">Unicode</a>. If
       * you only care to match ASCII digits, you can use {@code inRange('0', '9')}.
       *
       * @deprecated Many digits are supplementary characters; see the class documentation.
       * @since 19.0 (since 1.0 as constant {@code DIGIT})
       */
      @Deprecated
      public static CharMatcher digit() {
    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)
Back to top