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

/libcore/ojluni/src/main/java/java/util/
H A DQueue.java64 * <td>{@link Queue#offer offer(e)}</td>
90 * <p>The {@link #offer offer} method inserts an element if possible,
94 * {@code offer} method is designed for use when failure is a normal,
172 boolean offer(E e); method in interface:Queue
H A DDeque.java114 * <td>{@link java.util.Queue#offer offer(e)}</td>
389 * use {@link #offer(Object) offer}.
427 boolean offer(E e); method in interface:Deque
H A DArrayDeque.java410 * @return {@code true} (as specified by {@link Queue#offer})
413 public boolean offer(E e) { method in class:ArrayDeque
H A DPriorityQueue.java69 * ({@code offer}, {@code poll}, {@code remove()} and {@code add});
321 return offer(e);
327 * @return {@code true} (as specified by {@link Queue#offer})
333 public boolean offer(E e) { method in class:PriorityQueue
H A DLinkedList.java692 * @return {@code true} (as specified by {@link Queue#offer})
695 public boolean offer(E e) { method in class:LinkedList
H A DCollections.java3232 public boolean offer(E e) {return queue.offer(typeCheck(e));} method in class:Collections.CheckedQueue
5579 public boolean offer(E e) { return q.offerFirst(e); } method in class:Collections.AsLIFOQueue
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DBlockingQueue.java73 * <td>{@link #offer offer(e)}</td>
75 * <td>{@link #offer(Object, long, TimeUnit) offer(e, time, unit)}</td>
95 * to {@code add}, {@code put} or {@code offer} a {@code null}. A
188 * use {@link #offer(Object) offer}.
219 boolean offer(E e); method in interface:BlockingQueue
253 boolean offer(E e, long timeout, TimeUnit unit) method in interface:BlockingQueue
H A DBlockingDeque.java149 * <td>{@link #offer(Object) offer(e)}</td>
157 * <td>{@link #offer(Object, long, TimeUnit) offer(e, time, unit)}</td>
444 * use {@link #offer(Object) offer}.
476 boolean offer(E e); method in interface:BlockingDeque
513 boolean offer(E e, long timeout, TimeUnit unit) method in interface:BlockingDeque
H A DDelayQueue.java132 return offer(e);
142 public boolean offer(E e) { method in class:DelayQueue
146 q.offer(e);
165 offer(e);
178 public boolean offer(E e, long timeout, TimeUnit unit) { method in class:DelayQueue
179 return offer(e);
H A DConcurrentLinkedQueue.java280 return offer(e);
307 * @return {@code true} (as specified by {@link Queue#offer})
310 public boolean offer(E e) { method in class:ConcurrentLinkedQueue
H A DLinkedBlockingQueue.java86 * entry to put (and offer), and has an associated condition for
160 /** Lock held by put, offer, etc */
167 * Signals a waiting take. Called only from put/offer (which do not
372 public boolean offer(E e, long timeout, TimeUnit unit) method in class:LinkedBlockingQueue
410 public boolean offer(E e) { method in class:LinkedBlockingQueue
H A DPriorityBlockingQueue.java462 return offer(e);
470 * @return {@code true} (as specified by {@link Queue#offer})
476 public boolean offer(E e) { method in class:PriorityBlockingQueue
510 offer(e); // never need to block
522 * {@link BlockingQueue#offer(Object,long,TimeUnit) BlockingQueue.offer})
528 public boolean offer(E e, long timeout, TimeUnit unit) { method in class:PriorityBlockingQueue
529 return offer(e); // never need to block
H A DArrayBlockingQueue.java102 /** items index for next put, offer, or add */
308 public boolean offer(E e) { method in class:ArrayBlockingQueue
352 public boolean offer(E e, long timeout, TimeUnit unit) method in class:ArrayBlockingQueue
H A DConcurrentLinkedDeque.java976 * @return {@code true} (as specified by {@link Queue#offer})
979 public boolean offer(E e) { method in class:ConcurrentLinkedDeque
H A DLinkedBlockingDeque.java625 * it is generally preferable to use method {@link #offer(Object) offer}.
640 public boolean offer(E e) { method in class:LinkedBlockingDeque
656 public boolean offer(E e, long timeout, TimeUnit unit) method in class:LinkedBlockingDeque
H A DLinkedTransferQueue.java278 * of offer, put, poll, take, or transfer (each possibly with
302 * poll/offer, (argument "how" is NOW) return.
585 private static final int ASYNC = 1; // for offer, put, add
1258 * {@link java.util.concurrent.BlockingQueue#offer(Object,long,TimeUnit)
1259 * BlockingQueue.offer})
1262 public boolean offer(E e, long timeout, TimeUnit unit) { method in class:LinkedTransferQueue
1271 * @return {@code true} (as specified by {@link Queue#offer})
1274 public boolean offer(E e) { method in class:LinkedTransferQueue
1561 offer(item);
H A DScheduledThreadPoolExecutor.java1045 public boolean offer(Runnable x) { method in class:ScheduledThreadPoolExecutor.DelayedWorkQueue
1073 offer(e);
1077 return offer(e);
1080 public boolean offer(Runnable e, long timeout, TimeUnit unit) { method in class:ScheduledThreadPoolExecutor.DelayedWorkQueue
1081 return offer(e);
H A DSynchronousQueue.java432 * SynchronousQueue.{poll/offer} don't check interrupts
888 public boolean offer(E e, long timeout, TimeUnit unit) method in class:SynchronousQueue
907 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 170 milliseconds