/** * Returns true if the queue is empty, otherwise false * * @return true if the queue is empty, false otherwise */ public boolean isEmtpy() { return depth() == 0; }
/** * Returns true if the queue is empty, otherwise false * * @return true if the queue is empty, false otherwise */ public boolean isEmtpy() { return depth() == 0; }
/** * {@inheritDoc} */ public TimeStampedCounterValue[] getAllSampleValues() { return this.history.toArray(new TimeStampedCounterValue[this.history.depth()]); }
/** * {@inheritDoc} */ public TimeStampedCounterValue[] getAllSampleValues() { return this.history.toArray(new TimeStampedCounterValue[this.history.depth()]); }
/** * Returns value at the tail of the queue * * @return Value at the tail of the queue */ public T peek() { if (depth() == 0) { return null; } return circularArray[getIndex(getCurrentIndex())].get(); }
/** * Returns value at the tail of the queue * * @return Value at the tail of the queue */ public T peek() { if (depth() == 0) { return null; } return circularArray[getIndex(getCurrentIndex())].get(); }