/** * Query the queue whether it is empty right now. * * This method can be used from any thread. * * @return true if queue was empty at some point in the past */ public final boolean isEmpty() { return peek() == null; }
/** * Query the queue whether it is empty right now. * * This method can be used from any thread. * * @return true if queue was empty at some point in the past */ public final boolean isEmpty() { return peek() == null; }
/** * Query the queue whether it is empty right now. * * This method can be used from any thread. * * @return true if queue was empty at some point in the past */ public final boolean isEmpty() { return peek() == null; }
public final boolean isEmpty() { return peek() == null; }
public final boolean isEmpty() { return peek() == null; }