Code example for SynchronousQueue

import java.util.concurrent.SynchronousQueue; 
public final class Clipboard { 
    private static Context mContext;
    private final static String LOG_TAG = "Clipboard";
    private final static SynchronousQueue<String> sClipboardQueue = new SynchronousQueue<String>();
    private Clipboard() { 
    public static void init(Context c) {
        if (mContext != null) {
            Log.w(LOG_TAG, "Clipboard.init() called twice!");
        mContext = c;
    @GeneratableAndroidBridgeTarget(stubName = "GetClipboardTextWrapper") 
    public static String getText() {
Connect your IDE to all the code out there  Get Codota for Java