Search algorithms need to implement interface SearchAlgorithm
while usually implementing OrderedSearchAlgorithm
or EqualitySearchAlgorithm
Algorithm
Method Summary | |
int |
getCurrentSize()
Return the current number of items in the data structure. |
java.util.Enumeration |
getKeys()
getKeys should return an Enumeration that
can iterate through the keys. |
java.util.Enumeration |
getValues()
getValues should return and Enumeration
that can iterate through values. |
void |
initialize(int maxSize)
initialize will be called to set the maximum
size for algorithms that must create fixed-size space. |
Methods inherited from interface edu.gwu.algtest.Algorithm |
getName, setPropertyExtractor |
Method Detail |
public void initialize(int maxSize)
initialize
will be called to set the maximum
size for algorithms that must create fixed-size space.maxSize
- an int
valuepublic int getCurrentSize()
int
valuepublic java.util.Enumeration getKeys()
getKeys
should return an Enumeration that
can iterate through the keys.Enumeration
valuepublic java.util.Enumeration getValues()
getValues
should return and Enumeration
that can iterate through values.Enumeration
value