Class Leaderboard


  • public class Leaderboard
    extends Resource
    A collection of runs sorted by ranking as they would appear on SRC. Does not contain obsoleted runs.

    This class is immutable and thread-safe.
    • Method Detail

      • getWeblink

        public String getWeblink()
        Gets the link to this leaderboard on SRC.
        SRC API currently returns a link that does not work!
        Returns:
        a link to the leaderboard on SRC
      • getEmulators

        public Optional<Boolean> getEmulators()
        Gets whether runs using an emulator were filtered out.
        Returns:
        false if runs using an emulator were filtered out, otherwise true
      • isVideoOnly

        public boolean isVideoOnly()
        If runs with no video were filtered out, returns true, otherwise false.
        Returns:
        true if the 'videos only' filter was set, otherwise false
      • getTiming

        public Optional<TimingType> getTiming()
        Gets the TimingType that was used to sort the runs from getRuns().
        Returns:
        the TimingType that the runs were sorted by, empty if not specified
        See Also:
        TimingType
      • getValues

        public Map<String,​String> getValues()
        Gets a mapping of variable IDs to variable value IDs.
        Returns:
        an unmodifiable Map with keys being variable IDs and values being variable values
        See Also:
        Variable
      • getRuns

        public List<LeaderboardRun> getRuns()
        Gets all runs on the leaderboard. Runs are sorted by place on the leaderboard.
        Returns:
        an unmodifiable List with all runs on this leaderboard
        See Also:
        LeaderboardRun