Skip to content

Commit

Permalink
robert-bor#49 commented PayloadEmit constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
danbeck committed Aug 19, 2019
1 parent 95416ed commit fe16c54
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/org/ahocorasick/trie/PayloadEmit.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ public class PayloadEmit<T> extends Interval implements Intervalable {

private final T payload;

/**
* Created a PayloadEmit
*
* @param start Start of the matched search term.
* @param end End of the matched search term.
* @param keyword Keyword that matched.
* @param payload Emitted payload data.
*/
public PayloadEmit(final int start, final int end, String keyword, T payload) {
super(start, end);
this.keyword = keyword;
Expand Down

0 comments on commit fe16c54

Please sign in to comment.