java.lang.Object
net.i2p.router.update.ConsoleUpdateManager.Version
net.i2p.router.update.ConsoleUpdateManager.VersionAvailable
- All Implemented Interfaces:
Comparable<ConsoleUpdateManager.Version>
- Enclosing class:
ConsoleUpdateManager
An update that exists upstream, with its download sources per method and an optional reason it cannot currently be fetched.
Field Summary
FieldsModifier and TypeFieldDescriptionWhy the update cannot be downloaded, or null when it can.final StringThe oldest installed version that can update to this one.final ConcurrentHashMap<UpdateMethod, List<URI>> Where the update can be fetched from, keyed by update method.Fields inherited from class ConsoleUpdateManager.Version
versionStrConstructor Summary
ConstructorsConstructorDescriptionVersionAvailable(String version, String constraint) Available but can't be downloaded due to constraint.VersionAvailable(String version, String min, UpdateMethod method, List<URI> updateSources) Puts the method and sources in the map.Method Summary
All MethodsMethods inherited from class ConsoleUpdateManager.Version
compareToModifier and TypeMethodDescriptionintOrders versions oldest to newest.
Field Details
minVersion
The oldest installed version that can update to this one.sourceMap
Where the update can be fetched from, keyed by update method.constraint
Why the update cannot be downloaded, or null when it can.
Constructor Details
VersionAvailable
Puts the method and sources in the map. The map may be added to later.- Parameters:
version- the available version stringmin- the minimum compatible version, or empty for nonemethod- the update method these sources belong toupdateSources- where the update can be fetched from
VersionAvailable
Method Details
equals
Also requires the argument to be a VersionAvailable.- Overrides:
equalsin classConsoleUpdateManager.Version
hashCode
public int hashCode()Hash code consistent with equals().- Overrides:
hashCodein classConsoleUpdateManager.Version- Returns:
- a hash code consistent with equals()
toString
Renders the version with its sources and any download constraint.- Overrides:
toStringin classConsoleUpdateManager.Version