示例#1
0
 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)
示例#3
0
 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)