java.lang.Objectcz.muni.fi.pb162.radio.parts.Speaker
public class Speaker
A speaker with ability to change the volume to change the volume to values from zero up to maximal volume
Constructor Summary | |
---|---|
Speaker(int maxVolume)
Constructor for speaker |
Method Summary | |
---|---|
int |
getVolume()
|
void |
setVolume(int volume)
Set the volume of the speaker, if the value is out of range, it is ignored |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Speaker(int maxVolume)
maxVolume
- desired maximal volume of the speakerMethod Detail |
---|
public int getVolume()
public void setVolume(int volume)
volume
-