@Test public void getOldestTime() { assertEquals(1L, (long)queue.getOldestItemTime()); }
public Long getOldestItemTime() { E elem = this.peek(); if(elem != null) return elem.getTimeCreated(); else return null; }
TrackedPriorityBlockingQueue extends PriorityBlockingQueue<E> implements ITrackedQueue<E> { public Long getOldestItemTime() { E elem = this.peek(); if(elem != null) return elem.getTimeCreated(); else return null; } }
TrackedPriorityBlockingQueue extends PriorityBlockingQueue<E> implements ITrackedQueue<E> { public Long getOldestItemTime() { E elem = this.peek(); if(elem != null) return elem.getTimeCreated(); else return null; } TrackedPriorityBlockingQueue(); }
TrackedPriorityBlockingQueue extends PriorityBlockingQueue<E> implements ITrackedQueue<E> { public Long getOldestItemTime() { E elem = this.peek(); if(elem != null) return elem.getTimeCreated(); else return null; } TrackedPriorityBlockingQueue(); Long getOldestItemTime(); @Override boolean offer(E e); @Override E poll(); @Override boolean remove(Object o); Long getLastAddedTime(); Long getLastRemovedTime(); }
TrackedPriorityBlockingQueue extends PriorityBlockingQueue<E> implements ITrackedQueue<E> { public Long getOldestItemTime() { E elem = this.peek(); if(elem != null) return elem.getTimeCreated(); else return null; } TrackedPriorityBlockingQueue(); Long getOldestItemTime(); @Override boolean offer(E e); @Override E poll(); @Override boolean remove(Object o); Long getLastAddedTime(); Long getLastRemovedTime();  }