Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 121 for gwon (0.14 sec)

  1. guava-tests/test/com/google/common/graph/EndpointPairTest.java

        undirectedNetwork.addNode(N0);
        undirectedNetwork.addEdge(N1, N2, E12);
        undirectedNetwork.addEdge(N2, N1, E12_A); // adds parallel edge, won't be in Graph edges
        undirectedNetwork.addEdge(N1, N3, E13);
        undirectedNetwork.addEdge(N4, N4, E44);
        containsExactlySanityCheck(
            undirectedNetwork.asGraph().edges(),
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/EndpointPairTest.java

        undirectedNetwork.addNode(N0);
        undirectedNetwork.addEdge(N1, N2, E12);
        undirectedNetwork.addEdge(N2, N1, E12_A); // adds parallel edge, won't be in Graph edges
        undirectedNetwork.addEdge(N1, N3, E13);
        undirectedNetwork.addEdge(N4, N4, E44);
        containsExactlySanityCheck(
            undirectedNetwork.asGraph().edges(),
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        int nTasks = 1000;
        int nSeededEntries = 100;
        Set<String> expectedKeys = Sets.newHashSetWithExpectedSize(nTasks + nSeededEntries);
        // seed the map, so its segments have a count>0; otherwise, clear() won't visit the in-progress
        // entries
        for (int i = 0; i < nSeededEntries; i++) {
          String s = "b" + i;
          cache.getUnchecked(s);
          expectedKeys.add(s);
        }
        computationShouldWait.set(true);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 25.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/TempFileCreator.java

            Class<?> optionalClass = Class.forName("java.util.Optional");
            /*
             * We don't *need* to use reflection to access Optional: It's available on all JDKs we
             * support, and Android code won't get this far, anyway, because ProcessHandle is
             * unavailable. But given how much other reflection we're using, we might as well use it
             * here, too, so that we don't need to also suppress an AndroidApiChecker error.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 06 17:11:11 GMT 2023
    - 12.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/ByteStreams.java

        }
    
        @Override
        public int available() throws IOException {
          return (int) Math.min(in.available(), left);
        }
    
        // it's okay to mark even if mark isn't supported, as reset won't work
        @Override
        public synchronized void mark(int readLimit) {
          in.mark(readLimit);
          mark = left;
        }
    
        @Override
        public int read() throws IOException {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/Collections2Test.java

            Collections2.orderedPermutations(list, Ordering.natural());
    
        assertPermutationsCount(105, permutations);
      }
    
      public void testOrderedPermutationSetSizeOverflow() {
        // 12 elements won't overflow
        assertEquals(
            479001600 /*12!*/,
            Collections2.orderedPermutations(newArrayList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))
                .size());
        // 13 elements overflow an int
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/Collections2Test.java

            Collections2.orderedPermutations(list, Ordering.natural());
    
        assertPermutationsCount(105, permutations);
      }
    
      public void testOrderedPermutationSetSizeOverflow() {
        // 12 elements won't overflow
        assertEquals(
            479001600 /*12!*/,
            Collections2.orderedPermutations(newArrayList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))
                .size());
        // 13 elements overflow an int
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/CharSource.java

       *
       * @throws IOException if an I/O error occurs while reading from this source or if {@code
       *     processor} throws an {@code IOException}
       * @since 16.0
       */
      @CanIgnoreReturnValue // some processors won't return a useful result
      @ParametricNullness
      public <T extends @Nullable Object> T readLines(LineProcessor<T> processor) throws IOException {
        checkNotNull(processor);
    
        Closer closer = Closer.create();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 22.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        ListenableFuture<Object> input =
            UncheckedThrowingFuture.throwingRuntimeException(new MyRuntimeException());
    
        // We'd catch only MyRuntimeException.class here, but then the test won't compile under GWT.
        ListenableFuture<Object> output =
            catching(input, Throwable.class, identity(), directExecutor());
        assertThat(getDone(output)).isInstanceOf(MyRuntimeException.class);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/ByteSource.java

       *
       * @throws IOException if an I/O error occurs while reading from this source or if {@code
       *     processor} throws an {@code IOException}
       * @since 16.0
       */
      @CanIgnoreReturnValue // some processors won't return a useful result
      @ParametricNullness
      public <T extends @Nullable Object> T read(ByteProcessor<T> processor) throws IOException {
        checkNotNull(processor);
    
        Closer closer = Closer.create();
        try {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 26.2K bytes
    - Viewed (0)
Back to top