Skip to content

Commit

Permalink
javadoc added for new functional interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
faob-dev committed Mar 29, 2018
1 parent efd32bf commit 6e9bb77
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/io/faob/utopian/handlers/ErrorHandler.java
@@ -1,5 +1,12 @@
package io.faob.utopian.handlers;

/**
* Functional interface used as lambda expression to handle error.
*
* @param <E> Exception Type
* @author FaoB
*/

public interface ErrorHandler<E> {
void handleError(E e);
}
7 changes: 7 additions & 0 deletions src/main/java/io/faob/utopian/handlers/ResponseHandler.java
@@ -1,5 +1,12 @@
package io.faob.utopian.handlers;

/**
* Functional interface used as lambda expression to handle successful response.
*
* @param <T> Response Type
* @author FaoB
*/

public interface ResponseHandler<T> {
void handleResponse(T r);
}

0 comments on commit 6e9bb77

Please sign in to comment.