Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 134 for delegates (0.06 seconds)

  1. android/guava/src/com/google/common/util/concurrent/Futures.java

      /** A wrapped future that does not propagate cancellation to its delegate. */
      private static final class NonCancellationPropagatingFuture<V extends @Nullable Object>
          extends AbstractFuture.TrustedFuture<V> implements Runnable {
        @LazyInit private @Nullable ListenableFuture<V> delegate;
    
        NonCancellationPropagatingFuture(ListenableFuture<V> delegate) {
          this.delegate = delegate;
        }
    
        @Override
        public void run() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 64.2K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/hash/LittleEndianByteArray.java

     *
     * @author Kevin Damm
     * @author Kyle Maddison
     */
    final class LittleEndianByteArray {
    
      /**
       * The instance that actually does the work; delegates to VarHandle, Unsafe, or a Java-8
       * compatible pure-Java fallback.
       */
      private static final LittleEndianBytes byteArray = makeGetter();
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/timer/LogNotificationTargetTest.java

            // expired() with empty buffer is no-op (no exception)
            logNotificationTarget.expired();
        }
    
        @Test
        public void test_flush_callsExpired() {
            // flush() delegates to expired(); with empty buffer, no-op (no exception)
            logNotificationTarget.flush();
        }
    
        @Test
        public void test_expired_withEvents_drainsBuffer() {
            // Add events to buffer
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  4. okhttp-java-net-cookiejar/src/main/kotlin/okhttp3/java/net/cookiejar/JavaNetCookieJar.kt

    import okhttp3.internal.delimiterOffset
    import okhttp3.internal.platform.Platform
    import okhttp3.internal.platform.Platform.Companion.WARN
    import okhttp3.internal.trimSubstring
    
    /** A cookie jar that delegates to a [java.net.CookieHandler]. */
    class JavaNetCookieJar(
      private val cookieHandler: CookieHandler,
    ) : CookieJar {
      override fun saveFromResponse(
        url: HttpUrl,
        cookies: List<Cookie>,
      ) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Mar 19 07:46:39 GMT 2026
    - 3.9K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/Interners.java

               * thread doing progress here.
               */
            }
          }
        }
      }
    
      /**
       * Returns a function that delegates to the {@link Interner#intern} method of the given interner.
       *
       * @since 8.0
       */
      public static <E> Function<E, E> asFunction(Interner<E> interner) {
        return new InternerFunction<>(checkNotNull(interner));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 6K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/Interners.java

               * thread doing progress here.
               */
            }
          }
        }
      }
    
      /**
       * Returns a function that delegates to the {@link Interner#intern} method of the given interner.
       *
       * @since 8.0
       */
      public static <E> Function<E, E> asFunction(Interner<E> interner) {
        return new InternerFunction<>(checkNotNull(interner));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 6K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/Collections2.java

          // collection.
          return ((FilteredCollection<E>) unfiltered).createCombined(predicate);
        }
    
        return new FilteredCollection<>(checkNotNull(unfiltered), checkNotNull(predicate));
      }
    
      /**
       * Delegates to {@link Collection#contains}. Returns {@code false} if the {@code contains} method
       * throws a {@code ClassCastException} or {@code NullPointerException}.
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 23K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/suggest/request/suggest/SuggestRequestQueryBuildingTest.java

        // Helper class to expose methods for testing
        // ============================================================
    
        /**
         * Testable wrapper that delegates to SuggestQueryBuilder and SuggestResponseCreator.
         */
        private static class TestableSuggestRequest extends SuggestRequest {
            private String testQuery = "test";
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 14 02:35:38 GMT 2026
    - 19.8K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        ImmutableList<ListenableFuture<Long>> delegates =
            inCompletionOrder(ImmutableList.<ListenableFuture<Long>>of(future1, future2, future3));
    
        future1.set(1L);
        // Cannot cancel a complete delegate
        assertFalse(delegates.get(0).cancel(true));
        // Cancel the delegate before the input future is done
        assertTrue(delegates.get(1).cancel(true));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        ImmutableList<ListenableFuture<Long>> delegates =
            inCompletionOrder(ImmutableList.<ListenableFuture<Long>>of(future1, future2, future3));
    
        future1.set(1L);
        // Cannot cancel a complete delegate
        assertFalse(delegates.get(0).cancel(true));
        // Cancel the delegate before the input future is done
        assertTrue(delegates.get(1).cancel(true));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
Back to Top