예제 #1
0
 def __init__(self, sourceDictionary=None):
     """Will copy items to the collection from sourceDictionary
     if it's present."""
     self._array = Array(HashDict.DEFAULT_CAPACITY)
     self._foundNode = self._priorNode = None
     self._index = -1
     AbstractDict.__init__(self, sourceDictionary)
예제 #2
0
 def __init__(self, source_collection):
     """
     Will copy items to the collection from source_collection if it's present.
     :param source_collection:
     """
     self.items = list()
     AbstractDict.__init__(self, source_collection)
예제 #3
0
 def __init__(self, sourceDictionary = None):
     """Will copy items to the collection from sourceDictionary
     if it's present."""
     self._array = Array(HashDict.DEFAULT_CAPACITY)
     self._foundNode = self._priorNode = None
     self._index = -1
     AbstractDict.__init__(self, sourceDictionary)
예제 #4
0
 def __init__(self):
     """Initializes the collection."""
     self._items = list()
     AbstractDict.__init__(self)
예제 #5
0
 def __init__(self, sourceCollection = None):
     self._items = LinkedBST()
     AbstractDict.__init__(self, sourceCollection)
예제 #6
0
 def __init__(self, sourceCollection=None):
     """Will copy items to the collection from sourceDictionary
     if it's present."""
     self._items = LinkedBST()
     AbstractDict.__init__(self, sourceCollection)
예제 #7
0
 def __init__(self):
     """Initializes the collection."""
     self._items = list()
     AbstractDict.__init__(self)
예제 #8
0
 def __init__(self, sourceCollection=None):
     self._items = Array(HashDict.DEFAULT_CAPACITY)
     self._foundNode = self._priorNode = None
     self._index = -1
     AbstractDict.__init__(self, sourceCollection)
예제 #9
0
 def __init__(self, sourceCollection=None):
     self._items = list()
     AbstractDict.__init__(self, sourceCollection)
예제 #10
0
 def __init__(self, capacity=10):
     self._array = Array(capacity)
     self._foundEntry = self._priorEntry = None
     self._index = -1
     AbstractDict.__init__(self)
예제 #11
0
 def __init__(self, capacity = 10):
     self._array = Array(capacity)
     self._foundEntry = self._priorEntry = None
     self._index = -1
     AbstractDict.__init__(self)
예제 #12
0
 def __init__(self, sourceCollection = None):
     """Sets the initial state of self, which includes the
     contents of sourceCollection, if it's present."""
     # Include a reference to previous node for popping
     self._items = self._previousNode = None
     AbstractDict.__init__(self, sourceCollection)
예제 #13
0
 def __init__(self, sourceCollection = None):
     """Will copy items to the collection from sourceCollection
     if it's present."""
     self._items = list()
     AbstractDict.__init__(self, sourceCollection)
예제 #14
0
 def __init__(self, sourceCollection=None):
     self._items = self._previousNode = None
     AbstractDict.__init__(self, sourceCollection)
예제 #15
0
 def __init__(self, sourceCollection=None):
     """Sets the initial state of self, which includes the
     contents of sourceCollection, if it's present."""
     # Include a reference to previous node for popping
     self._items = self._previousNode = None
     AbstractDict.__init__(self, sourceCollection)