java.lang.Object
net.i2p.router.update.ConsoleUpdateManager.UpdateItem
Enclosing class:
ConsoleUpdateManager

static class ConsoleUpdateManager.UpdateItemextends Object
Equals on type and ID only.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final String
    The plugin name, or an empty string for non-plugin updates.
    The update type this item identifies.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Identify an installed update by type and plugin name.
  • Method Summary

    All Methods
    Modifier and Type
    Method
    Description
    boolean
    Compares the type and id only.
    int
    Hash code consistent with equals().
    Returns the type, with the plugin name appended when there is one.

    Methods inherited from class Object

    clone, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • type

      public final UpdateType type
      The update type this item identifies.
    • id

      public final String id
      The plugin name, or an empty string for non-plugin updates.
  • Constructor Details

    • UpdateItem

      public UpdateItem(UpdateType t, String id)
      Identify an installed update by type and plugin name.
      Parameters:
      t - the update type
      id - the plugin name, or empty for the type itself
  • Method Details

    • hashCode

      public int hashCode()
      Hash code consistent with equals().
      Overrides:
      hashCode in class Object
      Returns:
      a hash code consistent with equals()
    • equals

      public boolean equals(Object o)
      Compares the type and id only.
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Returns the type, with the plugin name appended when there is one.
      Overrides:
      toString in class Object