Package PamguardMVC
Interface DataUnitMatcher
- All Known Implementing Classes:
BinaryFileMatcher
,DatabaseIndexUnitFinder
,DefaultUnitMatcher
public interface DataUnitMatcher
Class for matching data units to a set of other
criteria. Is used by DataUnitFinder
- Author:
- Doug Gillespie
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionint
match
(PamDataUnit dataUnit, Object... criteria) Return an int, so we can see if we should move forwrard of back.
-
Method Details
-
match
Return an int, so we can see if we should move forwrard of back. Similar behaviour to a Java Comparator, where >0 means that the criteria are greater than the dataUnit, probably meaning we're too far into the list, so should back up, invalid input: '<'= meaning we're not far enough, and 0 meaning a match.- Parameters:
dataUnit
-criteria
-- Returns:
-