java.lang.Object
org.klomp.snark.web.I2PSnarkServlet.PeerRowContext
Enclosing class:
I2PSnarkServlet

static class I2PSnarkServlet.PeerRowContextextends Object
Immutable context for rendering a peer row. Package-visible for testing.
  • Field Details

    • snark

      final Snark snark
      The torrent the peer belongs to.
    • meta

      final MetaInfo meta
      The torrent metadata, null for magnet links.
    • noThinsp

      final boolean noThinsp
      Omit thin spaces, for narrow layouts.
  • Constructor Details

    • PeerRowContext

      PeerRowContext(Snark snark, MetaInfo meta, boolean noThinsp)
      Captures the torrent and metadata needed to render one peer row.
      Parameters:
      snark - the torrent the peer belongs to
      meta - the torrent metadata, null for magnet links
      noThinsp - omit thin spaces, for narrow layouts