Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 512 for Case (1.43 sec)

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

          top.offerAll(list);
          assertThat(top.topK()).containsExactly(1, 2).inOrder();
        }
      }
    
      public void testDifferentComparator() {
        TopKSelector<String> top = TopKSelector.least(3, String.CASE_INSENSITIVE_ORDER);
        top.offerAll(ImmutableList.of("a", "B", "c", "D", "e", "F"));
        assertThat(top.topK()).containsExactly("a", "B", "c").inOrder();
      }
    
      public void testWorstCase() {
        int n = 2000000;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/hash/Hashing.java

     * or implied. See the License for the specific language governing permissions and limitations under
     * the License.
     */
    
    package com.google.common.hash;
    
    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.base.Preconditions.checkNotNull;
    
    import com.google.errorprone.annotations.Immutable;
    import java.security.Key;
    import java.util.ArrayList;
    import java.util.Arrays;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

           *   called only once, just as it has its Executor.execute override called only once.)
           *
           * - if we return immediately from `execute` (in which case we never get here)
           *
           * - in the "reentrant submit" case of `execute` (in which case we must have started running a
           *   user task -- which means that we already got past this code (or else we exited early
           *   above))
           */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/SuppliersTest.java

        final Supplier<Boolean> supplier =
            new Supplier<Boolean>() {
              boolean isWaiting(Thread thread) {
                switch (thread.getState()) {
                  case BLOCKED:
                  case WAITING:
                  case TIMED_WAITING:
                    return true;
                  default:
                    return false;
                }
              }
    
              int waitingThreads() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/SuppliersTest.java

        final Supplier<Boolean> supplier =
            new Supplier<Boolean>() {
              boolean isWaiting(Thread thread) {
                switch (thread.getState()) {
                  case BLOCKED:
                  case WAITING:
                  case TIMED_WAITING:
                    return true;
                  default:
                    return false;
                }
              }
    
              int waitingThreads() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.base.Objects.equal;
    import static com.google.common.collect.Platform.reduceExponentIfGwt;
    import static com.google.common.collect.Platform.reduceIterationsIfGwt;
    import static com.google.common.truth.Truth.assertThat;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/FileBackedOutputStream.java

     * once the data reaches a configurable size.
     *
     * <p>When this stream creates a temporary file, it restricts the file's permissions to the current
     * user or, in the case of Android, the current app. If that is not possible (as is the case under
     * the very old Android Ice Cream Sandwich release), then this stream throws an exception instead of
     * creating a file that would be more accessible. (This behavior is new in Guava 32.0.0. Previous
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/graph/AbstractGraphTest.java

      /**
       * A proxy method that adds the node {@code n} to the graph being tested. In case of Immutable
       * graph implementations, this method should replace {@link #graph} with a new graph that includes
       * this node.
       */
      abstract void addNode(Integer n);
    
      /**
       * A proxy method that adds the edge {@code e} to the graph being tested. In case of Immutable
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/graph/ValueGraphTest.java

      public void undirectedGraph() {
        graph = ValueGraphBuilder.undirected().allowsSelfLoops(true).build();
        graph.putEdgeValue(1, 2, "valueA");
        graph.putEdgeValue(2, 1, "valueB"); // overwrites valueA in undirected case
        graph.putEdgeValue(2, 3, "valueC");
        graph.putEdgeValue(4, 4, "valueD");
    
        assertThat(graph.edgeValueOrDefault(1, 2, null)).isEqualTo("valueB");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 18:35:19 GMT 2024
    - 20K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

        assertEquals("[1, 2, 3, 5, 10, 15, 20]", table.columnKeySet().toString());
      }
    
      public void testColumnKeySet_isSortedWithRealComparator() {
        table =
            create(
                String.CASE_INSENSITIVE_ORDER,
                Ordering.<Integer>natural().reverse(),
                "a",
                2,
                'X',
                "a",
                2,
                'X',
                "b",
                3,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 15K bytes
    - Viewed (0)
Back to top