Skip to content

Commit

Permalink
refactor: add @@FunctionalInterface annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed Aug 29, 2024
1 parent c236773 commit e37621c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*
* @param <S> the type of the agent state
*/
@FunctionalInterface
public interface AsyncEdgeAction<S extends AgentState> extends Function<S, CompletableFuture<String>> {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import java.util.Map;

@FunctionalInterface
public interface NodeAction <T extends AgentState> {
Map<String, Object> apply(T t) throws Exception;

Expand Down

0 comments on commit e37621c

Please sign in to comment.