Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 636 for accept (0.18 sec)

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

      public void testAccept() {
        File dir = new File("foo");
        FilenameFilter filter = new PatternFilenameFilter("a+");
        assertTrue(filter.accept(dir, "a"));
        assertTrue(filter.accept(dir, "aaaa"));
        assertFalse(filter.accept(dir, "b"));
    
        // Show that dir is ignored
        assertTrue(filter.accept(null, "a"));
      }
    
      public void testNulls() throws Exception {
        NullPointerTester tester = new NullPointerTester();
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 2K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/FakeTicker.java

      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      @CanIgnoreReturnValue
      public FakeTicker advance(long time, TimeUnit timeUnit) {
        return advance(timeUnit.toNanos(time));
      }
    
      /** Advances the ticker value by {@code nanoseconds}. */
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      @CanIgnoreReturnValue
      public FakeTicker advance(long nanoseconds) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 14:40:46 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/net/HttpHeadersTest.java

                .put("CDN_LOOP", "CDN-Loop")
                .put("ETAG", "ETag")
                .put("SOURCE_MAP", "SourceMap")
                .put("SEC_CH_UA_WOW64", "Sec-CH-UA-WoW64")
                .put("SEC_WEBSOCKET_ACCEPT", "Sec-WebSocket-Accept")
                .put("SEC_WEBSOCKET_EXTENSIONS", "Sec-WebSocket-Extensions")
                .put("SEC_WEBSOCKET_KEY", "Sec-WebSocket-Key")
                .put("SEC_WEBSOCKET_PROTOCOL", "Sec-WebSocket-Protocol")
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Jan 17 17:41:51 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/net/HttpHeadersTest.java

                .put("CDN_LOOP", "CDN-Loop")
                .put("ETAG", "ETag")
                .put("SOURCE_MAP", "SourceMap")
                .put("SEC_CH_UA_WOW64", "Sec-CH-UA-WoW64")
                .put("SEC_WEBSOCKET_ACCEPT", "Sec-WebSocket-Accept")
                .put("SEC_WEBSOCKET_EXTENSIONS", "Sec-WebSocket-Extensions")
                .put("SEC_WEBSOCKET_KEY", "Sec-WebSocket-Key")
                .put("SEC_WEBSOCKET_PROTOCOL", "Sec-WebSocket-Protocol")
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:08:08 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/CollectSpliterators.java

          @Override
          public boolean tryAdvance(Consumer<? super T> action) {
            return delegate.tryAdvance((IntConsumer) i -> action.accept(function.apply(i)));
          }
    
          @Override
          public void forEachRemaining(Consumer<? super T> action) {
            delegate.forEachRemaining((IntConsumer) i -> action.accept(function.apply(i)));
          }
    
          @Override
          @CheckForNull
          public Spliterator<T> trySplit() {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 15:21:23 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/EvictingQueue.java

     * full queue, the queue automatically removes its head element. This is different from conventional
     * bounded queues, which either block or reject new elements when full.
     *
     * <p>This class is not thread-safe, and does not accept null elements.
     *
     * @author Kurt Alfred Kluever
     * @since 15.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class EvictingQueue<E> extends ForwardingQueue<E> implements Serializable {
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri May 12 17:52:55 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/TearDownAccepter.java

     * limitations under the License.
     */
    
    package com.google.common.testing;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.errorprone.annotations.DoNotMock;
    
    /**
     * Any object which can accept registrations of {@link TearDown} instances.
     *
     * @author Kevin Bourrillion
     * @since 10.0
     */
    @DoNotMock("Implement with a lambda")
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 19:22:18 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/Utf8.java

     * introduced in Unicode 3.1. One implication of this is that it rejects <a
     * href="http://www.unicode.org/versions/corrigendum1.html">"non-shortest form"</a> byte sequences,
     * even though the JDK decoder may accept them.
     *
     * @author Martin Buchholz
     * @author Clément Roux
     * @since 16.0
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public final class Utf8 {
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 10 14:11:51 GMT 2023
    - 7K bytes
    - Viewed (0)
  9. futures/failureaccess/src/com/google/common/util/concurrent/internal/InternalFutureFailureAccess.java

    package com.google.common.util.concurrent.internal;
    
    
    /**
     * A future that, if it fails, may <i>optionally</i> provide access to the cause of the failure.
     *
     * <p>This class is used only for micro-optimization. Standard {@code Future} utilities benefit from
     * this optimization, so there is no need to specialize methods to return or accept this type
     * instead of {@code ListenableFuture}.
     *
     * <p>This class is GWT-compatible.
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/net/HttpHeaders.java

      /** The HTTP {@code Accept} header field name. */
      public static final String ACCEPT = "Accept";
      /** The HTTP {@code Accept-Charset} header field name. */
      public static final String ACCEPT_CHARSET = "Accept-Charset";
      /** The HTTP {@code Accept-Encoding} header field name. */
      public static final String ACCEPT_ENCODING = "Accept-Encoding";
      /** The HTTP {@code Accept-Language} header field name. */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:08:08 GMT 2024
    - 34.3K bytes
    - Viewed (0)
Back to top