java.lang.Object
net.i2p.router.update.ConsoleUpdateManager.RegisteredChecker
- All Implemented Interfaces:
Comparable<ConsoleUpdateManager.RegisteredChecker>
- Enclosing class:
ConsoleUpdateManager
static class ConsoleUpdateManager.RegisteredCheckerextends Object implements Comparable<ConsoleUpdateManager.RegisteredChecker>
Equals on checker, type and method only.
Field Summary
FieldsModifier and TypeFieldDescriptionfinal CheckerThe Checker this registration invokes.final UpdateMethodThe update method this registration was made for.final intHigher priorities are consulted first.final UpdateTypeThe update type this registration serves.Constructor Summary
ConstructorsConstructorDescriptionRegisteredChecker(Checker u, UpdateType t, UpdateMethod m, int priority) Record a Checker for the given type, method and priority.Method Summary
All Methods
Field Details
checker
The Checker this registration invokes.type
The update type this registration serves.method
The update method this registration was made for.priority
public final int priorityHigher priorities are consulted first.
Constructor Details
RegisteredChecker
Record a Checker for the given type, method and priority.- Parameters:
u- the checker to consultt- the update type it checksm- the fetch method it reports onpriority- ordering weight, higher priorities consulted first
Method Details
compareTo
Orders by descending priority, breaking ties on hash code for a stable order.- Specified by:
compareToin interfaceComparable<ConsoleUpdateManager.RegisteredChecker>
hashCode
equals
toString