java.lang.Object
net.i2p.router.update.ConsoleUpdateManager.RegisteredUpdater
- All Implemented Interfaces:
Comparable<ConsoleUpdateManager.RegisteredUpdater>
- Enclosing class:
ConsoleUpdateManager
static class ConsoleUpdateManager.RegisteredUpdaterextends Object implements Comparable<ConsoleUpdateManager.RegisteredUpdater>
Equals on updater, type and method only.
Field Summary
FieldsModifier and TypeFieldDescriptionfinal UpdateMethodThe update method this registration was made for.final intHigher priorities are consulted first.final UpdateTypeThe update type this registration serves.final UpdaterThe Updater this registration invokes.Constructor Summary
ConstructorsConstructorDescriptionRegisteredUpdater(Updater u, UpdateType t, UpdateMethod m, int priority) Record an Updater for the given type, method and priority.Method Summary
All Methods
Field Details
updater
The Updater 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
RegisteredUpdater
Record an Updater for the given type, method and priority.- Parameters:
u- the updater to runt- the update type it handlesm- the fetch method it usespriority- 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.RegisteredUpdater>
hashCode
equals
toString