Example #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)
Example #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)
Example #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)
Example #4
0
 def __init__(self):
     """Initializes the collection."""
     self._items = list()
     AbstractDict.__init__(self)
 def __init__(self, sourceCollection = None):
     self._items = LinkedBST()
     AbstractDict.__init__(self, sourceCollection)
Example #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)
Example #7
0
 def __init__(self):
     """Initializes the collection."""
     self._items = list()
     AbstractDict.__init__(self)
Example #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)
Example #9
0
 def __init__(self, sourceCollection=None):
     self._items = list()
     AbstractDict.__init__(self, sourceCollection)
Example #10
0
 def __init__(self, capacity=10):
     self._array = Array(capacity)
     self._foundEntry = self._priorEntry = None
     self._index = -1
     AbstractDict.__init__(self)
Example #11
0
 def __init__(self, capacity = 10):
     self._array = Array(capacity)
     self._foundEntry = self._priorEntry = None
     self._index = -1
     AbstractDict.__init__(self)
Example #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)
Example #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)
Example #14
0
 def __init__(self, sourceCollection=None):
     self._items = self._previousNode = None
     AbstractDict.__init__(self, sourceCollection)
Example #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)