blob: 77f4f8d7ec05a7353f9de16bfa2af66756359921 [file] [log] [blame]
package org.apache.karaf.webconsole.osgi.log.search;
import org.apache.karaf.webconsole.osgi.log.Options;
import org.osgi.service.log.LogEntry;
public class DateToMatcher implements Matcher {
public boolean matches(LogEntry entry, Options options) {
if (options.getDateTo() != null && options.getDateTo() > 0) {
return entry.getTime() <= options.getDateTo();
}
return true;
}
}