Interface TimedTopperAPI


public interface TimedTopperAPI
The API of TimedTopper
  • Field Details

  • Method Details

    • getInstance

      static TimedTopperAPI getInstance()
      Get the instance of the API
      Returns:
      the instance of the API
    • getHolders

      Collection<String> getHolders()
      Get the name of the available holders
      Returns:
      the holder names
    • hasHolder

      boolean hasHolder(String holder)
      Check if the holder exists
      Parameters:
      holder - the holder
      Returns:
      true if it does
    • getData

      Map<UUID,TimedData> getData(String holder)
      Get the data of the holder
      Parameters:
      holder - the holder
      Returns:
      the data
    • getData

      Optional<TimedData> getData(String holder, UUID uuid)
      Get the data of a unique id in the holder
      Parameters:
      holder - the holder
      uuid - the unique id
      Returns:
      the data, or empty if the id doesn't exist
      Throws:
      NullPointerException - if the holder doesn't exist
    • getTimeRange

      TimeRange getTimeRange(String holder)
      Get the time range of the holder
      Parameters:
      holder - the holder
      Returns:
      the time range
      Throws:
      NullPointerException - if the holder doesn't exist