Searched defs:offer (Results 1 - 20 of 20) sorted by relevance

/libcore/luni/src/main/java/java/util/
H A DQueue.java35 * <td>{@link #offer offer(e)}</td>
61 * <p>The {@link #offer offer} method inserts an element if possible,
65 * <tt>offer</tt> method is designed for use when failure is a normal,
151 boolean offer(E e); method in interface:Queue
H A DDeque.java88 * <td>{@link java.util.Queue#offer offer(e)}</td>
358 * use {@link #offer(Object) offer}.
396 boolean offer(E e); method in interface:Deque
H A DArrayDeque.java394 * @return <tt>true</tt> (as specified by {@link Queue#offer})
397 public boolean offer(E e) { method in class:ArrayDeque
H A DPriorityQueue.java187 public boolean offer(E o) { method in class:PriorityQueue
270 return offer(o);
H A DLinkedList.java890 public boolean offer(E o) { method in class:LinkedList
H A DCollections.java2774 @Override public boolean offer(E o) { method in class:Collections.AsLIFOQueue
/libcore/luni/src/main/java/java/util/concurrent/
H A DBlockingQueue.java44 * <td>{@link #offer offer(e)}</td>
46 * <td>{@link #offer(Object, long, TimeUnit) offer(e, time, unit)}</td>
66 * to {@code add}, {@code put} or {@code offer} a {@code null}. A
159 * use {@link #offer(Object) offer}.
190 boolean offer(E e); method in interface:BlockingQueue
224 boolean offer(E e, long timeout, TimeUnit unit) method in interface:BlockingQueue
H A DBlockingDeque.java116 * <td>{@link #offer(Object) offer(e)}</td>
124 * <td>{@link #offer(Object, long, TimeUnit) offer(e, time, unit)}</td>
411 * use {@link #offer(Object) offer}.
443 boolean offer(E e); method in interface:BlockingDeque
480 boolean offer(E e, long timeout, TimeUnit unit) method in interface:BlockingDeque
H A DDelayQueue.java98 return offer(e);
108 public boolean offer(E e) { method in class:DelayQueue
112 q.offer(e);
131 offer(e);
144 public boolean offer(E e, long timeout, TimeUnit unit) { method in class:DelayQueue
145 return offer(e);
H A DConcurrentLinkedQueue.java265 return offer(e);
291 * @return {@code true} (as specified by {@link Queue#offer})
294 public boolean offer(E e) { method in class:ConcurrentLinkedQueue
H A DLinkedBlockingQueue.java54 * entry to put (and offer), and has an associated condition for
128 /** Lock held by put, offer, etc */
135 * Signals a waiting take. Called only from put/offer (which do not
340 public boolean offer(E e, long timeout, TimeUnit unit) method in class:LinkedBlockingQueue
378 public boolean offer(E e) { method in class:LinkedBlockingQueue
H A DPriorityBlockingQueue.java424 return offer(e);
432 * @return {@code true} (as specified by {@link Queue#offer})
438 public boolean offer(E e) { method in class:PriorityBlockingQueue
472 offer(e); // never need to block
484 * {@link BlockingQueue#offer(Object,long,TimeUnit) BlockingQueue.offer})
490 public boolean offer(E e, long timeout, TimeUnit unit) { method in class:PriorityBlockingQueue
491 return offer(e); // never need to block
H A DLinkedBlockingDeque.java593 * it is generally preferable to use method {@link #offer(Object) offer}.
609 public boolean offer(E e) { method in class:LinkedBlockingDeque
625 public boolean offer(E e, long timeout, TimeUnit unit) method in class:LinkedBlockingDeque
H A DArrayBlockingQueue.java70 /** items index for next put, offer, or add */
278 public boolean offer(E e) { method in class:ArrayBlockingQueue
322 public boolean offer(E e, long timeout, TimeUnit unit) method in class:ArrayBlockingQueue
H A DConcurrentLinkedDeque.java978 * @return {@code true} (as specified by {@link Queue#offer})
981 public boolean offer(E e) { method in class:ConcurrentLinkedDeque
H A DLinkedTransferQueue.java245 * of offer, put, poll, take, or transfer (each possibly with
269 * poll/offer, (argument "how" is NOW) return.
554 private static final int ASYNC = 1; // for offer, put, add
1016 * {@link java.util.concurrent.BlockingQueue#offer(Object,long,TimeUnit)
1017 * BlockingQueue.offer})
1020 public boolean offer(E e, long timeout, TimeUnit unit) { method in class:LinkedTransferQueue
1029 * @return {@code true} (as specified by {@link Queue#offer})
1032 public boolean offer(E e) { method in class:LinkedTransferQueue
1292 offer(item);
H A DScheduledThreadPoolExecutor.java1002 public boolean offer(Runnable x) { method in class:ScheduledThreadPoolExecutor.DelayedWorkQueue
1030 offer(e);
1034 return offer(e);
1037 public boolean offer(Runnable e, long timeout, TimeUnit unit) { method in class:ScheduledThreadPoolExecutor.DelayedWorkQueue
1038 return offer(e);
H A DSynchronousQueue.java402 * SynchronousQueue.{poll/offer} don't check interrupts
862 public boolean offer(E e, long timeout, TimeUnit unit) method in class:SynchronousQueue
881 public boolean offer(E e) { method in class:SynchronousQueue
/libcore/jsr166-tests/src/test/java/jsr166/
H A DAbstractQueueTest.java31 public boolean offer(Integer x) { method in class:AbstractQueueTest.Succeed
42 public boolean offer(Integer x) { method in class:AbstractQueueTest.Fail
53 * add returns true if offer succeeds
61 * add throws ISE true if offer fails
72 * add throws NPE if offer does
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DAbstractQueueTest.java74 public boolean offer(E o) { method in class:AbstractQueueTest.MockAbstractQueue

Completed in 245 milliseconds