提交 5b8f1c73 编写于 作者: S Sergey Tikhomirov

Fixing out checkstyle issues

上级 847e197c
......@@ -32,6 +32,8 @@ public class ConnectionState {
}
/**
* Is airplane mode enabled or not.
*
* @return true if airplane mode is enabled.
*/
public boolean isAirplaneModeEnabled() {
......@@ -39,6 +41,8 @@ public class ConnectionState {
}
/**
* Is Wi-Fi connection enabled or not.
*
* @return true if Wi-Fi connection is enabled.
*/
public boolean isWiFiEnabled() {
......@@ -46,6 +50,8 @@ public class ConnectionState {
}
/**
* Is data connection enabled or not.
*
* @return true if data connection is enabled.
*/
public boolean isDataEnabled() {
......
......@@ -48,7 +48,7 @@ public interface HasIOSClipboard extends HasClipboard {
}
/**
* Get an image from the clipboard
* Get an image from the clipboard.
*
* @return the actual image instance.
* @throws IOException If the returned image cannot be decoded or if the clipboard is empty.
......@@ -72,7 +72,7 @@ public interface HasIOSClipboard extends HasClipboard {
}
/**
* Get an URL from the clipboard
* Get an URL from the clipboard.
*
* @return the actual URL instance.
* @throws MalformedURLException if the URL in the clipboard is not valid or if the clipboard is empty.
......
......@@ -21,6 +21,8 @@ import java.util.List;
public interface CanHandleConnects {
/**
* Returns a list of all registered web socket connection handlers.
*
* @return The list of web socket connection handlers.
*/
List<Runnable> getConnectionHandlers();
......
......@@ -21,6 +21,8 @@ import java.util.List;
public interface CanHandleDisconnects {
/**
* Returns a list of all registered web socket disconnection handlers.
*
* @return The list of web socket disconnection handlers.
*/
List<Runnable> getDisconnectionHandlers();
......
......@@ -22,6 +22,8 @@ import java.util.function.Consumer;
public interface CanHandleErrors {
/**
* Returns a list of all registered web socket error handlers.
*
* @return The list of web socket error handlers.
*/
List<Consumer<Throwable>> getErrorHandlers();
......
......@@ -21,6 +21,8 @@ import java.util.function.Consumer;
public interface CanHandleMessages<T> {
/**
* Returns a list of all registered web socket messages handlers.
*
* @return The list of web socket message handlers.
*/
List<Consumer<T>> getMessageHandlers();
......
......@@ -104,33 +104,21 @@ public class StringWebSocketClient extends WebSocketClient implements
getMessageHandlers().forEach(x -> x.accept(message));
}
/**
* @return The list of all registered web socket messages handlers.
*/
@Override
public List<Consumer<String>> getMessageHandlers() {
return messageHandlers;
}
/**
* @return The list of all registered web socket error handlers.
*/
@Override
public List<Consumer<Throwable>> getErrorHandlers() {
return errorHandlers;
}
/**
* @return The list of all registered web socket connection handlers.
*/
@Override
public List<Runnable> getConnectionHandlers() {
return connectHandlers;
}
/**
* @return The list of all registered web socket disconnection handlers.
*/
@Override
public List<Runnable> getDisconnectionHandlers() {
return disconnectHandlers;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册