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