Class AudioPlayer

    • Constructor Summary

      Constructors 
      Constructor Description
      AudioPlayer​(java.lang.String name, java.lang.String manufacturer, java.lang.String supportedAudioFormats, java.lang.String supportedPlaylistFormats)
      Creates a specific Audio object, extends Product so it can implement it's methods and constructor
    • Constructor Detail

      • AudioPlayer

        public AudioPlayer​(java.lang.String name,
                           java.lang.String manufacturer,
                           java.lang.String supportedAudioFormats,
                           java.lang.String supportedPlaylistFormats)
        Creates a specific Audio object, extends Product so it can implement it's methods and constructor
        Parameters:
        name - The name of the AudioPlayer
        manufacturer - The name of the Manufacturer
        supportedAudioFormats - The audio format, MP3, etc.
        supportedPlaylistFormats - The supported Playlist format
    • Method Detail

      • toString

        public java.lang.String toString()
        First the method grabs the string from the parent class and concatenates it's portion to it afterwards
        Overrides:
        toString in class Product
        Returns:
        Returns a new string including supported audio and playlist formats
      • play

        public void play()
        Outputs that the device is playing
        Specified by:
        play in interface MultimediaControl
      • stop

        public void stop()
        Outputs that the device is stopping
        Specified by:
        stop in interface MultimediaControl
      • previous

        public void previous()
        Outputs that the device is going to the previous song
        Specified by:
        previous in interface MultimediaControl
      • next

        public void next()
        Outputs that the device is going to the next song
        Specified by:
        next in interface MultimediaControl