Package devices

Class AudioSpeaker

  • All Implemented Interfaces:
    Item

    public class AudioSpeaker
    extends Product
    Speaker Object that Retains information on the Speaker created. Speaker objects like headphones, Mobile Speakers, Car speakers, etc.
    Author:
    Brandon Heck
    • Constructor Detail

      • AudioSpeaker

        public AudioSpeaker​(Widget widget,
                            SpeakerType speakerType)
        Constructor for a Speaker Object.
        Parameters:
        widget - Widget Information.
        speakerType - item type of device.
    • Method Detail

      • getSpeakerType

        public SpeakerType getSpeakerType()
        Retrieve the Speaker Type.
        Returns:
        Speaker Type.
      • getInfo

        public java.lang.String getInfo()
        Additional product information when called by product.
        Returns:
        Speaker Details.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Product