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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
174 changed files with 806 additions and 774 deletions

View File

@ -29,12 +29,12 @@ public interface AdorneHubChangeNotify {
* @param onOff new on/off state * @param onOff new on/off state
* @param brightness new brightness * @param brightness new brightness
*/ */
public void stateChangeNotify(int zoneId, boolean onOff, int brightness); void stateChangeNotify(int zoneId, boolean onOff, int brightness);
/** /**
* Notify listener about hub connection change * Notify listener about hub connection change
* *
* @param connected new connection state * @param connected new connection state
*/ */
public void connectionChangeNotify(boolean connected); void connectionChangeNotify(boolean connected);
} }

View File

@ -29,5 +29,5 @@ public interface AhaCollectionSchedule {
/** /**
* Returns the next collection dates per {@link WasteType}. * Returns the next collection dates per {@link WasteType}.
*/ */
public Map<WasteType, CollectionDate> getCollectionDates() throws IOException; Map<WasteType, CollectionDate> getCollectionDates() throws IOException;
} }

View File

@ -25,6 +25,6 @@ public interface AhaCollectionScheduleFactory {
/** /**
* Creates a new {@link AhaCollectionSchedule} for the given location. * Creates a new {@link AhaCollectionSchedule} for the given location.
*/ */
public AhaCollectionSchedule create(final String commune, final String street, final String houseNumber, AhaCollectionSchedule create(final String commune, final String street, final String houseNumber,
final String houseNumberAddon, final String collectionPlace); final String houseNumberAddon, final String collectionPlace);
} }

View File

@ -26,5 +26,5 @@ public interface PacketCapturingHandler {
* *
* @param macAddress The mac address which sent the packet * @param macAddress The mac address which sent the packet
*/ */
public void packetCaptured(MacAddress sourceMacAddress); void packetCaptured(MacAddress sourceMacAddress);
} }

View File

@ -30,12 +30,12 @@ public interface PcapNetworkInterfaceListener {
* *
* @param newNetworkInterface The added networkInterface * @param newNetworkInterface The added networkInterface
*/ */
public void onPcapNetworkInterfaceAdded(PcapNetworkInterfaceWrapper newNetworkInterface); void onPcapNetworkInterfaceAdded(PcapNetworkInterfaceWrapper newNetworkInterface);
/** /**
* This method is called whenever a {@link PcapNetworkInterfaceWrapper} is removed. * This method is called whenever a {@link PcapNetworkInterfaceWrapper} is removed.
* *
* @param removedNetworkInterface The removed networkInterface * @param removedNetworkInterface The removed networkInterface
*/ */
public void onPcapNetworkInterfaceRemoved(PcapNetworkInterfaceWrapper removedNetworkInterface); void onPcapNetworkInterfaceRemoved(PcapNetworkInterfaceWrapper removedNetworkInterface);
} }

View File

@ -23,5 +23,5 @@ import org.openhab.binding.amazonechocontrol.internal.jsons.JsonPushCommand;
@NonNullByDefault @NonNullByDefault
public interface IWebSocketCommandHandler { public interface IWebSocketCommandHandler {
public void webSocketCommandReceived(JsonPushCommand pushCommand); void webSocketCommandReceived(JsonPushCommand pushCommand);
} }

View File

@ -25,20 +25,20 @@ public interface ProcessorInterface {
/* /*
* Set the channel group Id for the station * Set the channel group Id for the station
*/ */
public void setChannelGroupId(); void setChannelGroupId();
/* /*
* Set the number of remote sensors supported by the station * Set the number of remote sensors supported by the station
*/ */
public void setNumberOfSensors(); void setNumberOfSensors();
/* /*
* Updates the info channels (i.e. name and location) for a station * Updates the info channels (i.e. name and location) for a station
*/ */
public void processInfoUpdate(AmbientWeatherStationHandler handler, String station, String name, String location); void processInfoUpdate(AmbientWeatherStationHandler handler, String station, String name, String location);
/* /*
* Updates the weather data channels for a station * Updates the weather data channels for a station
*/ */
public void processWeatherData(AmbientWeatherStationHandler handler, String station, String jsonData); void processWeatherData(AmbientWeatherStationHandler handler, String station, String jsonData);
} }

View File

@ -29,5 +29,5 @@ public interface AmpliPiStatusChangeListener {
* *
* @param status The current status of the AmpliPi * @param status The current status of the AmpliPi
*/ */
public void receive(Status status); void receive(Status status);
} }

View File

@ -40,7 +40,7 @@ import org.slf4j.LoggerFactory;
public interface Job extends SchedulerRunnable, Runnable { public interface Job extends SchedulerRunnable, Runnable {
/** Logger Instance */ /** Logger Instance */
public final Logger LOGGER = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass()); final Logger LOGGER = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
/** /**
* Schedules the provided {@link Job} instance * Schedules the provided {@link Job} instance
@ -50,7 +50,7 @@ public interface Job extends SchedulerRunnable, Runnable {
* @param job the {@link Job} instance to schedule * @param job the {@link Job} instance to schedule
* @param eventAt the {@link Calendar} instance denoting scheduled instant * @param eventAt the {@link Calendar} instance denoting scheduled instant
*/ */
public static void schedule(String thingUID, AstroThingHandler astroHandler, Job job, Calendar eventAt) { static void schedule(String thingUID, AstroThingHandler astroHandler, Job job, Calendar eventAt) {
try { try {
Calendar today = Calendar.getInstance(); Calendar today = Calendar.getInstance();
if (isSameDay(eventAt, today) && isTimeGreaterEquals(eventAt, today)) { if (isSameDay(eventAt, today) && isTimeGreaterEquals(eventAt, today)) {
@ -70,7 +70,7 @@ public interface Job extends SchedulerRunnable, Runnable {
* @param event the event ID * @param event the event ID
* @param channelId the channel ID * @param channelId the channel ID
*/ */
public static void scheduleEvent(String thingUID, AstroThingHandler astroHandler, Calendar eventAt, String event, static void scheduleEvent(String thingUID, AstroThingHandler astroHandler, Calendar eventAt, String event,
String channelId, boolean configAlreadyApplied) { String channelId, boolean configAlreadyApplied) {
scheduleEvent(thingUID, astroHandler, eventAt, singletonList(event), channelId, configAlreadyApplied); scheduleEvent(thingUID, astroHandler, eventAt, singletonList(event), channelId, configAlreadyApplied);
} }
@ -84,8 +84,8 @@ public interface Job extends SchedulerRunnable, Runnable {
* @param events the event IDs to schedule * @param events the event IDs to schedule
* @param channelId the channel ID * @param channelId the channel ID
*/ */
public static void scheduleEvent(String thingUID, AstroThingHandler astroHandler, Calendar eventAt, static void scheduleEvent(String thingUID, AstroThingHandler astroHandler, Calendar eventAt, List<String> events,
List<String> events, String channelId, boolean configAlreadyApplied) { String channelId, boolean configAlreadyApplied) {
if (events.isEmpty()) { if (events.isEmpty()) {
return; return;
} }
@ -113,7 +113,7 @@ public interface Job extends SchedulerRunnable, Runnable {
* @param range the {@link Range} instance * @param range the {@link Range} instance
* @param channelId the channel ID * @param channelId the channel ID
*/ */
public static void scheduleRange(String thingUID, AstroThingHandler astroHandler, Range range, String channelId) { static void scheduleRange(String thingUID, AstroThingHandler astroHandler, Range range, String channelId) {
final Channel channel = astroHandler.getThing().getChannel(channelId); final Channel channel = astroHandler.getThing().getChannel(channelId);
if (channel == null) { if (channel == null) {
LOGGER.warn("Cannot find channel '{}' for thing '{}'.", channelId, astroHandler.getThing().getUID()); LOGGER.warn("Cannot find channel '{}' for thing '{}'.", channelId, astroHandler.getThing().getUID());
@ -134,7 +134,7 @@ public interface Job extends SchedulerRunnable, Runnable {
scheduleEvent(thingUID, astroHandler, end, EVENT_END, channelId, true); scheduleEvent(thingUID, astroHandler, end, EVENT_END, channelId, true);
} }
public static Range adjustRangeToConfig(Range range, AstroChannelConfig config) { static Range adjustRangeToConfig(Range range, AstroChannelConfig config) {
Calendar start = range.getStart(); Calendar start = range.getStart();
Calendar end = range.getEnd(); Calendar end = range.getEnd();
@ -161,7 +161,7 @@ public interface Job extends SchedulerRunnable, Runnable {
* @param astroHandler the {@link AstroThingHandler} instance * @param astroHandler the {@link AstroThingHandler} instance
* @param eventAt the {@link Calendar} instance denoting scheduled instant * @param eventAt the {@link Calendar} instance denoting scheduled instant
*/ */
public static void schedulePublishPlanet(String thingUID, AstroThingHandler astroHandler, Calendar eventAt) { static void schedulePublishPlanet(String thingUID, AstroThingHandler astroHandler, Calendar eventAt) {
Job publishJob = new PublishPlanetJob(thingUID); Job publishJob = new PublishPlanetJob(thingUID);
schedule(thingUID, astroHandler, publishJob, eventAt); schedule(thingUID, astroHandler, publishJob, eventAt);
} }
@ -174,7 +174,7 @@ public interface Job extends SchedulerRunnable, Runnable {
* @param sunPhaseName {@link SunPhaseName} instance * @param sunPhaseName {@link SunPhaseName} instance
* @param eventAt the {@link Calendar} instance denoting scheduled instant * @param eventAt the {@link Calendar} instance denoting scheduled instant
*/ */
public static void scheduleSunPhase(String thingUID, AstroThingHandler astroHandler, SunPhaseName sunPhaseName, static void scheduleSunPhase(String thingUID, AstroThingHandler astroHandler, SunPhaseName sunPhaseName,
Calendar eventAt) { Calendar eventAt) {
Job sunPhaseJob = new SunPhaseJob(thingUID, sunPhaseName); Job sunPhaseJob = new SunPhaseJob(thingUID, sunPhaseName);
schedule(thingUID, astroHandler, sunPhaseJob, eventAt); schedule(thingUID, astroHandler, sunPhaseJob, eventAt);
@ -183,5 +183,5 @@ public interface Job extends SchedulerRunnable, Runnable {
/** /**
* Returns the thing UID that is associated with this {@link Job} (cannot be {@code null}) * Returns the thing UID that is associated with this {@link Job} (cannot be {@code null})
*/ */
public String getThingUID(); String getThingUID();
} }

View File

@ -27,12 +27,12 @@ public interface SocketSessionListener {
* *
* @param response a non-null, possibly empty response * @param response a non-null, possibly empty response
*/ */
public void responseReceived(String response); void responseReceived(String response);
/** /**
* Called when a command finished with an exception or a general exception occurred while reading * Called when a command finished with an exception or a general exception occurred while reading
* *
* @param e a non-null exception * @param e a non-null exception
*/ */
public void responseException(Exception e); void responseException(Exception e);
} }

View File

@ -21,8 +21,8 @@ import java.math.BigDecimal;
*/ */
public interface BatteryModel { public interface BatteryModel {
public static final BigDecimal BATTERY_OFF = BigDecimal.ZERO; static final BigDecimal BATTERY_OFF = BigDecimal.ZERO;
public static final BigDecimal BATTERY_ON = BigDecimal.ONE; static final BigDecimal BATTERY_ON = BigDecimal.ONE;
BigDecimal getBattery(); BigDecimal getBattery();

View File

@ -31,12 +31,12 @@ public interface FritzAhaCallback {
* *
* @return URI path as String * @return URI path as String
*/ */
public String getPath(); String getPath();
/** /**
* Get the query String * Get the query String
* *
* @return Query string as String * @return Query string as String
*/ */
public String getArgs(); String getArgs();
} }

View File

@ -28,11 +28,11 @@ import org.openhab.binding.benqprojector.internal.BenqProjectorException;
*/ */
@NonNullByDefault @NonNullByDefault
public interface BenqProjectorConnector { public interface BenqProjectorConnector {
public static final int TIMEOUT_MS = 5 * 1000; static final int TIMEOUT_MS = 5 * 1000;
public static final String START = "\r*"; static final String START = "\r*";
public static final String END = "#\r"; static final String END = "#\r";
public static final String BLANK = ""; static final String BLANK = "";
/** /**
* Procedure for connecting to projector. * Procedure for connecting to projector.

View File

@ -22,13 +22,13 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
@NonNullByDefault @NonNullByDefault
public interface ResponseListener { public interface ResponseListener {
public void receivedResponse(GetBatteryLevelCommand command); void receivedResponse(GetBatteryLevelCommand command);
public void receivedResponse(GetAllCommand command); void receivedResponse(GetAllCommand command);
public void receivedResponse(GetLightLevelCommand command); void receivedResponse(GetLightLevelCommand command);
public void receivedResponse(GetPositionCommand command); void receivedResponse(GetPositionCommand command);
public void receivedResponse(GetSpeedCommand command); void receivedResponse(GetSpeedCommand command);
} }

View File

@ -23,45 +23,45 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
@NonNullByDefault @NonNullByDefault
public interface BlueZEventListener { public interface BlueZEventListener {
public void onDBusBlueZEvent(BlueZEvent event); void onDBusBlueZEvent(BlueZEvent event);
public default void onDiscoveringChanged(AdapterDiscoveringChangedEvent event) { default void onDiscoveringChanged(AdapterDiscoveringChangedEvent event) {
onDBusBlueZEvent(event); onDBusBlueZEvent(event);
} }
public default void onPoweredChange(AdapterPoweredChangedEvent event) { default void onPoweredChange(AdapterPoweredChangedEvent event) {
onDBusBlueZEvent(event); onDBusBlueZEvent(event);
} }
public default void onRssiUpdate(RssiEvent event) { default void onRssiUpdate(RssiEvent event) {
onDBusBlueZEvent(event); onDBusBlueZEvent(event);
} }
public default void onTxPowerUpdate(TXPowerEvent event) { default void onTxPowerUpdate(TXPowerEvent event) {
onDBusBlueZEvent(event); onDBusBlueZEvent(event);
} }
public default void onCharacteristicNotify(CharacteristicUpdateEvent event) { default void onCharacteristicNotify(CharacteristicUpdateEvent event) {
onDBusBlueZEvent(event); onDBusBlueZEvent(event);
} }
public default void onManufacturerDataUpdate(ManufacturerDataEvent event) { default void onManufacturerDataUpdate(ManufacturerDataEvent event) {
onDBusBlueZEvent(event); onDBusBlueZEvent(event);
} }
public default void onServiceDataUpdate(ServiceDataEvent event) { default void onServiceDataUpdate(ServiceDataEvent event) {
onDBusBlueZEvent(event); onDBusBlueZEvent(event);
} }
public default void onConnectedStatusUpdate(ConnectedEvent event) { default void onConnectedStatusUpdate(ConnectedEvent event) {
onDBusBlueZEvent(event); onDBusBlueZEvent(event);
} }
public default void onNameUpdate(NameEvent event) { default void onNameUpdate(NameEvent event) {
onDBusBlueZEvent(event); onDBusBlueZEvent(event);
} }
public default void onServicesResolved(ServicesResolvedEvent event) { default void onServicesResolved(ServicesResolvedEvent event) {
onDBusBlueZEvent(event); onDBusBlueZEvent(event);
} }
} }

View File

@ -23,33 +23,33 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
@NonNullByDefault @NonNullByDefault
public interface ResponseListener { public interface ResponseListener {
public void receivedResponse(byte[] bytes); void receivedResponse(byte[] bytes);
public void receivedResponse(GetVersionCommand command); void receivedResponse(GetVersionCommand command);
public void receivedResponse(GetFanspeedCommand command); void receivedResponse(GetFanspeedCommand command);
public void receivedResponse(GetOperationmodeCommand command); void receivedResponse(GetOperationmodeCommand command);
public void receivedResponse(GetPowerstateCommand command); void receivedResponse(GetPowerstateCommand command);
public void receivedResponse(GetSetpointCommand command); void receivedResponse(GetSetpointCommand command);
public void receivedResponse(GetIndoorOutoorTemperatures command); void receivedResponse(GetIndoorOutoorTemperatures command);
public void receivedResponse(SetPowerstateCommand command); void receivedResponse(SetPowerstateCommand command);
public void receivedResponse(SetSetpointCommand command); void receivedResponse(SetSetpointCommand command);
public void receivedResponse(SetOperationmodeCommand command); void receivedResponse(SetOperationmodeCommand command);
public void receivedResponse(SetFanspeedCommand command); void receivedResponse(SetFanspeedCommand command);
public void receivedResponse(GetOperationHoursCommand command); void receivedResponse(GetOperationHoursCommand command);
public void receivedResponse(GetEyeBrightnessCommand command); void receivedResponse(GetEyeBrightnessCommand command);
public void receivedResponse(SetEyeBrightnessCommand command); void receivedResponse(SetEyeBrightnessCommand command);
public void receivedResponse(GetCleanFilterIndicatorCommand command); void receivedResponse(GetCleanFilterIndicatorCommand command);
} }

View File

@ -21,5 +21,5 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
@NonNullByDefault @NonNullByDefault
public interface GattMessage { public interface GattMessage {
public byte[] getPayload(); byte[] getPayload();
} }

View File

@ -26,12 +26,12 @@ public interface MessageHandler<T extends GattMessage, R extends GattMessage> {
* @param payload * @param payload
* @return true if this handler should be removed from the handler list * @return true if this handler should be removed from the handler list
*/ */
public boolean handleReceivedMessage(R message); boolean handleReceivedMessage(R message);
/** /**
* *
* @param payload * @param payload
* @return true if this handler should be removed from the handler list * @return true if this handler should be removed from the handler list
*/ */
public boolean handleFailedMessage(T message, Throwable th); boolean handleFailedMessage(T message, Throwable th);
} }

View File

@ -24,5 +24,5 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
public interface MessageServicer<T extends GattMessage, R extends GattMessage> public interface MessageServicer<T extends GattMessage, R extends GattMessage>
extends MessageHandler<T, R>, MessageSupplier<T> { extends MessageHandler<T, R>, MessageSupplier<T> {
public long getTimeout(TimeUnit unit); long getTimeout(TimeUnit unit);
} }

View File

@ -21,5 +21,5 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
@NonNullByDefault @NonNullByDefault
public interface MessageSupplier<M extends GattMessage> { public interface MessageSupplier<M extends GattMessage> {
public M createMessage(); M createMessage();
} }

View File

@ -37,7 +37,7 @@ public interface BluetoothDiscoveryParticipant {
* *
* @return a set of thing type UIDs for which results can be created * @return a set of thing type UIDs for which results can be created
*/ */
public Set<ThingTypeUID> getSupportedThingTypeUIDs(); Set<ThingTypeUID> getSupportedThingTypeUIDs();
/** /**
* Creates a discovery result for a Bluetooth device * Creates a discovery result for a Bluetooth device
@ -46,7 +46,8 @@ public interface BluetoothDiscoveryParticipant {
* @return the according discovery result or <code>null</code>, if device is not * @return the according discovery result or <code>null</code>, if device is not
* supported by this participant * supported by this participant
*/ */
public @Nullable DiscoveryResult createResult(BluetoothDiscoveryDevice device); @Nullable
DiscoveryResult createResult(BluetoothDiscoveryDevice device);
/** /**
* Returns the thing UID for a Bluetooth device * Returns the thing UID for a Bluetooth device
@ -54,7 +55,8 @@ public interface BluetoothDiscoveryParticipant {
* @param device the Bluetooth device * @param device the Bluetooth device
* @return a thing UID or <code>null</code>, if the device is not supported by this participant * @return a thing UID or <code>null</code>, if the device is not supported by this participant
*/ */
public @Nullable ThingUID getThingUID(BluetoothDiscoveryDevice device); @Nullable
ThingUID getThingUID(BluetoothDiscoveryDevice device);
/** /**
* Returns true if this participant requires the device to be connected before it can produce a * Returns true if this participant requires the device to be connected before it can produce a
@ -70,7 +72,7 @@ public interface BluetoothDiscoveryParticipant {
* @param device the Bluetooth device * @param device the Bluetooth device
* @return true if a connection is required before calling {@link createResult(BluetoothDevice)} * @return true if a connection is required before calling {@link createResult(BluetoothDevice)}
*/ */
public default boolean requiresConnection(BluetoothDiscoveryDevice device) { default boolean requiresConnection(BluetoothDiscoveryDevice device) {
return false; return false;
} }
@ -87,7 +89,7 @@ public interface BluetoothDiscoveryParticipant {
* @param result the DiscoveryResult to post-process * @param result the DiscoveryResult to post-process
* @param publisher the consumer to publish additional results to. * @param publisher the consumer to publish additional results to.
*/ */
public default void publishAdditionalResults(DiscoveryResult result, default void publishAdditionalResults(DiscoveryResult result,
BiConsumer<BluetoothAdapter, DiscoveryResult> publisher) { BiConsumer<BluetoothAdapter, DiscoveryResult> publisher) {
// do nothing by default // do nothing by default
} }
@ -98,7 +100,7 @@ public interface BluetoothDiscoveryParticipant {
* *
* @return the order of this participant, default 0 * @return the order of this participant, default 0
*/ */
public default int order() { default int order() {
return 0; return 0;
} }
} }

View File

@ -23,43 +23,43 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
@NonNullByDefault @NonNullByDefault
public interface AvailableSources { public interface AvailableSources {
public boolean isBluetoothAvailable(); boolean isBluetoothAvailable();
public boolean isAUXAvailable(); boolean isAUXAvailable();
public boolean isAUX1Available(); boolean isAUX1Available();
public boolean isAUX2Available(); boolean isAUX2Available();
public boolean isAUX3Available(); boolean isAUX3Available();
public boolean isTVAvailable(); boolean isTVAvailable();
public boolean isHDMI1Available(); boolean isHDMI1Available();
public boolean isInternetRadioAvailable(); boolean isInternetRadioAvailable();
public boolean isStoredMusicAvailable(); boolean isStoredMusicAvailable();
public boolean isBassAvailable(); boolean isBassAvailable();
public void setAUXAvailable(boolean aux); void setAUXAvailable(boolean aux);
public void setAUX1Available(boolean aux1); void setAUX1Available(boolean aux1);
public void setAUX2Available(boolean aux2); void setAUX2Available(boolean aux2);
public void setAUX3Available(boolean aux3); void setAUX3Available(boolean aux3);
public void setStoredMusicAvailable(boolean storedMusic); void setStoredMusicAvailable(boolean storedMusic);
public void setInternetRadioAvailable(boolean internetRadio); void setInternetRadioAvailable(boolean internetRadio);
public void setBluetoothAvailable(boolean bluetooth); void setBluetoothAvailable(boolean bluetooth);
public void setTVAvailable(boolean tv); void setTVAvailable(boolean tv);
public void setHDMI1Available(boolean hdmi1); void setHDMI1Available(boolean hdmi1);
public void setBassAvailable(boolean bass); void setBassAvailable(boolean bass);
} }

View File

@ -21,5 +21,5 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
*/ */
@NonNullByDefault @NonNullByDefault
public interface CaddxPanelListener { public interface CaddxPanelListener {
public void caddxMessage(CaddxMessage message); void caddxMessage(CaddxMessage message);
} }

View File

@ -31,17 +31,17 @@ public interface AttributeSelection {
* Returns the value for this attribute. * Returns the value for this attribute.
*/ */
@Nullable @Nullable
public abstract Object getValue(TimetableStop stop); Object getValue(TimetableStop stop);
/** /**
* Returns the {@link State} that should be set for the channels'value for this attribute. * Returns the {@link State} that should be set for the channels'value for this attribute.
*/ */
@Nullable @Nullable
public abstract State getState(TimetableStop stop); State getState(TimetableStop stop);
/** /**
* Returns a list of values as string list. * Returns a list of values as string list.
* Returns empty list if value is not present, singleton list if attribute is not single-valued. * Returns empty list if value is not present, singleton list if attribute is not single-valued.
*/ */
public abstract List<String> getStringValues(TimetableStop t); List<String> getStringValues(TimetableStop t);
} }

View File

@ -27,25 +27,25 @@ public interface FilterTokenVisitor<R> {
/** /**
* Handles {@link ChannelNameEquals}. * Handles {@link ChannelNameEquals}.
*/ */
public abstract R handle(ChannelNameEquals equals) throws FilterParserException; R handle(ChannelNameEquals equals) throws FilterParserException;
/** /**
* Handles {@link OrOperator}. * Handles {@link OrOperator}.
*/ */
public abstract R handle(OrOperator operator) throws FilterParserException; R handle(OrOperator operator) throws FilterParserException;
/** /**
* Handles {@link AndOperator}. * Handles {@link AndOperator}.
*/ */
public abstract R handle(AndOperator operator) throws FilterParserException; R handle(AndOperator operator) throws FilterParserException;
/** /**
* Handles {@link BracketOpenToken}. * Handles {@link BracketOpenToken}.
*/ */
public abstract R handle(BracketOpenToken token) throws FilterParserException; R handle(BracketOpenToken token) throws FilterParserException;
/** /**
* Handles {@link BracketCloseToken}. * Handles {@link BracketCloseToken}.
*/ */
public abstract R handle(BracketCloseToken token) throws FilterParserException; R handle(BracketCloseToken token) throws FilterParserException;
} }

View File

@ -51,7 +51,7 @@ public interface TimetablesV1Api {
* *
* @return The {@link Timetable} containing the planned arrivals and departues. * @return The {@link Timetable} containing the planned arrivals and departues.
*/ */
public abstract Timetable getPlan(String evaNo, Date time) throws IOException; Timetable getPlan(String evaNo, Date time) throws IOException;
/** /**
* Requests all known changes in the timetable for the given station. * Requests all known changes in the timetable for the given station.
@ -75,7 +75,7 @@ public interface TimetablesV1Api {
* *
* @return The {@link Timetable} containing all known changes for the given station. * @return The {@link Timetable} containing all known changes for the given station.
*/ */
public abstract Timetable getFullChanges(String evaNo) throws IOException; Timetable getFullChanges(String evaNo) throws IOException;
/** /**
* Requests the timetable with the planned data for the given station and time. * Requests the timetable with the planned data for the given station and time.
@ -97,5 +97,5 @@ public interface TimetablesV1Api {
* *
* @return The {@link Timetable} containing recent changes (from last two minutes) for the given station. * @return The {@link Timetable} containing recent changes (from last two minutes) for the given station.
*/ */
public abstract Timetable getRecentChanges(String evaNo) throws IOException; Timetable getRecentChanges(String evaNo) throws IOException;
} }

View File

@ -28,6 +28,6 @@ public interface TimetablesV1ApiFactory {
/** /**
* Creates a new instance of the {@link TimetablesV1Api}. * Creates a new instance of the {@link TimetablesV1Api}.
*/ */
public abstract TimetablesV1Api create(final String clientId, final String clientSecret, TimetablesV1Api create(final String clientId, final String clientSecret, final HttpCallable httpCallable)
final HttpCallable httpCallable) throws JAXBException; throws JAXBException;
} }

View File

@ -27,16 +27,16 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
@NonNullByDefault @NonNullByDefault
public interface TimetablesV1ImplTestHelper { public interface TimetablesV1ImplTestHelper {
public static final String EVA_LEHRTE = "8000226"; static final String EVA_LEHRTE = "8000226";
public static final String EVA_HANNOVER_HBF = "8000152"; static final String EVA_HANNOVER_HBF = "8000152";
public static final String CLIENT_ID = "bdwrpmxuo6157jrekftlbcc6ju9awo"; static final String CLIENT_ID = "bdwrpmxuo6157jrekftlbcc6ju9awo";
public static final String CLIENT_SECRET = "354c8161cd7fb0936c840240280c131e"; static final String CLIENT_SECRET = "354c8161cd7fb0936c840240280c131e";
/** /**
* Creates a {@link TimetablesApiTestModule} that uses http response data from file system. * Creates a {@link TimetablesApiTestModule} that uses http response data from file system.
* Uses default-testdata from directory /timetablesData * Uses default-testdata from directory /timetablesData
*/ */
public default TimetablesApiTestModule createApiWithTestdata() throws Exception { default TimetablesApiTestModule createApiWithTestdata() throws Exception {
return this.createApiWithTestdata("/timetablesData"); return this.createApiWithTestdata("/timetablesData");
} }
@ -45,7 +45,7 @@ public interface TimetablesV1ImplTestHelper {
* *
* @param dataDirectory Directory within test-resources containing the stub-data. * @param dataDirectory Directory within test-resources containing the stub-data.
*/ */
public default TimetablesApiTestModule createApiWithTestdata(String dataDirectory) throws Exception { default TimetablesApiTestModule createApiWithTestdata(String dataDirectory) throws Exception {
final URL timetablesData = getClass().getResource(dataDirectory); final URL timetablesData = getClass().getResource(dataDirectory);
assertNotNull(timetablesData); assertNotNull(timetablesData);
final File testDataDir = new File(timetablesData.toURI()); final File testDataDir = new File(timetablesData.toURI());

View File

@ -25,13 +25,13 @@ import org.openhab.binding.digitalstrom.internal.lib.serverconnection.HttpTransp
*/ */
public interface ConnectionManager { public interface ConnectionManager {
public static final int GENERAL_EXCEPTION = -1; static final int GENERAL_EXCEPTION = -1;
public static final int MALFORMED_URL_EXCEPTION = -2; static final int MALFORMED_URL_EXCEPTION = -2;
public static final int CONNECTION_EXCEPTION = -3; static final int CONNECTION_EXCEPTION = -3;
public static final int SOCKET_TIMEOUT_EXCEPTION = -4; static final int SOCKET_TIMEOUT_EXCEPTION = -4;
public static final int UNKNOWN_HOST_EXCEPTION = -5; static final int UNKNOWN_HOST_EXCEPTION = -5;
public static final int AUTHENTIFICATION_PROBLEM = -6; static final int AUTHENTIFICATION_PROBLEM = -6;
public static final int SSL_HANDSHAKE_EXCEPTION = -7; static final int SSL_HANDSHAKE_EXCEPTION = -7;
/** /**
* Returns the {@link HttpTransport} to execute queries or special commands on the digitalSTROM-Server. * Returns the {@link HttpTransport} to execute queries or special commands on the digitalSTROM-Server.

View File

@ -43,5 +43,5 @@ public interface EaseeCommand extends SuccessListener, FailureListener, ContentL
* *
* @param resultProcessor * @param resultProcessor
*/ */
public void registerResultProcessor(JsonResultProcessor resultProcessor); void registerResultProcessor(JsonResultProcessor resultProcessor);
} }

View File

@ -23,11 +23,11 @@ import org.openhab.binding.ecovacs.internal.api.impl.EcovacsApiImpl;
*/ */
@NonNullByDefault @NonNullByDefault
public interface EcovacsApi { public interface EcovacsApi {
public static EcovacsApi create(HttpClient httpClient, EcovacsApiConfiguration configuration) { static EcovacsApi create(HttpClient httpClient, EcovacsApiConfiguration configuration) {
return new EcovacsApiImpl(httpClient, configuration); return new EcovacsApiImpl(httpClient, configuration);
} }
public void loginAndGetAccessToken() throws EcovacsApiException, InterruptedException; void loginAndGetAccessToken() throws EcovacsApiException, InterruptedException;
public List<EcovacsDevice> getDevices() throws EcovacsApiException, InterruptedException; List<EcovacsDevice> getDevices() throws EcovacsApiException, InterruptedException;
} }

View File

@ -27,7 +27,7 @@ import org.openhab.binding.ecovacs.internal.api.model.DeviceCapability;
*/ */
@NonNullByDefault @NonNullByDefault
public interface EcovacsDevice { public interface EcovacsDevice {
public interface EventListener { interface EventListener {
void onFirmwareVersionChanged(EcovacsDevice device, String fwVersion); void onFirmwareVersionChanged(EcovacsDevice device, String fwVersion);
void onBatteryLevelUpdated(EcovacsDevice device, int newLevelPercent); void onBatteryLevelUpdated(EcovacsDevice device, int newLevelPercent);

View File

@ -21,5 +21,5 @@ import org.openhab.binding.enocean.internal.messages.EventMessage;
*/ */
@NonNullByDefault @NonNullByDefault
public interface EventListener { public interface EventListener {
public void eventReceived(EventMessage event); void eventReceived(EventMessage event);
} }

View File

@ -22,7 +22,7 @@ import org.openhab.binding.enocean.internal.messages.BasePacket;
@NonNullByDefault @NonNullByDefault
public interface PacketListener { public interface PacketListener {
public void packetReceived(BasePacket packet); void packetReceived(BasePacket packet);
public long getEnOceanIdToListenTo(); long getEnOceanIdToListenTo();
} }

View File

@ -21,5 +21,5 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
@NonNullByDefault @NonNullByDefault
public interface TransceiverErrorListener { public interface TransceiverErrorListener {
public void errorOccured(Throwable exception); void errorOccured(Throwable exception);
} }

View File

@ -25,5 +25,5 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
@NonNullByDefault @NonNullByDefault
public interface RunnableWithTimeout { public interface RunnableWithTimeout {
public abstract void run() throws TimeoutException; void run() throws TimeoutException;
} }

View File

@ -20,5 +20,5 @@ package org.openhab.binding.evohome.internal.api.models.v2.dto.request;
*/ */
public interface RequestBuilder<T> { public interface RequestBuilder<T> {
public T build(); T build();
} }

View File

@ -29,5 +29,5 @@ public interface AccountStatusListener {
* *
* @param status The new status of the account thing * @param status The new status of the account thing
*/ */
public void accountStatusChanged(ThingStatus status); void accountStatusChanged(ThingStatus status);
} }

View File

@ -33,9 +33,9 @@ public interface FlicButtonDiscoveryService extends DiscoveryService {
* @param bdaddr Bluetooth address of the discovered Flic button * @param bdaddr Bluetooth address of the discovered Flic button
* @return UID that was created by the discovery service * @return UID that was created by the discovery service
*/ */
public ThingUID flicButtonDiscovered(Bdaddr bdaddr); ThingUID flicButtonDiscovered(Bdaddr bdaddr);
public void activate(FlicClient client); void activate(FlicClient client);
public void deactivate(); void deactivate();
} }

View File

@ -39,6 +39,6 @@ public interface FreeboxDataListener {
* @param lanHosts the LAN data received from the Freebox server. * @param lanHosts the LAN data received from the Freebox server.
* @param airPlayDevices the list of AirPlay devices received from the Freebox server. * @param airPlayDevices the list of AirPlay devices received from the Freebox server.
*/ */
public void onDataFetched(ThingUID bridge, @Nullable List<FreeboxLanHost> lanHosts, void onDataFetched(ThingUID bridge, @Nullable List<FreeboxLanHost> lanHosts,
@Nullable List<FreeboxAirMediaReceiver> airPlayDevices); @Nullable List<FreeboxAirMediaReceiver> airPlayDevices);
} }

View File

@ -32,30 +32,30 @@ public interface GardenaSmart {
/** /**
* Disposes Gardena smart system. * Disposes Gardena smart system.
*/ */
public void dispose(); void dispose();
/** /**
* Returns all devices from all locations. * Returns all devices from all locations.
*/ */
public Collection<Device> getAllDevices(); Collection<Device> getAllDevices();
/** /**
* Returns a device with the given id. * Returns a device with the given id.
*/ */
public Device getDevice(String deviceId) throws GardenaDeviceNotFoundException; Device getDevice(String deviceId) throws GardenaDeviceNotFoundException;
/** /**
* Sends a command to Gardena smart system. * Sends a command to Gardena smart system.
*/ */
public void sendCommand(DataItem<?> dataItem, GardenaCommand gardenaCommand) throws GardenaException; void sendCommand(DataItem<?> dataItem, GardenaCommand gardenaCommand) throws GardenaException;
/** /**
* Returns the id. * Returns the id.
*/ */
public String getId(); String getId();
/** /**
* Restarts all WebSocket. * Restarts all WebSocket.
*/ */
public void restartWebsockets(); void restartWebsockets();
} }

View File

@ -26,15 +26,15 @@ public interface GardenaSmartEventListener {
/** /**
* Called when a device has been updated. * Called when a device has been updated.
*/ */
public void onDeviceUpdated(Device device); void onDeviceUpdated(Device device);
/** /**
* Called when a new device has been detected. * Called when a new device has been detected.
*/ */
public void onNewDevice(Device device); void onNewDevice(Device device);
/** /**
* Called when an unrecoverable error occurs. * Called when an unrecoverable error occurs.
*/ */
public void onError(); void onError();
} }

View File

@ -24,27 +24,27 @@ public interface CommandInterface {
* *
* @return module number as String * @return module number as String
*/ */
public String getModule(); String getModule();
/** /**
* Get the connector number to which the command will be sent * Get the connector number to which the command will be sent
* *
* @return connector number as String * @return connector number as String
*/ */
public String getConnector(); String getConnector();
/** /**
* Used by command implementations to parse the device's response * Used by command implementations to parse the device's response
*/ */
abstract void parseSuccessfulReply(); void parseSuccessfulReply();
/* /*
* Used by command implementations to report a successful command execution * Used by command implementations to report a successful command execution
*/ */
abstract void logSuccess(); void logSuccess();
/* /*
* Used by command implementations to report a failed command execution * Used by command implementations to report a failed command execution
*/ */
abstract void logFailure(); void logFailure();
} }

View File

@ -24,5 +24,5 @@ import org.openhab.core.thing.ThingStatus;
*/ */
@NonNullByDefault @NonNullByDefault
public interface HubStatusListener { public interface HubStatusListener {
public void hubStatusChanged(ThingStatus status); void hubStatusChanged(ThingStatus status);
} }

View File

@ -31,54 +31,54 @@ public interface HomematicGateway {
/** /**
* Initializes the Homematic gateway and starts the watchdog thread. * Initializes the Homematic gateway and starts the watchdog thread.
*/ */
public void initialize() throws IOException; void initialize() throws IOException;
/** /**
* Disposes the HomematicGateway and stops everything. * Disposes the HomematicGateway and stops everything.
*/ */
public void dispose(); void dispose();
/** /**
* Returns the cached datapoint. * Returns the cached datapoint.
*/ */
public HmDatapoint getDatapoint(HmDatapointInfo dpInfo) throws HomematicClientException; HmDatapoint getDatapoint(HmDatapointInfo dpInfo) throws HomematicClientException;
/** /**
* Returns the cached device. * Returns the cached device.
*/ */
public HmDevice getDevice(String address) throws HomematicClientException; HmDevice getDevice(String address) throws HomematicClientException;
/** /**
* Cancel loading all device metadata. * Cancel loading all device metadata.
*/ */
public void cancelLoadAllDeviceMetadata(); void cancelLoadAllDeviceMetadata();
/** /**
* Loads all device, channel and datapoint metadata from the gateway. * Loads all device, channel and datapoint metadata from the gateway.
*/ */
public void loadAllDeviceMetadata() throws IOException; void loadAllDeviceMetadata() throws IOException;
/** /**
* Loads all values into the given channel. * Loads all values into the given channel.
*/ */
public void loadChannelValues(HmChannel channel) throws IOException; void loadChannelValues(HmChannel channel) throws IOException;
/** /**
* Loads the value of the given {@link HmDatapoint} from the device. * Loads the value of the given {@link HmDatapoint} from the device.
* *
* @param dp The HmDatapoint that shall be loaded * @param dp The HmDatapoint that shall be loaded
*/ */
public void loadDatapointValue(HmDatapoint dp) throws IOException; void loadDatapointValue(HmDatapoint dp) throws IOException;
/** /**
* Reenumerates the set of VALUES datapoints for the given channel. * Reenumerates the set of VALUES datapoints for the given channel.
*/ */
public void updateChannelValueDatapoints(HmChannel channel) throws IOException; void updateChannelValueDatapoints(HmChannel channel) throws IOException;
/** /**
* Prepares the device for reloading all values from the gateway. * Prepares the device for reloading all values from the gateway.
*/ */
public void triggerDeviceValuesReload(HmDevice device); void triggerDeviceValuesReload(HmDevice device);
/** /**
* Sends the datapoint to the Homematic gateway or executes virtual datapoints. * Sends the datapoint to the Homematic gateway or executes virtual datapoints.
@ -91,13 +91,13 @@ public interface HomematicGateway {
* {@link HomematicBindingConstants#RX_WAKEUP_MODE "WAKEUP"} for wakeup mode, or null for the default * {@link HomematicBindingConstants#RX_WAKEUP_MODE "WAKEUP"} for wakeup mode, or null for the default
* mode) * mode)
*/ */
public void sendDatapoint(HmDatapoint dp, HmDatapointConfig dpConfig, Object newValue, String rxMode) void sendDatapoint(HmDatapoint dp, HmDatapointConfig dpConfig, Object newValue, String rxMode)
throws IOException, HomematicClientException; throws IOException, HomematicClientException;
/** /**
* Returns the id of the HomematicGateway. * Returns the id of the HomematicGateway.
*/ */
public String getId(); String getId();
/** /**
* Set install mode of homematic controller. During install mode the * Set install mode of homematic controller. During install mode the
@ -108,7 +108,7 @@ public interface HomematicGateway {
* @param seconds specify how long the install mode should last * @param seconds specify how long the install mode should last
* @throws IOException if RpcClient fails to propagate command * @throws IOException if RpcClient fails to propagate command
*/ */
public void setInstallMode(boolean enable, int seconds) throws IOException; void setInstallMode(boolean enable, int seconds) throws IOException;
/** /**
* Get current install mode of homematic contoller * Get current install mode of homematic contoller
@ -118,17 +118,17 @@ public interface HomematicGateway {
* <i>install_mode==false</i> * <i>install_mode==false</i>
* @throws IOException if RpcClient fails to propagate command * @throws IOException if RpcClient fails to propagate command
*/ */
public int getInstallMode() throws IOException; int getInstallMode() throws IOException;
/** /**
* Loads all rssi values from the gateway. * Loads all rssi values from the gateway.
*/ */
public void loadRssiValues() throws IOException; void loadRssiValues() throws IOException;
/** /**
* Starts the connection and event tracker threads. * Starts the connection and event tracker threads.
*/ */
public void startWatchdogs(); void startWatchdogs();
/** /**
* Deletes the device from the gateway. * Deletes the device from the gateway.
@ -138,5 +138,5 @@ public interface HomematicGateway {
* @param force <i>true</i> will delete the device even if it is not reachable. * @param force <i>true</i> will delete the device even if it is not reachable.
* @param defer <i>true</i> will delete the device once it becomes available. * @param defer <i>true</i> will delete the device once it becomes available.
*/ */
public void deleteDevice(String address, boolean reset, boolean force, boolean defer); void deleteDevice(String address, boolean reset, boolean force, boolean defer);
} }

View File

@ -26,50 +26,50 @@ public interface HomematicGatewayAdapter {
/** /**
* Called when a datapoint has been updated. * Called when a datapoint has been updated.
*/ */
public void onStateUpdated(HmDatapoint dp); void onStateUpdated(HmDatapoint dp);
/** /**
* Called when a new device has been detected on the gateway. * Called when a new device has been detected on the gateway.
*/ */
public void onNewDevice(HmDevice device); void onNewDevice(HmDevice device);
/** /**
* Called when a device has been deleted from the gateway. * Called when a device has been deleted from the gateway.
*/ */
public void onDeviceDeleted(HmDevice device); void onDeviceDeleted(HmDevice device);
/** /**
* Called when the devices values should be reloaded from the gateway. * Called when the devices values should be reloaded from the gateway.
*/ */
public void reloadDeviceValues(HmDevice device); void reloadDeviceValues(HmDevice device);
/** /**
* Called when all values for all devices should be reloaded from the gateway. * Called when all values for all devices should be reloaded from the gateway.
*/ */
public void reloadAllDeviceValues(); void reloadAllDeviceValues();
/** /**
* Called when a device has been loaded from the gateway. * Called when a device has been loaded from the gateway.
*/ */
public void onDeviceLoaded(HmDevice device); void onDeviceLoaded(HmDevice device);
/** /**
* Called when the connection is lost to the gateway. * Called when the connection is lost to the gateway.
*/ */
public void onConnectionLost(); void onConnectionLost();
/** /**
* Called when the connection is resumed to the gateway. * Called when the connection is resumed to the gateway.
*/ */
public void onConnectionResumed(); void onConnectionResumed();
/** /**
* Returns the configuration of a datapoint. * Returns the configuration of a datapoint.
*/ */
public HmDatapointConfig getDatapointConfig(HmDatapoint dp); HmDatapointConfig getDatapointConfig(HmDatapoint dp);
/** /**
* Called when a new value for the duty cycle of the gateway has been received. * Called when a new value for the duty cycle of the gateway has been received.
*/ */
public void onDutyCycleRatioUpdate(int dutyCycleRatio); void onDutyCycleRatioUpdate(int dutyCycleRatio);
} }

View File

@ -22,15 +22,15 @@ public interface RpcRequest<T> {
/** /**
* Adds arguments to the RPC method. * Adds arguments to the RPC method.
*/ */
public void addArg(Object arg); void addArg(Object arg);
/** /**
* Generates the RPC data. * Generates the RPC data.
*/ */
public T createMessage(); T createMessage();
/** /**
* Returns the name of the rpc method. * Returns the name of the rpc method.
*/ */
public String getMethodName(); String getMethodName();
} }

View File

@ -22,10 +22,10 @@ public interface RpcResponse {
/** /**
* Returns the decoded methodName. * Returns the decoded methodName.
*/ */
public String getMethodName(); String getMethodName();
/** /**
* Returns the decoded data. * Returns the decoded data.
*/ */
public Object[] getResponseData(); Object[] getResponseData();
} }

View File

@ -24,5 +24,5 @@ public interface RpcParser<M, R> {
/** /**
* Parses the message returns the result. * Parses the message returns the result.
*/ */
public R parse(M message) throws IOException; R parse(M message) throws IOException;
} }

View File

@ -26,15 +26,15 @@ public interface RpcEventListener {
/** /**
* Called when a new event is received from a Homeamtic gateway. * Called when a new event is received from a Homeamtic gateway.
*/ */
public void eventReceived(HmDatapointInfo dpInfo, Object newValue); void eventReceived(HmDatapointInfo dpInfo, Object newValue);
/** /**
* Called when new devices has been detected on the Homeamtic gateway. * Called when new devices has been detected on the Homeamtic gateway.
*/ */
public void newDevices(List<String> adresses); void newDevices(List<String> adresses);
/** /**
* Called when devices has been deleted from the Homeamtic gateway. * Called when devices has been deleted from the Homeamtic gateway.
*/ */
public void deleteDevices(List<String> addresses); void deleteDevices(List<String> addresses);
} }

View File

@ -24,10 +24,10 @@ public interface RpcServer {
/** /**
* Starts the rpc server. * Starts the rpc server.
*/ */
public void start() throws IOException; void start() throws IOException;
/** /**
* Stops the rpc server. * Stops the rpc server.
*/ */
public void shutdown(); void shutdown();
} }

View File

@ -31,36 +31,36 @@ public interface VirtualDatapointHandler {
/** /**
* Returns the virtual datapoint name. * Returns the virtual datapoint name.
*/ */
public String getName(); String getName();
/** /**
* Adds the virtual datapoint to the device. * Adds the virtual datapoint to the device.
*/ */
public void initialize(HmDevice device); void initialize(HmDevice device);
/** /**
* Returns true, if the virtual datapoint can handle a command for the given datapoint. * Returns true, if the virtual datapoint can handle a command for the given datapoint.
*/ */
public boolean canHandleCommand(HmDatapoint dp, Object value); boolean canHandleCommand(HmDatapoint dp, Object value);
/** /**
* Handles the special functionality for the given virtual datapoint. * Handles the special functionality for the given virtual datapoint.
*/ */
public void handleCommand(VirtualGateway gateway, HmDatapoint dp, HmDatapointConfig dpConfig, Object value) void handleCommand(VirtualGateway gateway, HmDatapoint dp, HmDatapointConfig dpConfig, Object value)
throws IOException, HomematicClientException; throws IOException, HomematicClientException;
/** /**
* Returns true, if the virtual datapoint can handle the event for the given datapoint. * Returns true, if the virtual datapoint can handle the event for the given datapoint.
*/ */
public boolean canHandleEvent(HmDatapoint dp); boolean canHandleEvent(HmDatapoint dp);
/** /**
* Handles an event to extract data required for the virtual datapoint. * Handles an event to extract data required for the virtual datapoint.
*/ */
public void handleEvent(VirtualGateway gateway, HmDatapoint dp); void handleEvent(VirtualGateway gateway, HmDatapoint dp);
/** /**
* Returns the virtual datapoint in the given channel. * Returns the virtual datapoint in the given channel.
*/ */
public HmDatapoint getVirtualDatapoint(HmChannel channel); HmDatapoint getVirtualDatapoint(HmChannel channel);
} }

View File

@ -32,21 +32,21 @@ public interface VirtualGateway extends HomematicGateway {
/** /**
* Sends the datapoint from a virtual datapoint. * Sends the datapoint from a virtual datapoint.
*/ */
public void sendDatapointIgnoreVirtual(HmDatapoint dp, HmDatapointConfig dpConfig, Object newValue) void sendDatapointIgnoreVirtual(HmDatapoint dp, HmDatapointConfig dpConfig, Object newValue)
throws IOException, HomematicClientException; throws IOException, HomematicClientException;
/** /**
* Returns the rpc client. * Returns the rpc client.
*/ */
public RpcClient<?> getRpcClient(HmInterface hmInterface) throws IOException; RpcClient<?> getRpcClient(HmInterface hmInterface) throws IOException;
/** /**
* Disables a boolean datapoint by setting the value to false after a given delay. * Disables a boolean datapoint by setting the value to false after a given delay.
*/ */
public void disableDatapoint(HmDatapoint dp, double delay); void disableDatapoint(HmDatapoint dp, double delay);
/** /**
* Returns the event listener. * Returns the event listener.
*/ */
public HomematicGatewayAdapter getGatewayAdapter(); HomematicGatewayAdapter getGatewayAdapter();
} }

View File

@ -26,10 +26,10 @@ public interface TypeConverter<T extends State> {
/** /**
* Converts an openHAB type to a Homematic value. * Converts an openHAB type to a Homematic value.
*/ */
public Object convertToBinding(Type type, HmDatapoint dp) throws ConverterException; Object convertToBinding(Type type, HmDatapoint dp) throws ConverterException;
/** /**
* Converts a Homematic value to an openHAB type. * Converts a Homematic value to an openHAB type.
*/ */
public T convertFromBinding(HmDatapoint dp) throws ConverterException; T convertFromBinding(HmDatapoint dp) throws ConverterException;
} }

View File

@ -26,7 +26,7 @@ public interface HomematicChannelGroupTypeProvider extends ChannelGroupTypeProvi
/** /**
* Adds the ChannelGroupType to this provider. * Adds the ChannelGroupType to this provider.
*/ */
public void addChannelGroupType(ChannelGroupType channelGroupType); void addChannelGroupType(ChannelGroupType channelGroupType);
/** /**
* Use this method to lookup a ChannelGroupType which was generated by the * Use this method to lookup a ChannelGroupType which was generated by the
@ -41,5 +41,5 @@ public interface HomematicChannelGroupTypeProvider extends ChannelGroupTypeProvi
* <i>null</i> if no ChannelGroupType with the given UID was added * <i>null</i> if no ChannelGroupType with the given UID was added
* before * before
*/ */
public ChannelGroupType getInternalChannelGroupType(ChannelGroupTypeUID channelGroupTypeUID); ChannelGroupType getInternalChannelGroupType(ChannelGroupTypeUID channelGroupTypeUID);
} }

View File

@ -26,7 +26,7 @@ public interface HomematicChannelTypeProvider extends ChannelTypeProvider {
/** /**
* Adds the ChannelType to this provider. * Adds the ChannelType to this provider.
*/ */
public void addChannelType(ChannelType channelType); void addChannelType(ChannelType channelType);
/** /**
* Use this method to lookup a ChannelType which was generated by the * Use this method to lookup a ChannelType which was generated by the
@ -41,5 +41,5 @@ public interface HomematicChannelTypeProvider extends ChannelTypeProvider {
* <i>null</i> if no ChannelType with the given UID was added * <i>null</i> if no ChannelType with the given UID was added
* before * before
*/ */
public ChannelType getInternalChannelType(ChannelTypeUID channelTypeUID); ChannelType getInternalChannelType(ChannelTypeUID channelTypeUID);
} }

View File

@ -29,7 +29,7 @@ public interface HomematicConfigDescriptionProvider extends ConfigDescriptionPro
/** /**
* Adds the ConfigDescription to this provider. * Adds the ConfigDescription to this provider.
*/ */
public void addConfigDescription(ConfigDescription configDescription); void addConfigDescription(ConfigDescription configDescription);
/** /**
* Provides a {@link ConfigDescription} for the given URI. * Provides a {@link ConfigDescription} for the given URI.
@ -56,5 +56,5 @@ public interface HomematicConfigDescriptionProvider extends ConfigDescriptionPro
* <i>null</i> if no ConfigDescription with the given URI was added * <i>null</i> if no ConfigDescription with the given URI was added
* before * before
*/ */
public ConfigDescription getInternalConfigDescription(URI uri); ConfigDescription getInternalConfigDescription(URI uri);
} }

View File

@ -26,7 +26,7 @@ public interface HomematicThingTypeProvider extends ThingTypeProvider {
/** /**
* Adds the ThingType to this provider. * Adds the ThingType to this provider.
*/ */
public void addThingType(ThingType thingType); void addThingType(ThingType thingType);
/** /**
* Use this method to lookup a ThingType which was generated by the * Use this method to lookup a ThingType which was generated by the
@ -41,5 +41,5 @@ public interface HomematicThingTypeProvider extends ThingTypeProvider {
* <i>null</i> if no ThingType with the given thingTypeUID was added * <i>null</i> if no ThingType with the given thingTypeUID was added
* before * before
*/ */
public ThingType getInternalThingType(ThingTypeUID thingTypeUID); ThingType getInternalThingType(ThingTypeUID thingTypeUID);
} }

View File

@ -23,16 +23,16 @@ public interface HomematicTypeGenerator {
/** /**
* Initializes the type generator. * Initializes the type generator.
*/ */
public void initialize(); void initialize();
/** /**
* Generates the ThingType and ChannelTypes for the given device. * Generates the ThingType and ChannelTypes for the given device.
*/ */
public void generate(HmDevice device); void generate(HmDevice device);
/** /**
* Validates all devices for multiple firmware versions. Different firmware versions for the same device may have * Validates all devices for multiple firmware versions. Different firmware versions for the same device may have
* different datapoints which may cause warnings in the logfile. * different datapoints which may cause warnings in the logfile.
*/ */
public void validateFirmwares(); void validateFirmwares();
} }

View File

@ -48,7 +48,7 @@ public interface HomematicThingTypeExcluder {
* @return {@link ThingTypeUID}s of ThingTypes that are supposed to be * @return {@link ThingTypeUID}s of ThingTypes that are supposed to be
* excluded from the binding's thing-type generation * excluded from the binding's thing-type generation
*/ */
public Set<ThingTypeUID> getExcludedThingTypes(); Set<ThingTypeUID> getExcludedThingTypes();
/** /**
* Check for the given {@link ThingTypeUID} whether it is excluded by this * Check for the given {@link ThingTypeUID} whether it is excluded by this
@ -57,7 +57,7 @@ public interface HomematicThingTypeExcluder {
* @param thingType a specific ThingType, specified by its {@link ThingTypeUID} * @param thingType a specific ThingType, specified by its {@link ThingTypeUID}
* @return <i>true</i>, if the {@link ThingType} is excluded * @return <i>true</i>, if the {@link ThingType} is excluded
*/ */
public boolean isThingTypeExcluded(ThingTypeUID thingType); boolean isThingTypeExcluded(ThingTypeUID thingType);
/** /**
* Check for the given {@link ChannelTypeUID} whether it is excluded by this * Check for the given {@link ChannelTypeUID} whether it is excluded by this
@ -67,7 +67,7 @@ public interface HomematicThingTypeExcluder {
* @return <i>true</i>, if the {@link org.openhab.core.thing.type.ChannelType} is * @return <i>true</i>, if the {@link org.openhab.core.thing.type.ChannelType} is
* excluded * excluded
*/ */
public boolean isChannelTypeExcluded(ChannelTypeUID channelType); boolean isChannelTypeExcluded(ChannelTypeUID channelType);
/** /**
* Check for the given {@link ChannelGroupTypeUID} whether it is excluded by * Check for the given {@link ChannelGroupTypeUID} whether it is excluded by
@ -78,7 +78,7 @@ public interface HomematicThingTypeExcluder {
* {@link org.openhab.core.thing.type.ChannelGroupType} is * {@link org.openhab.core.thing.type.ChannelGroupType} is
* excluded * excluded
*/ */
public boolean isChannelGroupTypeExcluded(ChannelGroupTypeUID channelGroupType); boolean isChannelGroupTypeExcluded(ChannelGroupTypeUID channelGroupType);
/** /**
* Check for the given config-description-{@link URI} whether it is excluded by * Check for the given config-description-{@link URI} whether it is excluded by
@ -88,5 +88,5 @@ public interface HomematicThingTypeExcluder {
* @return <i>true</i>, if the {@link org.openhab.core.config.core.ConfigDescription} is * @return <i>true</i>, if the {@link org.openhab.core.config.core.ConfigDescription} is
* excluded * excluded
*/ */
public boolean isConfigDescriptionExcluded(URI configDescriptionURI); boolean isConfigDescriptionExcluded(URI configDescriptionURI);
} }

View File

@ -24,5 +24,5 @@ import org.openhab.binding.hydrawise.internal.api.graphql.dto.Controller;
*/ */
@NonNullByDefault @NonNullByDefault
public interface HydrawiseControllerListener { public interface HydrawiseControllerListener {
public void onData(List<Controller> controllers); void onData(List<Controller> controllers);
} }

View File

@ -26,10 +26,10 @@ public interface DriverListener {
/** /**
* Notification that querying of the modems on all ports has successfully completed. * Notification that querying of the modems on all ports has successfully completed.
*/ */
public abstract void driverCompletelyInitialized(); void driverCompletelyInitialized();
/** /**
* Notification that the driver was disconnected * Notification that the driver was disconnected
*/ */
public abstract void disconnected(); void disconnected();
} }

View File

@ -27,5 +27,5 @@ public interface MsgListener {
* *
* @param msg the message received * @param msg the message received
*/ */
public abstract void msg(Msg msg); void msg(Msg msg);
} }

View File

@ -31,5 +31,5 @@ public interface TransceiverStatusListener {
* @param bridge * @param bridge
* @param command the infrared command * @param command the infrared command
*/ */
public void onCommandReceived(EthernetBridgeHandler bridge, IrCommand command); void onCommandReceived(EthernetBridgeHandler bridge, IrCommand command);
} }

View File

@ -18,5 +18,5 @@ package org.openhab.binding.jeelink.internal;
* @author Volker Bier - Initial contribution * @author Volker Bier - Initial contribution
*/ */
public interface JeeLinkReadingConverter<R extends Reading> { public interface JeeLinkReadingConverter<R extends Reading> {
public R createReading(String inputLine); R createReading(String inputLine);
} }

View File

@ -18,9 +18,9 @@ package org.openhab.binding.jeelink.internal;
* @author Volker Bier - Initial contribution * @author Volker Bier - Initial contribution
*/ */
public interface ReadingHandler<R extends Reading> { public interface ReadingHandler<R extends Reading> {
public void handleReading(R r); void handleReading(R r);
public Class<R> getReadingClass(); Class<R> getReadingClass();
public String getSensorType(); String getSensorType();
} }

View File

@ -18,7 +18,7 @@ package org.openhab.binding.jeelink.internal;
* @author Volker Bier - Initial contribution * @author Volker Bier - Initial contribution
*/ */
public interface ReadingPublisher<R extends Reading> { public interface ReadingPublisher<R extends Reading> {
public void publish(R reading); void publish(R reading);
public void dispose(); void dispose();
} }

View File

@ -39,5 +39,5 @@ public interface ConnectionListener {
/** /**
* Called whenever input has been read from the connection. * Called whenever input has been read from the connection.
*/ */
public void handleInput(String input); void handleInput(String input);
} }

View File

@ -23,5 +23,5 @@ import org.openhab.core.thing.ThingStatus;
*/ */
@NonNullByDefault @NonNullByDefault
public interface KM200GatewayStatusListener { public interface KM200GatewayStatusListener {
public void gatewayStatusChanged(ThingStatus status); void gatewayStatusChanged(ThingStatus status);
} }

View File

@ -36,5 +36,5 @@ public interface DeviceInfoClient {
final int propertyId, final int start, final int elements, boolean authenticate, long timeout) final int propertyId, final int start, final int elements, boolean authenticate, long timeout)
throws InterruptedException; throws InterruptedException;
public boolean isConnected(); boolean isConnected();
} }

View File

@ -32,5 +32,5 @@ public interface GroupAddressListener extends BusMessageListener {
* *
* @param destination * @param destination
*/ */
public boolean listensTo(GroupAddress destination); boolean listensTo(GroupAddress destination);
} }

View File

@ -31,7 +31,7 @@ import org.openhab.core.library.types.RawType;
* @author Christoph Weitkamp - Improvements for playing audio notifications * @author Christoph Weitkamp - Improvements for playing audio notifications
*/ */
public interface KodiEventListener extends EventListener { public interface KodiEventListener extends EventListener {
public enum KodiState { enum KodiState {
PLAY, PLAY,
PAUSE, PAUSE,
END, END,
@ -40,7 +40,7 @@ public interface KodiEventListener extends EventListener {
FASTFORWARD FASTFORWARD
} }
public enum KodiPlaylistState { enum KodiPlaylistState {
ADD, ADD,
ADDED, ADDED,
INSERT, INSERT,

View File

@ -52,7 +52,7 @@ public interface LaMetricTime {
* *
* @return the version * @return the version
*/ */
public String getVersion(); String getVersion();
/** /**
* Send a low priority message to the device. * Send a low priority message to the device.
@ -63,7 +63,7 @@ public interface LaMetricTime {
* @throws NotificationCreationException * @throws NotificationCreationException
* if there is a communication error or malformed data * if there is a communication error or malformed data
*/ */
public String notifyInfo(String message) throws NotificationCreationException; String notifyInfo(String message) throws NotificationCreationException;
/** /**
* Send a medium priority message to the device. * Send a medium priority message to the device.
@ -74,7 +74,7 @@ public interface LaMetricTime {
* @throws NotificationCreationException * @throws NotificationCreationException
* if there is a communication error or malformed data * if there is a communication error or malformed data
*/ */
public String notifyWarning(String message) throws NotificationCreationException; String notifyWarning(String message) throws NotificationCreationException;
/** /**
* Send an urgent message to the device. The notification will not be * Send an urgent message to the device. The notification will not be
@ -87,7 +87,7 @@ public interface LaMetricTime {
* @throws NotificationCreationException * @throws NotificationCreationException
* if there is a communication error or malformed data * if there is a communication error or malformed data
*/ */
public String notifyCritical(String message) throws NotificationCreationException; String notifyCritical(String message) throws NotificationCreationException;
/** /**
* Send a notification to the device. * Send a notification to the device.
@ -128,7 +128,7 @@ public interface LaMetricTime {
* @throws NotificationCreationException * @throws NotificationCreationException
* if there is a communication error or malformed data * if there is a communication error or malformed data
*/ */
public String notify(String message, Priority priority, Icon icon, Sound sound, int messageRepeat, int soundRepeat) String notify(String message, Priority priority, Icon icon, Sound sound, int messageRepeat, int soundRepeat)
throws NotificationCreationException; throws NotificationCreationException;
/** /**
@ -137,7 +137,8 @@ public interface LaMetricTime {
* *
* @return the clock app * @return the clock app
*/ */
public @Nullable Application getClock(); @Nullable
Application getClock();
/** /**
* Get the built-in countdown timer application. This application counts * Get the built-in countdown timer application. This application counts
@ -146,7 +147,8 @@ public interface LaMetricTime {
* *
* @return the countdown app * @return the countdown app
*/ */
public @Nullable Application getCountdown(); @Nullable
Application getCountdown();
/** /**
* Get the built-in radio application. The radio can play streams from the * Get the built-in radio application. The radio can play streams from the
@ -155,7 +157,8 @@ public interface LaMetricTime {
* *
* @return the radio app * @return the radio app
*/ */
public @Nullable Application getRadio(); @Nullable
Application getRadio();
/** /**
* Get the built-in stopwatch application. The stopwatch counts time * Get the built-in stopwatch application. The stopwatch counts time
@ -163,7 +166,8 @@ public interface LaMetricTime {
* *
* @return the stopwatch app * @return the stopwatch app
*/ */
public @Nullable Application getStopwatch(); @Nullable
Application getStopwatch();
/** /**
* Get the built-in weather application. This application displays the * Get the built-in weather application. This application displays the
@ -172,7 +176,8 @@ public interface LaMetricTime {
* *
* @return the weather app * @return the weather app
*/ */
public @Nullable Application getWeather(); @Nullable
Application getWeather();
/** /**
* Get any of the built-in applications. * Get any of the built-in applications.
@ -181,7 +186,8 @@ public interface LaMetricTime {
* the app to retrieve * the app to retrieve
* @return the requested app * @return the requested app
*/ */
public @Nullable Application getApplication(CoreApplication coreApp); @Nullable
Application getApplication(CoreApplication coreApp);
/** /**
* Get any application installed on the device. * Get any application installed on the device.
@ -192,7 +198,8 @@ public interface LaMetricTime {
* @throws ApplicationNotFoundException * @throws ApplicationNotFoundException
* if the requested app is not found on the device * if the requested app is not found on the device
*/ */
public @Nullable Application getApplication(@Nullable String name) throws ApplicationNotFoundException; @Nullable
Application getApplication(@Nullable String name) throws ApplicationNotFoundException;
/** /**
* Display the given built-in application on the device. * Display the given built-in application on the device.
@ -200,7 +207,7 @@ public interface LaMetricTime {
* @param coreApp * @param coreApp
* the app to activate * the app to activate
*/ */
public void activateApplication(CoreApplication coreApp); void activateApplication(CoreApplication coreApp);
/** /**
* Display the first instance (widget) of the given application on the * Display the first instance (widget) of the given application on the
@ -211,7 +218,7 @@ public interface LaMetricTime {
* @throws ApplicationActivationException * @throws ApplicationActivationException
* if the app fails to activate * if the app fails to activate
*/ */
public void activateApplication(Application app) throws ApplicationActivationException; void activateApplication(Application app) throws ApplicationActivationException;
/** /**
* Display the given widget on the device. A widget is simply an instance of * Display the given widget on the device. A widget is simply an instance of
@ -224,7 +231,7 @@ public interface LaMetricTime {
* @throws ApplicationActivationException * @throws ApplicationActivationException
* if the app fails to activate * if the app fails to activate
*/ */
public void activateWidget(Widget widget) throws ApplicationActivationException; void activateWidget(Widget widget) throws ApplicationActivationException;
/** /**
* Perform the given action on the first instance (widget) of the * Perform the given action on the first instance (widget) of the
@ -234,7 +241,7 @@ public interface LaMetricTime {
* @param coreAction * @param coreAction
* the action to perform * the action to perform
*/ */
public void doAction(CoreAction coreAction); void doAction(CoreAction coreAction);
/** /**
* Perform the given action on the first instance (widget) of the given * Perform the given action on the first instance (widget) of the given
@ -248,7 +255,7 @@ public interface LaMetricTime {
* @throws ApplicationActionException * @throws ApplicationActionException
* if the action cannot be performed * if the action cannot be performed
*/ */
public void doAction(Application app, UpdateAction action) throws ApplicationActionException; void doAction(Application app, UpdateAction action) throws ApplicationActionException;
/** /**
* Perform the given core action on the given widget. A widget is simply an * Perform the given core action on the given widget. A widget is simply an
@ -264,7 +271,7 @@ public interface LaMetricTime {
* @throws ApplicationActionException * @throws ApplicationActionException
* if the action cannot be performed * if the action cannot be performed
*/ */
public void doAction(@Nullable Widget widget, CoreAction action) throws ApplicationActionException; void doAction(@Nullable Widget widget, CoreAction action) throws ApplicationActionException;
/** /**
* Perform the given action on the given widget. A widget is simply an * Perform the given action on the given widget. A widget is simply an
@ -280,7 +287,7 @@ public interface LaMetricTime {
* @throws ApplicationActionException * @throws ApplicationActionException
* if the action cannot be performed * if the action cannot be performed
*/ */
public void doAction(Widget widget, UpdateAction action) throws ApplicationActionException; void doAction(Widget widget, UpdateAction action) throws ApplicationActionException;
/** /**
* Set the display brightness. The {@link #setBrightnessMode(BrightnessMode) * Set the display brightness. The {@link #setBrightnessMode(BrightnessMode)
@ -293,7 +300,7 @@ public interface LaMetricTime {
* @throws UpdateException * @throws UpdateException
* if the update failed * if the update failed
*/ */
public Display setBrightness(int brightness) throws UpdateException; Display setBrightness(int brightness) throws UpdateException;
/** /**
* Set the brightness mode on the display. {@link BrightnessMode#MANUAL} * Set the brightness mode on the display. {@link BrightnessMode#MANUAL}
@ -307,7 +314,7 @@ public interface LaMetricTime {
* @throws UpdateException * @throws UpdateException
* if the update failed * if the update failed
*/ */
public Display setBrightnessMode(BrightnessMode mode) throws UpdateException; Display setBrightnessMode(BrightnessMode mode) throws UpdateException;
/** /**
* Set the speaker volume on the device. * Set the speaker volume on the device.
@ -318,7 +325,7 @@ public interface LaMetricTime {
* @throws UpdateException * @throws UpdateException
* if the update failed * if the update failed
*/ */
public Audio setVolume(int volume) throws UpdateException; Audio setVolume(int volume) throws UpdateException;
/** /**
* Mute the device's speakers. The current volume will be stored so that * Mute the device's speakers. The current volume will be stored so that
@ -329,7 +336,7 @@ public interface LaMetricTime {
* @throws UpdateException * @throws UpdateException
* if the update failed * if the update failed
*/ */
public Audio mute() throws UpdateException; Audio mute() throws UpdateException;
/** /**
* Restore the volume prior to {@link #mute()}. If the volume has not been * Restore the volume prior to {@link #mute()}. If the volume has not been
@ -339,7 +346,7 @@ public interface LaMetricTime {
* @throws UpdateException * @throws UpdateException
* if the update failed * if the update failed
*/ */
public Audio unmute() throws UpdateException; Audio unmute() throws UpdateException;
/** /**
* Set the active state of the Bluetooth radio on the device. * Set the active state of the Bluetooth radio on the device.
@ -351,7 +358,7 @@ public interface LaMetricTime {
* @throws UpdateException * @throws UpdateException
* if the update failed * if the update failed
*/ */
public Bluetooth setBluetoothActive(boolean active) throws UpdateException; Bluetooth setBluetoothActive(boolean active) throws UpdateException;
/** /**
* Set the device name as seen via Bluetooth connectivity. * Set the device name as seen via Bluetooth connectivity.
@ -362,21 +369,21 @@ public interface LaMetricTime {
* @throws UpdateException * @throws UpdateException
* if the update failed * if the update failed
*/ */
public Bluetooth setBluetoothName(String name) throws UpdateException; Bluetooth setBluetoothName(String name) throws UpdateException;
/** /**
* Get the local API for more advanced interactions as well device inquiry. * Get the local API for more advanced interactions as well device inquiry.
* *
* @return the local API * @return the local API
*/ */
public LaMetricTimeLocal getLocalApi(); LaMetricTimeLocal getLocalApi();
/** /**
* Get the cloud API for interacting with LaMetric's services. * Get the cloud API for interacting with LaMetric's services.
* *
* @return the cloud API * @return the cloud API
*/ */
public LaMetricTimeCloud getCloudApi(); LaMetricTimeCloud getCloudApi();
/** /**
* Create an instance of this API. For greater control over the * Create an instance of this API. For greater control over the
@ -388,7 +395,7 @@ public interface LaMetricTime {
* the configuration parameters that the new instance will use * the configuration parameters that the new instance will use
* @return the API instance * @return the API instance
*/ */
public static LaMetricTime create(Configuration config) { static LaMetricTime create(Configuration config) {
return new LaMetricTimeImpl(config); return new LaMetricTimeImpl(config);
} }
@ -404,7 +411,7 @@ public interface LaMetricTime {
* communicating with the device and cloud services * communicating with the device and cloud services
* @return the API instance * @return the API instance
*/ */
public static LaMetricTime create(Configuration config, ClientBuilder clientBuilder) { static LaMetricTime create(Configuration config, ClientBuilder clientBuilder) {
return new LaMetricTimeImpl(config, clientBuilder); return new LaMetricTimeImpl(config, clientBuilder);
} }
@ -419,7 +426,7 @@ public interface LaMetricTime {
* the cloud API configuration for the new instance * the cloud API configuration for the new instance
* @return the API instance * @return the API instance
*/ */
public static LaMetricTime create(LocalConfiguration localConfig, CloudConfiguration cloudConfig) { static LaMetricTime create(LocalConfiguration localConfig, CloudConfiguration cloudConfig) {
return new LaMetricTimeImpl(localConfig, cloudConfig); return new LaMetricTimeImpl(localConfig, cloudConfig);
} }
@ -436,7 +443,7 @@ public interface LaMetricTime {
* communicating with the device and cloud services * communicating with the device and cloud services
* @return the API instance * @return the API instance
*/ */
public static LaMetricTime create(LocalConfiguration localConfig, CloudConfiguration cloudConfig, static LaMetricTime create(LocalConfiguration localConfig, CloudConfiguration cloudConfig,
ClientBuilder clientBuilder) { ClientBuilder clientBuilder) {
return new LaMetricTimeImpl(localConfig, cloudConfig, clientBuilder); return new LaMetricTimeImpl(localConfig, cloudConfig, clientBuilder);
} }

View File

@ -26,15 +26,15 @@ import org.openhab.binding.lametrictime.internal.api.cloud.impl.LaMetricTimeClou
*/ */
@NonNullByDefault @NonNullByDefault
public interface LaMetricTimeCloud { public interface LaMetricTimeCloud {
public Icons getIcons(); Icons getIcons();
public Icons getIcons(IconFilter filter); Icons getIcons(IconFilter filter);
public static LaMetricTimeCloud create(CloudConfiguration config) { static LaMetricTimeCloud create(CloudConfiguration config) {
return new LaMetricTimeCloudImpl(config); return new LaMetricTimeCloudImpl(config);
} }
public static LaMetricTimeCloud create(CloudConfiguration config, ClientBuilder clientBuilder) { static LaMetricTimeCloud create(CloudConfiguration config, ClientBuilder clientBuilder) {
return new LaMetricTimeCloudImpl(config, clientBuilder); return new LaMetricTimeCloudImpl(config, clientBuilder);
} }
} }

View File

@ -18,9 +18,9 @@ package org.openhab.binding.lametrictime.internal.api.dto;
* @author Gregory Moyer - Initial contribution * @author Gregory Moyer - Initial contribution
*/ */
public interface ApiValue { public interface ApiValue {
public String toRaw(); String toRaw();
public static String raw(ApiValue value) { static String raw(ApiValue value) {
if (value == null) { if (value == null) {
return null; return null;
} }

View File

@ -38,55 +38,55 @@ import org.openhab.binding.lametrictime.internal.api.local.impl.LaMetricTimeLoca
*/ */
@NonNullByDefault @NonNullByDefault
public interface LaMetricTimeLocal { public interface LaMetricTimeLocal {
public Api getApi(); Api getApi();
public Device getDevice(); Device getDevice();
public String createNotification(Notification notification) throws NotificationCreationException; String createNotification(Notification notification) throws NotificationCreationException;
public List<Notification> getNotifications(); List<Notification> getNotifications();
public @Nullable Notification getCurrentNotification(); @Nullable
Notification getCurrentNotification();
public Notification getNotification(String id) throws NotificationNotFoundException; Notification getNotification(String id) throws NotificationNotFoundException;
public void deleteNotification(String id) throws NotificationNotFoundException; void deleteNotification(String id) throws NotificationNotFoundException;
public Display getDisplay(); Display getDisplay();
public Display updateDisplay(Display display) throws UpdateException; Display updateDisplay(Display display) throws UpdateException;
public Audio getAudio(); Audio getAudio();
public Audio updateAudio(Audio audio) throws UpdateException; Audio updateAudio(Audio audio) throws UpdateException;
public Bluetooth getBluetooth(); Bluetooth getBluetooth();
public Bluetooth updateBluetooth(Bluetooth bluetooth) throws UpdateException; Bluetooth updateBluetooth(Bluetooth bluetooth) throws UpdateException;
public Wifi getWifi(); Wifi getWifi();
public void updateApplication(String packageName, String accessToken, WidgetUpdates widgetUpdates) void updateApplication(String packageName, String accessToken, WidgetUpdates widgetUpdates) throws UpdateException;
throws UpdateException;
public SortedMap<String, Application> getApplications(); SortedMap<String, Application> getApplications();
public @Nullable Application getApplication(String packageName) throws ApplicationNotFoundException; @Nullable
Application getApplication(String packageName) throws ApplicationNotFoundException;
public void activatePreviousApplication(); void activatePreviousApplication();
public void activateNextApplication(); void activateNextApplication();
public void activateApplication(String packageName, String widgetId) throws ApplicationActivationException; void activateApplication(String packageName, String widgetId) throws ApplicationActivationException;
public void doAction(String packageName, String widgetId, @Nullable UpdateAction action) void doAction(String packageName, String widgetId, @Nullable UpdateAction action) throws ApplicationActionException;
throws ApplicationActionException;
public static LaMetricTimeLocal create(LocalConfiguration config) { static LaMetricTimeLocal create(LocalConfiguration config) {
return new LaMetricTimeLocalImpl(config); return new LaMetricTimeLocalImpl(config);
} }
public static LaMetricTimeLocal create(LocalConfiguration config, ClientBuilder clientBuilder) { static LaMetricTimeLocal create(LocalConfiguration config, ClientBuilder clientBuilder) {
return new LaMetricTimeLocalImpl(config, clientBuilder); return new LaMetricTimeLocalImpl(config, clientBuilder);
} }
} }

View File

@ -29,5 +29,6 @@ public interface LaMetricTimeAppHandler {
* *
* @return the {@link Widget} * @return the {@link Widget}
*/ */
public @Nullable Widget getWidget(); @Nullable
Widget getWidget();
} }

View File

@ -36,5 +36,5 @@ public interface PacketHandler<T extends Packet> {
* @throws IllegalArgumentException when an empty packet could not be created or the data in the buffer * @throws IllegalArgumentException when an empty packet could not be created or the data in the buffer
* could not be parsed * could not be parsed
*/ */
public abstract T handle(ByteBuffer buf); T handle(ByteBuffer buf);
} }

View File

@ -31,5 +31,5 @@ public interface LifxPropertiesUpdateListener {
* *
* @param packet the updated properties * @param packet the updated properties
*/ */
public void handlePropertiesUpdate(Map<String, String> properties); void handlePropertiesUpdate(Map<String, String> properties);
} }

View File

@ -30,5 +30,5 @@ public interface LifxResponsePacketListener {
* *
* @param packet the received packet * @param packet the received packet
*/ */
public void handleResponsePacket(Packet packet); void handleResponsePacket(Packet packet);
} }

View File

@ -24,11 +24,11 @@ import org.openhab.binding.lutron.internal.discovery.project.ComponentType;
@NonNullByDefault @NonNullByDefault
public interface KeypadComponent { public interface KeypadComponent {
public int id(); int id();
public String channel(); String channel();
public String description(); String description();
public ComponentType type(); ComponentType type();
} }

View File

@ -23,12 +23,12 @@ public interface SocketSessionCallback {
* *
* @param response a non-null, possibly empty response * @param response a non-null, possibly empty response
*/ */
public void responseReceived(String response); void responseReceived(String response);
/** /**
* Called when a command finished with an exception * Called when a command finished with an exception
* *
* @param e a non-null exception * @param e a non-null exception
*/ */
public void responseException(Exception e); void responseException(Exception e);
} }

View File

@ -29,19 +29,19 @@ import org.openhab.binding.lutron.internal.protocol.leap.dto.ZoneStatus;
@NonNullByDefault @NonNullByDefault
public interface LeapMessageParserCallbacks { public interface LeapMessageParserCallbacks {
public void validMessageReceived(String communiqueType); void validMessageReceived(String communiqueType);
public void handleEmptyButtonGroupDefinition(); void handleEmptyButtonGroupDefinition();
public void handleZoneUpdate(ZoneStatus zoneStatus); void handleZoneUpdate(ZoneStatus zoneStatus);
public void handleGroupUpdate(int groupNumber, String occupancyStatus); void handleGroupUpdate(int groupNumber, String occupancyStatus);
public void handleMultipleButtonGroupDefinition(List<ButtonGroup> buttonGroupList); void handleMultipleButtonGroupDefinition(List<ButtonGroup> buttonGroupList);
public void handleMultipleDeviceDefintion(List<Device> deviceList); void handleMultipleDeviceDefintion(List<Device> deviceList);
public void handleMultipleAreaDefinition(List<Area> areaList); void handleMultipleAreaDefinition(List<Area> areaList);
public void handleMultipleOccupancyGroupDefinition(List<OccupancyGroup> oGroupList); void handleMultipleOccupancyGroupDefinition(List<OccupancyGroup> oGroupList);
} }

View File

@ -23,11 +23,11 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
@NonNullByDefault @NonNullByDefault
public interface RadioRAConnection { public interface RadioRAConnection {
public void open(String portName, int baud) throws RadioRAConnectionException; void open(String portName, int baud) throws RadioRAConnectionException;
public void disconnect(); void disconnect();
public void write(String command); void write(String command);
public void setListener(RadioRAFeedbackListener listener); void setListener(RadioRAFeedbackListener listener);
} }

View File

@ -24,5 +24,5 @@ public interface MeteostickEventListener {
* *
* @param data a line of data from the meteoStick * @param data a line of data from the meteoStick
*/ */
public void onDataReceived(String data[]); void onDataReceived(String data[]);
} }

View File

@ -26,5 +26,5 @@ public interface OAuthTokenRefreshListener {
* *
* @param accessToken The new access token. * @param accessToken The new access token.
*/ */
public void onNewAccessToken(String accessToken); void onNewAccessToken(String accessToken);
} }

View File

@ -33,14 +33,14 @@ public interface OAuthTokenRefresher {
* @throws OAuthException if the listener needs to be registered at an underlying service which is not available * @throws OAuthException if the listener needs to be registered at an underlying service which is not available
* because the account has not yet been authorized * because the account has not yet been authorized
*/ */
public void setRefreshListener(OAuthTokenRefreshListener listener, String serviceHandle); void setRefreshListener(OAuthTokenRefreshListener listener, String serviceHandle);
/** /**
* Unsets a listener. * Unsets a listener.
* *
* @param serviceHandle The service handle identifying the internal OAuth configuration. * @param serviceHandle The service handle identifying the internal OAuth configuration.
*/ */
public void unsetRefreshListener(String serviceHandle); void unsetRefreshListener(String serviceHandle);
/** /**
* Refreshes the access and refresh tokens for the given service handle. If an {@link OAuthTokenRefreshListener} is * Refreshes the access and refresh tokens for the given service handle. If an {@link OAuthTokenRefreshListener} is
@ -52,7 +52,7 @@ public interface OAuthTokenRefresher {
* @param serviceHandle The service handle identifying the internal OAuth configuration. * @param serviceHandle The service handle identifying the internal OAuth configuration.
* @throws OAuthException if the token cannot be obtained or refreshed * @throws OAuthException if the token cannot be obtained or refreshed
*/ */
public void refreshToken(String serviceHandle); void refreshToken(String serviceHandle);
/** /**
* Gets the currently stored access token from persistent storage. * Gets the currently stored access token from persistent storage.
@ -60,7 +60,7 @@ public interface OAuthTokenRefresher {
* @param serviceHandle The service handle identifying the internal OAuth configuration. * @param serviceHandle The service handle identifying the internal OAuth configuration.
* @return The currently stored access token or an empty {@link Optional} if there is no stored token. * @return The currently stored access token or an empty {@link Optional} if there is no stored token.
*/ */
public Optional<String> getAccessTokenFromStorage(String serviceHandle); Optional<String> getAccessTokenFromStorage(String serviceHandle);
/** /**
* Removes the tokens from persistent storage. * Removes the tokens from persistent storage.
@ -70,5 +70,5 @@ public interface OAuthTokenRefresher {
* *
* @param serviceHandle The service handle identifying the internal OAuth configuration. * @param serviceHandle The service handle identifying the internal OAuth configuration.
*/ */
public void removeTokensFromStorage(String serviceHandle); void removeTokensFromStorage(String serviceHandle);
} }

View File

@ -27,5 +27,5 @@ public interface MieleWebserviceFactory {
* @param configuration The configuration holding all required parameters to construct the instance. * @param configuration The configuration holding all required parameters to construct the instance.
* @return A new {@link MieleWebservice}. * @return A new {@link MieleWebservice}.
*/ */
public MieleWebservice create(MieleWebserviceConfiguration configuration); MieleWebservice create(MieleWebserviceConfiguration configuration);
} }

View File

@ -21,7 +21,7 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
*/ */
@NonNullByDefault @NonNullByDefault
public interface Data { public interface Data {
public enum DataType { enum DataType {
INFO, INFO,
POWER, POWER,
WALLBOX, WALLBOX,

View File

@ -34,12 +34,12 @@ public interface ModbusDiscoveryListener {
* Discovery participant should call this method when a new * Discovery participant should call this method when a new
* thing has been discovered * thing has been discovered
*/ */
public void thingDiscovered(DiscoveryResult result); void thingDiscovered(DiscoveryResult result);
/** /**
* This method should be called once the discovery has been finished * This method should be called once the discovery has been finished
* or aborted by any error. * or aborted by any error.
* It is important to call this even when there were no things discovered. * It is important to call this even when there were no things discovered.
*/ */
public void discoveryFinished(); void discoveryFinished();
} }

View File

@ -37,12 +37,12 @@ public interface ModbusDiscoveryParticipant {
* *
* @return a set of thing type UIDs for which results can be created * @return a set of thing type UIDs for which results can be created
*/ */
public Set<ThingTypeUID> getSupportedThingTypeUIDs(); Set<ThingTypeUID> getSupportedThingTypeUIDs();
/** /**
* Start an asynchronous discovery process of a Modbus endpoint * Start an asynchronous discovery process of a Modbus endpoint
* *
* @param handler the endpoint that should be discovered * @param handler the endpoint that should be discovered
*/ */
public void startDiscovery(ModbusEndpointThingHandler handler, ModbusDiscoveryListener listener); void startDiscovery(ModbusEndpointThingHandler handler, ModbusDiscoveryListener listener);
} }

View File

@ -32,12 +32,12 @@ public interface ModbusThingHandlerDiscoveryService extends ThingHandlerService
* @param service the discovery service that should be called when the discovery is finished * @param service the discovery service that should be called when the discovery is finished
* @return returns true if discovery is enabled, false otherwise * @return returns true if discovery is enabled, false otherwise
*/ */
public boolean startScan(ModbusDiscoveryService service); boolean startScan(ModbusDiscoveryService service);
/** /**
* This method should return true, if an async scan is in progress * This method should return true, if an async scan is in progress
* *
* @return true if a scan is in progress false otherwise * @return true if a scan is in progress false otherwise
*/ */
public boolean scanInProgress(); boolean scanInProgress();
} }

View File

@ -34,7 +34,8 @@ public interface ModbusEndpointThingHandler extends Identifiable<ThingUID> {
* *
* @return communication interface represented by this thing handler * @return communication interface represented by this thing handler
*/ */
public @Nullable ModbusCommunicationInterface getCommunicationInterface(); @Nullable
ModbusCommunicationInterface getCommunicationInterface();
/** /**
* Get Slave ID, also called as unit id, represented by the thing * Get Slave ID, also called as unit id, represented by the thing
@ -42,12 +43,12 @@ public interface ModbusEndpointThingHandler extends Identifiable<ThingUID> {
* @return slave id represented by this thing handler * @return slave id represented by this thing handler
* @throws EndpointNotInitializedException in case the initialization is not complete * @throws EndpointNotInitializedException in case the initialization is not complete
*/ */
public int getSlaveId() throws EndpointNotInitializedException; int getSlaveId() throws EndpointNotInitializedException;
/** /**
* Return true if auto discovery is enabled for this endpoint * Return true if auto discovery is enabled for this endpoint
* *
* @return boolean true if the discovery is enabled * @return boolean true if the discovery is enabled
*/ */
public boolean isDiscoveryEnabled(); boolean isDiscoveryEnabled();
} }

View File

@ -29,5 +29,5 @@ public interface MonopriceAudioMessageEventListener extends EventListener {
* *
* @param event the MonopriceAudioMessageEvent * @param event the MonopriceAudioMessageEvent
*/ */
public void onNewMessageEvent(MonopriceAudioMessageEvent event); void onNewMessageEvent(MonopriceAudioMessageEvent event);
} }

View File

@ -32,7 +32,7 @@ public interface AvailabilityTracker {
* @param payload_available * @param payload_available
* @param payload_not_available * @param payload_not_available
*/ */
public void addAvailabilityTopic(String availability_topic, String payload_available, String payload_not_available); void addAvailabilityTopic(String availability_topic, String payload_available, String payload_not_available);
/** /**
* Adds an availability topic to determine the availability of a device. * Adds an availability topic to determine the availability of a device.
@ -47,18 +47,18 @@ public interface AvailabilityTracker {
* @param transformationServiceProvider The service provider to obtain the transformation service (required only if * @param transformationServiceProvider The service provider to obtain the transformation service (required only if
* transformation_pattern is not null). * transformation_pattern is not null).
*/ */
public void addAvailabilityTopic(String availability_topic, String payload_available, String payload_not_available, void addAvailabilityTopic(String availability_topic, String payload_available, String payload_not_available,
@Nullable String transformation_pattern, @Nullable String transformation_pattern,
@Nullable TransformationServiceProvider transformationServiceProvider); @Nullable TransformationServiceProvider transformationServiceProvider);
public void removeAvailabilityTopic(String availability_topic); void removeAvailabilityTopic(String availability_topic);
public void clearAllAvailabilityTopics(); void clearAllAvailabilityTopics();
/** /**
* resets the indicator, if messages have been received. * resets the indicator, if messages have been received.
* <p> * <p>
* This is used to time out the availability of the device after some time without receiving a message. * This is used to time out the availability of the device after some time without receiving a message.
*/ */
public void resetMessageReceived(); void resetMessageReceived();
} }

View File

@ -22,5 +22,5 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
@NonNullByDefault @NonNullByDefault
public interface ByteResponseCallback extends ResponseCallback { public interface ByteResponseCallback extends ResponseCallback {
public void onResponse(byte[] result); void onResponse(byte[] result);
} }

View File

@ -22,5 +22,5 @@ import org.openhab.binding.mybmw.internal.dto.network.NetworkError;
*/ */
@NonNullByDefault @NonNullByDefault
public interface ResponseCallback { public interface ResponseCallback {
public void onError(NetworkError error); void onError(NetworkError error);
} }

View File

@ -23,5 +23,5 @@ import org.eclipse.jdt.annotation.Nullable;
@NonNullByDefault @NonNullByDefault
public interface StringResponseCallback extends ResponseCallback { public interface StringResponseCallback extends ResponseCallback {
public void onResponse(@Nullable String result); void onResponse(@Nullable String result);
} }

View File

@ -23,5 +23,5 @@ import org.openhab.core.types.Command;
@NonNullByDefault @NonNullByDefault
public interface ChannelCommandHandler { public interface ChannelCommandHandler {
public void handleCommand(Command command); void handleCommand(Command command);
} }

View File

@ -26,5 +26,5 @@ import org.openhab.binding.mynice.internal.xml.dto.Device;
@NonNullByDefault @NonNullByDefault
public interface MyNiceDataListener { public interface MyNiceDataListener {
public void onDataFetched(List<Device> devices); void onDataFetched(List<Device> devices);
} }

Some files were not shown because too many files have changed in this diff Show More