Interface VoteChecker

All Known Implementing Classes:
VotingCheckingService
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface VoteChecker
Asks a bot list whether a user voted for the bot.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    hasVoted(BotList botList, User user)
    Checks whether the user has an active vote on the bot list.
  • Method Details

    • hasVoted

      boolean hasVoted(BotList botList, User user)
      Checks whether the user has an active vote on the bot list.
      Parameters:
      botList - bot list to ask
      user - user to check
      Returns:
      true when the user has an active vote