Package PamguardMVC
Class DefaultUnitMatcher
java.lang.Object
PamguardMVC.DefaultUnitMatcher
- All Implemented Interfaces:
DataUnitMatcher
Default data unit matcher for use with
DataUnitFinder
Matches clicks on time and possibly also channel/sequence number
depending on the number of arguments supplied.
- Author:
- Doug Gillespie
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
match
(PamDataUnit dataUnit, Object... criteria) Return an int, so we can see if we should move forwrard of back.
-
Constructor Details
-
DefaultUnitMatcher
public DefaultUnitMatcher()
-
-
Method Details
-
match
Description copied from interface:DataUnitMatcher
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.- Specified by:
match
in interfaceDataUnitMatcher
- Returns:
-