Remove redundant modifiers from interfaces (#14843)

Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
Wouter Born
2023-04-18 13:07:04 +02:00
committed by GitHub
parent 24adc5aa12
commit 83cbe746d0
174 changed files with 806 additions and 774 deletions

View File

@@ -27,93 +27,93 @@ import org.openhab.core.types.StateOption;
*/
@NonNullByDefault
public interface WledApi {
public abstract void update() throws ApiException;
void update() throws ApiException;
public abstract void initialize() throws ApiException;
void initialize() throws ApiException;
public abstract int getFirmwareVersion() throws ApiException;
int getFirmwareVersion() throws ApiException;
public abstract String sendGetRequest(String string) throws ApiException;
String sendGetRequest(String string) throws ApiException;
/**
* Turns on/off ALL segments
*/
public abstract void setGlobalOn(boolean bool) throws ApiException;
void setGlobalOn(boolean bool) throws ApiException;
/**
* Turns on/off just THIS segment
*/
public abstract void setMasterOn(boolean bool, int segmentIndex) throws ApiException;
void setMasterOn(boolean bool, int segmentIndex) throws ApiException;
/**
* Sets the brightness of ALL segments
*/
public abstract void setGlobalBrightness(PercentType percent) throws ApiException;
void setGlobalBrightness(PercentType percent) throws ApiException;
/**
* Sets the brightness of just THIS segment
*/
public abstract void setMasterBrightness(PercentType percent, int segmentIndex) throws ApiException;
void setMasterBrightness(PercentType percent, int segmentIndex) throws ApiException;
/**
* Stops any running FX and instantly changes the segment to the desired colour
*/
public abstract void setMasterHSB(HSBType hsbType, int segmentIndex) throws ApiException;
void setMasterHSB(HSBType hsbType, int segmentIndex) throws ApiException;
public abstract void setEffect(String string, int segmentIndex) throws ApiException;
void setEffect(String string, int segmentIndex) throws ApiException;
public abstract void setPreset(String string) throws ApiException;
void setPreset(String string) throws ApiException;
public abstract void setPalette(String string, int segmentIndex) throws ApiException;
void setPalette(String string, int segmentIndex) throws ApiException;
public abstract void setFxIntencity(PercentType percentType, int segmentIndex) throws ApiException;
void setFxIntencity(PercentType percentType, int segmentIndex) throws ApiException;
public abstract void setFxSpeed(PercentType percentType, int segmentIndex) throws ApiException;
void setFxSpeed(PercentType percentType, int segmentIndex) throws ApiException;
public abstract void setSleep(boolean bool) throws ApiException;
void setSleep(boolean bool) throws ApiException;
public abstract void setSleepMode(String value) throws ApiException;
void setSleepMode(String value) throws ApiException;
public abstract void setSleepDuration(BigDecimal time) throws ApiException;
void setSleepDuration(BigDecimal time) throws ApiException;
public abstract void setSleepTargetBrightness(PercentType percent) throws ApiException;
void setSleepTargetBrightness(PercentType percent) throws ApiException;
public abstract void setUdpSend(boolean bool) throws ApiException;
void setUdpSend(boolean bool) throws ApiException;
public abstract void setUdpRecieve(boolean bool) throws ApiException;
void setUdpRecieve(boolean bool) throws ApiException;
public abstract void setTransitionTime(BigDecimal time) throws ApiException;
void setTransitionTime(BigDecimal time) throws ApiException;
public abstract void setPresetCycle(boolean bool) throws ApiException;
void setPresetCycle(boolean bool) throws ApiException;
public abstract void setPrimaryColor(HSBType hsbType, int segmentIndex) throws ApiException;
void setPrimaryColor(HSBType hsbType, int segmentIndex) throws ApiException;
public abstract void setSecondaryColor(HSBType hsbType, int segmentIndex) throws ApiException;
void setSecondaryColor(HSBType hsbType, int segmentIndex) throws ApiException;
public abstract void setTertiaryColor(HSBType hsbType, int segmentIndex) throws ApiException;
void setTertiaryColor(HSBType hsbType, int segmentIndex) throws ApiException;
public abstract void setWhiteOnly(PercentType percentType, int segmentIndex) throws ApiException;
void setWhiteOnly(PercentType percentType, int segmentIndex) throws ApiException;
public abstract void setMirror(boolean bool, int segmentIndex) throws ApiException;
void setMirror(boolean bool, int segmentIndex) throws ApiException;
public abstract void setReverse(boolean bool, int segmentIndex) throws ApiException;
void setReverse(boolean bool, int segmentIndex) throws ApiException;
public abstract void setLiveOverride(String value) throws ApiException;
void setLiveOverride(String value) throws ApiException;
public abstract void setGrouping(int value, int segmentIndex) throws ApiException;
void setGrouping(int value, int segmentIndex) throws ApiException;
public abstract void setSpacing(int value, int segmentIndex) throws ApiException;
void setSpacing(int value, int segmentIndex) throws ApiException;
/**
* Saves a preset to the position number with the supplied name. If the supplied name is an empty String then the
* name 'Preset x' will be used by default using the position number given.
*
*/
public abstract void savePreset(int position, String presetName) throws ApiException;
void savePreset(int position, String presetName) throws ApiException;
public abstract List<StateOption> getUpdatedFxList();
List<StateOption> getUpdatedFxList();
public abstract List<StateOption> getUpdatedPaletteList();
List<StateOption> getUpdatedPaletteList();
public abstract List<String> getSegmentNames();
List<String> getSegmentNames();
}