1 /*
2  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3  *
4  * This code is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License version 2 only, as
6  * published by the Free Software Foundation.  Oracle designates this
7  * particular file as subject to the "Classpath" exception as provided
8  * by Oracle in the LICENSE file that accompanied this code.
9  *
10  * This code is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13  * version 2 for more details (a copy is included in the LICENSE file that
14  * accompanied this code).
15  *
16  * You should have received a copy of the GNU General Public License version
17  * 2 along with this work; if not, write to the Free Software Foundation,
18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19  *
20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21  * or visit www.oracle.com if you need additional information or have any
22  * questions.
23  */
24 
25 /*
26  * This file is available under and governed by the GNU General Public
27  * License version 2 only, as published by the Free Software Foundation.
28  * However, the following notice accompanied the original version of this
29  * file:
30  *
31  * Written by Doug Lea with assistance from members of JCP JSR-166
32  * Expert Group and released to the public domain, as explained at
33  * http://creativecommons.org/publicdomain/zero/1.0/
34  */
35 
36 package java.util.concurrent;
37 
38 import android.compat.annotation.UnsupportedAppUsage;
39 
40 @SuppressWarnings({"unchecked", "deprecation", "all"})
41 public class LinkedBlockingQueue<E> extends java.util.AbstractQueue<E>
42         implements java.util.concurrent.BlockingQueue<E>, java.io.Serializable {
43 
LinkedBlockingQueue()44     public LinkedBlockingQueue() {
45         throw new RuntimeException("Stub!");
46     }
47 
LinkedBlockingQueue(int capacity)48     public LinkedBlockingQueue(int capacity) {
49         throw new RuntimeException("Stub!");
50     }
51 
LinkedBlockingQueue(java.util.Collection<? extends E> c)52     public LinkedBlockingQueue(java.util.Collection<? extends E> c) {
53         throw new RuntimeException("Stub!");
54     }
55 
signalNotEmpty()56     private void signalNotEmpty() {
57         throw new RuntimeException("Stub!");
58     }
59 
signalNotFull()60     private void signalNotFull() {
61         throw new RuntimeException("Stub!");
62     }
63 
enqueue(java.util.concurrent.LinkedBlockingQueue.Node<E> node)64     private void enqueue(java.util.concurrent.LinkedBlockingQueue.Node<E> node) {
65         throw new RuntimeException("Stub!");
66     }
67 
dequeue()68     private E dequeue() {
69         throw new RuntimeException("Stub!");
70     }
71 
fullyLock()72     void fullyLock() {
73         throw new RuntimeException("Stub!");
74     }
75 
fullyUnlock()76     void fullyUnlock() {
77         throw new RuntimeException("Stub!");
78     }
79 
size()80     public int size() {
81         throw new RuntimeException("Stub!");
82     }
83 
remainingCapacity()84     public int remainingCapacity() {
85         throw new RuntimeException("Stub!");
86     }
87 
put(E e)88     public void put(E e) throws java.lang.InterruptedException {
89         throw new RuntimeException("Stub!");
90     }
91 
offer(E e, long timeout, java.util.concurrent.TimeUnit unit)92     public boolean offer(E e, long timeout, java.util.concurrent.TimeUnit unit)
93             throws java.lang.InterruptedException {
94         throw new RuntimeException("Stub!");
95     }
96 
offer(E e)97     public boolean offer(E e) {
98         throw new RuntimeException("Stub!");
99     }
100 
take()101     public E take() throws java.lang.InterruptedException {
102         throw new RuntimeException("Stub!");
103     }
104 
poll(long timeout, java.util.concurrent.TimeUnit unit)105     public E poll(long timeout, java.util.concurrent.TimeUnit unit)
106             throws java.lang.InterruptedException {
107         throw new RuntimeException("Stub!");
108     }
109 
poll()110     public E poll() {
111         throw new RuntimeException("Stub!");
112     }
113 
peek()114     public E peek() {
115         throw new RuntimeException("Stub!");
116     }
117 
unlink( java.util.concurrent.LinkedBlockingQueue.Node<E> p, java.util.concurrent.LinkedBlockingQueue.Node<E> trail)118     void unlink(
119             java.util.concurrent.LinkedBlockingQueue.Node<E> p,
120             java.util.concurrent.LinkedBlockingQueue.Node<E> trail) {
121         throw new RuntimeException("Stub!");
122     }
123 
remove(java.lang.Object o)124     public boolean remove(java.lang.Object o) {
125         throw new RuntimeException("Stub!");
126     }
127 
contains(java.lang.Object o)128     public boolean contains(java.lang.Object o) {
129         throw new RuntimeException("Stub!");
130     }
131 
toArray()132     public java.lang.Object[] toArray() {
133         throw new RuntimeException("Stub!");
134     }
135 
toArray(T[] a)136     public <T> T[] toArray(T[] a) {
137         throw new RuntimeException("Stub!");
138     }
139 
toString()140     public java.lang.String toString() {
141         throw new RuntimeException("Stub!");
142     }
143 
clear()144     public void clear() {
145         throw new RuntimeException("Stub!");
146     }
147 
drainTo(java.util.Collection<? super E> c)148     public int drainTo(java.util.Collection<? super E> c) {
149         throw new RuntimeException("Stub!");
150     }
151 
drainTo(java.util.Collection<? super E> c, int maxElements)152     public int drainTo(java.util.Collection<? super E> c, int maxElements) {
153         throw new RuntimeException("Stub!");
154     }
155 
iterator()156     public java.util.Iterator<E> iterator() {
157         throw new RuntimeException("Stub!");
158     }
159 
spliterator()160     public java.util.Spliterator<E> spliterator() {
161         throw new RuntimeException("Stub!");
162     }
163 
writeObject(java.io.ObjectOutputStream s)164     private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
165         throw new RuntimeException("Stub!");
166     }
167 
readObject(java.io.ObjectInputStream s)168     private void readObject(java.io.ObjectInputStream s)
169             throws java.lang.ClassNotFoundException, java.io.IOException {
170         throw new RuntimeException("Stub!");
171     }
172 
173     @UnsupportedAppUsage
174     private final int capacity;
175 
176     {
177         capacity = 0;
178     }
179 
180     private final java.util.concurrent.atomic.AtomicInteger count;
181 
182     {
183         count = null;
184     }
185 
186     @UnsupportedAppUsage
187     transient java.util.concurrent.LinkedBlockingQueue.Node<E> head;
188 
189     private transient java.util.concurrent.LinkedBlockingQueue.Node<E> last;
190 
191     private final java.util.concurrent.locks.Condition notEmpty;
192 
193     {
194         notEmpty = null;
195     }
196 
197     private final java.util.concurrent.locks.Condition notFull;
198 
199     {
200         notFull = null;
201     }
202 
203     @UnsupportedAppUsage
204     private final java.util.concurrent.locks.ReentrantLock putLock;
205 
206     {
207         putLock = null;
208     }
209 
210     private static final long serialVersionUID = -6903933977591709194L; // 0xa0304ca040e581f6L
211 
212     @UnsupportedAppUsage
213     private final java.util.concurrent.locks.ReentrantLock takeLock;
214 
215     {
216         takeLock = null;
217     }
218 
219     @SuppressWarnings({"unchecked", "deprecation", "all"})
220     private class Itr implements java.util.Iterator<E> {
221 
Itr()222         Itr() {
223             throw new RuntimeException("Stub!");
224         }
225 
hasNext()226         public boolean hasNext() {
227             throw new RuntimeException("Stub!");
228         }
229 
next()230         public E next() {
231             throw new RuntimeException("Stub!");
232         }
233 
remove()234         public void remove() {
235             throw new RuntimeException("Stub!");
236         }
237 
238         private java.util.concurrent.LinkedBlockingQueue.Node<E> current;
239 
240         private E currentElement;
241 
242         private java.util.concurrent.LinkedBlockingQueue.Node<E> lastRet;
243     }
244 
245     @SuppressWarnings({"unchecked", "deprecation", "all"})
246     static final class LBQSpliterator<E> implements java.util.Spliterator<E> {
247 
LBQSpliterator(java.util.concurrent.LinkedBlockingQueue<E> queue)248         LBQSpliterator(java.util.concurrent.LinkedBlockingQueue<E> queue) {
249             throw new RuntimeException("Stub!");
250         }
251 
estimateSize()252         public long estimateSize() {
253             throw new RuntimeException("Stub!");
254         }
255 
trySplit()256         public java.util.Spliterator<E> trySplit() {
257             throw new RuntimeException("Stub!");
258         }
259 
forEachRemaining(java.util.function.Consumer<? super E> action)260         public void forEachRemaining(java.util.function.Consumer<? super E> action) {
261             throw new RuntimeException("Stub!");
262         }
263 
tryAdvance(java.util.function.Consumer<? super E> action)264         public boolean tryAdvance(java.util.function.Consumer<? super E> action) {
265             throw new RuntimeException("Stub!");
266         }
267 
characteristics()268         public int characteristics() {
269             throw new RuntimeException("Stub!");
270         }
271 
272         static final int MAX_BATCH = 33554432; // 0x2000000
273 
274         int batch;
275 
276         java.util.concurrent.LinkedBlockingQueue.Node<E> current;
277 
278         long est;
279 
280         boolean exhausted;
281 
282         final java.util.concurrent.LinkedBlockingQueue<E> queue;
283 
284         {
285             queue = null;
286         }
287     }
288 
289     @SuppressWarnings({"unchecked", "deprecation", "all"})
290     static class Node<E> {
291 
Node(E x)292         Node(E x) {
293             throw new RuntimeException("Stub!");
294         }
295 
296         E item;
297 
298         java.util.concurrent.LinkedBlockingQueue.Node<E> next;
299     }
300 }
301