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