public void Enqueue(T elem) { lock (innerList) { innerList.add(elem); numberOfElements++; } }
public void Enqueue(T elem) { lock (innerList) { innerList.add(elem); IncreaseSize(); } }