All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.bjoernpetersen.jmusicbot.PlaybackSupplier Maven / Gradle / Ivy

There is a newer version: 0.25.0
Show newest version
package com.github.bjoernpetersen.jmusicbot;

import com.github.bjoernpetersen.jmusicbot.playback.Playback;
import java.io.IOException;
import javax.annotation.Nonnull;

@FunctionalInterface
public interface PlaybackSupplier {

  /**
   * Supplies the playback object for the specified song.
   *
   * @param song a song
   * @return a Playback object
   * @throws IOException if the playback could not be created
   */
  @Nonnull
  Playback supply(Song song) throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy