java.lang.Object
net.i2p.router.news.NewsMetadata.Update
- All Implemented Interfaces:
Comparable<NewsMetadata.Update>
- Enclosing class:
NewsMetadata
Represents an update source with multiple distribution methods.
Defines update types and their associated distribution sources including torrent, clearnet, SSL, and I2P network URLs. Supports type-based ordering for update priority management.
All source lists may be empty if no sources are available for this update type.
Field Summary
Constructor Summary
ConstructorsConstructorDescriptionUpdate()Every field is left null; the Atom parser fills in whichever of the source URLs the update element actually carries.Method Summary
Public MethodsModifier and TypeMethodDescriptionintcompareTo(NewsMetadata.Update other) booleanFor findbugs.protected intGet the numeric order for this update type.inthashCode()For findbugs.
Field Details
type
The update type (su3, su2, etc.).torrent
The torrent source URL.clearnet
ssl
i2pnet
Constructor Details
Update
public Update()Every field is left null; the Atom parser fills in whichever of the source URLs the update element actually carries.
Method Details
compareTo
- Specified by:
compareToin interfaceComparable<NewsMetadata.Update>
getTypeOrder
protected int getTypeOrder()Get the numeric order for this update type. Lower is preferred.- Returns:
- the type order
equals
hashCode