Package org.bedework.timezones.common
Class Differ
java.lang.Object
org.bedework.timezones.common.Differ
- All Implemented Interfaces:
org.bedework.util.logging.Logged
This class provides support for diffing timezone data to determine if
updates need to be made to stored data.
- Author:
- douglm
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompare(CachedData newTzdata, CachedData currentTzdata) Compares the new set of data with the supplied current set of data.org.bedework.util.logging.BwLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, trace, warn
-
Constructor Details
-
Differ
public Differ()
-
-
Method Details
-
compare
public List<Differ.DiffListEntry> compare(CachedData newTzdata, CachedData currentTzdata) throws TzException Compares the new set of data with the supplied current set of data.- Parameters:
newTzdata- new setcurrentTzdata- current set- Returns:
- possibly empty list - never null.
- Throws:
TzException- on fatal error
-
getLogger
public org.bedework.util.logging.BwLogger getLogger()- Specified by:
getLoggerin interfaceorg.bedework.util.logging.Logged
-