def __init__(self, sourceCollection=None): self._front = None self._rear = None AbstractQueue.__init__(self, sourceCollection)
def __init__(self, items = None): self.clear() AbstractQueue.__init__(self, items)
def __init__(self, sourceCollection = None): self._items = Array(ArrayQueue2.DEFAULT_CAPACITY) AbstractQueue.__init__(self, sourceCollection) self._front = 0 self._rear = max(len(self) - 1, 0)