Code example for Condition

Methods: await

0
        } 
 
        public void await(long millisecond) throws InterruptedException {
            reentrantLock.lock();
            try { 
                loadBitmapHasBeenCalledCondition.await(millisecond, TimeUnit.MILLISECONDS);
            } finally { 
                reentrantLock.unlock();
            } 
        } 
 
        public boolean isLoadBitmapHasBeenCalled() { 
            return loadBitmapHasBeenCalled;
        } 
 
        @Override 
        public SpiceListItemView<DataUnderTest> createView(Context context, ViewGroup parent) {
            return new ListItemViewStub(getContext());
        } 
    }