Skip to content

Commit

Permalink
fix javadoc errors
Browse files Browse the repository at this point in the history
Signed-off-by: Kaushal Kumar <[email protected]>
  • Loading branch information
kaushalmahi12 committed Jan 7, 2025
1 parent 1024603 commit 115f36c
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,31 @@

import java.util.List;

/**
* Common interface which exposes methods to add/search/delete Rule attributes
*/
public interface FastPrefixMatchingStructure {
/**
* Inserts the rule output against the attribute value denoted by key
* @param key
* @param value
*/
void insert(String key, String value);

/**
* Searches for a key in structure.
*
* @param key The key to search for.
* @return A list of string values associated with the key or its prefixes.
* Returns an empty list if no matches are found.
*/
List<String> search(String key);

/**
* Deletes a key from the structure.
*
* @param key The key to be deleted.
* @return true if the key was successfully deleted, false otherwise.
*/
boolean delete(String key);
}

0 comments on commit 115f36c

Please sign in to comment.