Files
design-patterns/02-structural/bridge/Device.java

18 lines
431 B
Java

package bridge;
/**
* Implementor interface — the "implementation" side of the bridge.
* This is what the Abstraction delegates its real work to.
* TV, Radio, SmartSpeaker etc. all implement this.
*/
public interface Device {
boolean isEnabled();
void enable();
void disable();
int getVolume();
void setVolume(int percent);
int getChannel();
void setChannel(int channel);
String getName();
}