java.lang.Object
net.i2p.router.peermanager.ProfileOrganizer.CandidateSet
Enclosing class:
ProfileOrganizer

private static final class ProfileOrganizer.CandidateSetextends Object
Result of ProfileOrganizer.buildCandidateProfiles(long, long, long, long, long): the candidate set plus the totals and counts consumed by the threshold and logging sections.
  • Field Details

    • profiles

      final Set<PeerProfile> profiles
      The candidate profiles.
    • totalIntegration

      final double totalIntegration
      Total integration value across the candidates.
    • expiredCount

      final int expiredCount
      Candidates whose profiles have expired.
    • profileCount

      final int profileCount
      Total profiles held by the organizer.
  • Constructor Details

    • CandidateSet

      CandidateSet(Set<PeerProfile> profiles, double totalIntegration, int expiredCount, int profileCount)
      Holds one candidate pool and its totals.
      Parameters:
      profiles - the candidate profiles
      totalIntegration - integration summed over the candidates
      expiredCount - candidates with expired profiles
      profileCount - total profiles held