@Test public void testSize() { int size = 0; assertEquals(size, queue.size()); for (int i = 0; i < 10; i++) { queue.enqueue(size++); assertEquals(size, queue.size()); } }
public int size() { synchronized (mutex) { return queueData.size(); } }
Queue extends SmppObject { public int size() { synchronized (mutex) { return queueData.size(); } } }
Queue extends SmppObject { public int size() { synchronized (mutex) { return queueData.size(); } } Queue();  Queue(int maxSize); }
Queue extends SmppObject { public int size() { synchronized (mutex) { return queueData.size(); } } Queue();  Queue(int maxSize); int size(); boolean isEmpty(); Object dequeue(); Object dequeue(Object obj); void enqueue(Object obj); Object find(Object obj); }
Queue extends SmppObject { public int size() { synchronized (mutex) { return queueData.size(); } } Queue();  Queue(int maxSize); int size(); boolean isEmpty(); Object dequeue(); Object dequeue(Object obj); void enqueue(Object obj); Object find(Object obj);  }