Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 79 for offerer (0.87 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/QueueOfferTester.java

      public void testOffer_supportedNotPresent() {
        assertTrue("offer(notPresent) should return true", getQueue().offer(e3()));
        expectAdded(e3());
      }
    
      @CollectionFeature.Require({SUPPORTS_ADD, ALLOWS_NULL_VALUES})
      public void testOffer_nullSupported() {
        assertTrue("offer(null) should return true", getQueue().offer(null));
        expectAdded((E) null);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

     *
     * <ul>
     *   <li>Memory footprint has a fixed overhead (about 24 bytes per instance).
     *   <li><i>Some</i> construction use cases force the data to be copied (though several construction
     *       APIs are offered that don't).
     *   <li>Can't be passed directly to methods that expect {@code int[]} (though the most common
     *       utilities do have replacements here).
     *   <li>Dependency on {@code com.google.common} / Guava.
     * </ul>
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ForwardingQueue.java

     * methods of the delegate. For example, overriding {@link #add} alone <b>will not</b> change the
     * behavior of {@link #offer} which can lead to unexpected behavior. In this case, you should
     * override {@code offer} as well, either providing your own implementation, or delegating to the
     * provided {@code standardOffer} method.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 29 19:42:21 GMT 2021
    - 4.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

     *
     * <ul>
     *   <li>Memory footprint has a fixed overhead (about 24 bytes per instance).
     *   <li><i>Some</i> construction use cases force the data to be copied (though several construction
     *       APIs are offered that don't).
     *   <li>Can't be passed directly to methods that expect {@code double[]} (though the most common
     *       utilities do have replacements here).
     *   <li>Dependency on {@code com.google.common} / Guava.
     * </ul>
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ForwardingBlockingDeque.java

     * to the methods of the delegate. For example, overriding {@link #add} alone <b>will not</b> change
     * the behaviour of {@link #offer} which can lead to unexpected behaviour. In this case, you should
     * override {@code offer} as well, either providing your own implementation, or delegating to the
     * provided {@code standardOffer} method.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/SynchronizedQueueTest.java

      private static final class TestQueue<E> implements Queue<E> {
        private final Queue<E> delegate = Lists.newLinkedList();
        public Object mutex;
    
        @Override
        public boolean offer(E o) {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.offer(o);
        }
    
        @Override
        public @Nullable E poll() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.poll();
        }
    
        @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ForwardingDeque.java

     * methods of the delegate. For example, overriding {@link #add} alone <b>will not</b> change the
     * behavior of {@link #offer} which can lead to unexpected behavior. In this case, you should
     * override {@code offer} as well.
     *
     * <p><b>{@code default} method warning:</b> This class does <i>not</i> forward calls to {@code
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/SettableFuture.java

     * utility methods, or {@link ListenableFutureTask}. Those APIs have less opportunity for developer
     * error. If your needs are more complex than {@code SettableFuture} supports, use {@link
     * AbstractFuture}, which offers an extensible version of the API.
     *
     * @author Sven Mawson
     * @since 9.0 (in 1.0 as {@code ValueFuture})
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 01 17:18:04 GMT 2021
    - 2.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/ByteArrayDataOutput.java

    import com.google.common.annotations.J2ktIncompatible;
    import java.io.DataOutput;
    import java.io.IOException;
    
    /**
     * An extension of {@code DataOutput} for writing to in-memory byte arrays; its methods offer
     * identical functionality but do not throw {@link IOException}.
     *
     * @author Jayaprabhakar Kadarkarai
     * @since 1.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

        if (!requestQueue.offer(
            new Request(methodName, arguments), TIMEOUT_MILLIS, TimeUnit.MILLISECONDS)) {
          throw new TimeoutException();
        }
      }
    
      /**
       * Receives a response from this thread.
       *
       * @throws TimeoutException if this thread does not offer a response within a reasonable amount of
       *     time
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.9K bytes
    - Viewed (0)
Back to top