Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 441 - 450 of 613 for needs (0.01 seconds)

  1. guava-tests/test/com/google/common/io/CharSourceTest.java

        // TODO(cgdecker): Add CharSource.slice?
        StringBuilder builder = new StringBuilder();
        Reader reader = concatenated.openStream(); // no need to worry about closing
        for (int i = 0; i < 8; i++) {
          builder.append((char) reader.read());
        }
        assertThat(builder.toString()).isEqualTo(expected);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

       * sees an Error?
       */
      @AndroidIncompatible
      public void testTaskThrowsError() throws Exception {
        class MyError extends Error {}
        CyclicBarrier barrier = new CyclicBarrier(2);
        // we need to make sure the error gets thrown on a different thread.
        ExecutorService service = newSingleThreadExecutor();
        try {
          SequentialExecutor executor = new SequentialExecutor(service);
          Runnable errorTask =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 10.5K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/base/MoreObjects.java

         * helps to shortcut most calls to isEmpty(), which is important because the check for emptiness
         * is relatively expensive. Use a subtype so this also doesn't need any extra storage.
         */
        private static final class UnconditionalValueHolder extends ValueHolder {}
      }
    
      private MoreObjects() {}
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 05 17:38:41 GMT 2026
    - 16.2K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/util/concurrent/FluentFuture.java

     * CompletableFuture}. {@code FluentFuture} is targeted at people who use {@code ListenableFuture},
     * who can't use Java 8, or who want an API more focused than {@code CompletableFuture}. (If you
     * need to adapt between {@code CompletableFuture} and {@code ListenableFuture}, consider <a
     * href="https://github.com/lukas-krecan/future-converter">Future Converter</a>.)
     *
     * <h3>Extension</h3>
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 19.8K bytes
    - Click Count (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

            .receivedResponseAtMillis(System.currentTimeMillis())
            .build()
            .also {
              chain.eventListener.satisfactionFailure(call, it)
            }
        }
    
        // If we don't need the network, we're done.
        if (networkRequest == null) {
          return cacheResponse!!
            .newBuilder()
            .cacheResponse(cacheResponse.stripBody())
            .build()
            .also {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Jan 11 12:06:21 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/graph/ValueGraph.java

     * </ul>
     *
     * <p>{@code ValueGraph}, as a subtype of {@code Graph}, explicitly does not support parallel edges,
     * and forbids implementations or extensions with parallel edges. If you need parallel edges, use
     * {@link Network}. (You can use a positive {@code Integer} edge value as a loose representation of
     * edge multiplicity, but the {@code *degree()} and mutation methods will not reflect your
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 15K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/sso/SsoAuthenticatorTest.java

            // Setup
            TestLoginCredential credential = new TestLoginCredential("user", "pass");
            authenticator.setLoginCredential(credential);
    
            HtmlResponse metadataResponse = null; // Would need proper LastaFlute context to create
            authenticator.setResponseForType(SsoResponseType.METADATA, metadataResponse);
    
            String logoutUrl = "https://sso.example.com/logout";
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.2K bytes
    - Click Count (1)
  8. android/guava/src/com/google/common/graph/ImmutableGraph.java

                new StandardValueGraph<N, Presence>(
                    GraphBuilder.from(graph), getNodeConnections(graph), graph.edges().size()));
      }
    
      /**
       * Simply returns its argument.
       *
       * @deprecated no need to use this
       */
      @InlineMe(
          replacement = "checkNotNull(graph)",
          staticImports = "com.google.common.base.Preconditions.checkNotNull")
      @Deprecated
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java

      private static final ImmutableSet<Integer> TEST_INTS;
      private static final ImmutableSet<Long> TEST_LONGS;
    
      private static int force32(int value) {
        // GWT doesn't consistently overflow values to make them 32-bit, so we need to force it.
        return value & 0xffffffff;
      }
    
      static {
        ImmutableSet.Builder<Integer> testIntsBuilder = ImmutableSet.builder();
        ImmutableSet.Builder<Long> testLongsBuilder = ImmutableSet.builder();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 11 20:45:32 GMT 2025
    - 9.6K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

     *       However, utilities that <i>use</i> that executor have the ability to interrupt tasks
     *       running on it. This class, by contrast, does not expose an {@code Executor} API.)
     * </ul>
     *
     * <p>If you don't need the features of this class, you may prefer {@code newSequentialExecutor} for
     * its simplicity and ability to accommodate interruption.
     *
     * @since 26.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 01:35:55 GMT 2025
    - 22.1K bytes
    - Click Count (0)
Back to Top