@Test public void testEmptyQueue() { assertThat(toTest.size()) .isZero(); assertThatThrownBy(toTest::peekMinimum) .isInstanceOf(IllegalStateException.class); assertThatThrownBy(toTest::dequeueMinimum) .isInstanceOf(IllegalStateException.class); }
@Override public int size() { return size; }
ArrayHeap implements Heap<T> { @Override public int size() { return size; } }
ArrayHeap implements Heap<T> { @Override public int size() { return size; } ArrayHeap(final int maxSize); }
ArrayHeap implements Heap<T> { @Override public int size() { return size; } ArrayHeap(final int maxSize); @Override void enqueue(final T value); @Override T dequeueMinimum(); @Override T peekMinimum(); @Override int size(); }
ArrayHeap implements Heap<T> { @Override public int size() { return size; } ArrayHeap(final int maxSize); @Override void enqueue(final T value); @Override T dequeueMinimum(); @Override T peekMinimum(); @Override int size();  }