/** * Whether or not the current value is null or not. If this is true and the * next call to {@link #take()} or {@link #take(long, TimeUnit)} will not * block. * * @return true if the current reference is null. */ public boolean isEmpty() { return peek() == null; }