net.i2p.router.news

## Class NewsMetadata.Update

- java.lang.Object
- - net.i2p.router.news.NewsMetadata.Update

- All Implemented Interfaces:
    Comparable<NewsMetadata.Update>
  Enclosing class:
    NewsMetadata

      public static class NewsMetadata.Update
      extends Object
      implements Comparable<NewsMetadata.Update>

  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

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `List<String>` | `clearnet` Stored as of 0.9.52, but there is no registered handler
    `List<String>` | `i2pnet` In-net URLs
    `List<String>` | `ssl` Stored as of 0.9.52, but there is no registered handler
    `String` | `torrent`
    `String` | `type`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Update()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compareTo(NewsMetadata.Update other)`
    `boolean` | `equals(Object o)` For findbugs.
    `protected int` | `getTypeOrder()` lower is preferred
    `int` | `hashCode()` For findbugs.

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### clearnet

          public List<String> clearnet

      Stored as of 0.9.52, but there is no registered handler

    - #### i2pnet

          public List<String> i2pnet

      In-net URLs

    - #### ssl

          public List<String> ssl

      Stored as of 0.9.52, but there is no registered handler

    - #### torrent

          public String torrent

    - #### type

          public String type

  - ### Constructor Detail

    - #### Update

          public Update()

  - ### Method Detail

    - #### compareTo

          public int compareTo(NewsMetadata.Update other)

      Specified by:
        `compareTo` in interface `Comparable<NewsMetadata.Update>`

    - #### equals

          public boolean equals(Object o)

      For findbugs. Warning, not a complete comparison. Must be enhanced before using in a Map or Set.
      Overrides:
        `equals` in class `Object`

    - #### getTypeOrder

          protected int getTypeOrder()

      lower is preferred

    - #### hashCode

          public int hashCode()

      For findbugs.
      Overrides:
        `hashCode` in class `Object`