Skip to content

Commit 52e2c17

Browse files
committed
work on #366 and wontfix #386 -- clarify that the <T> on the matchAs methods refers to the handle to be populated, not the IO type of object passed as the first argument
(cherry picked from commit d46ef8b)
1 parent 5870198 commit 52e2c17

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/com/marklogic/client/alerting/RuleManager.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public <T extends RuleListReadHandle> T matchAs(Object content, String[] candida
211211
* @param candidateRules an array of rule names to match. A zero-length array matches all rules.
212212
* @param ruleListHandle a handle to hold the match results
213213
* @param transform a server transform to modify the rule list payload
214-
* @param <T> the type of object that will be returned by the handle registered for it
214+
* @param <T> the type of RuleListReadHandle to return
215215
* @return the union of rules matched by the document provided
216216
*/
217217
public <T extends RuleListReadHandle> T matchAs(Object content, String[] candidateRules,
@@ -221,6 +221,7 @@ public <T extends RuleListReadHandle> T matchAs(Object content, String[] candida
221221
* Matches server rules based on a document supplied in a write handle.
222222
* @param document A document payload to match against rules.
223223
* @param ruleListHandle A handle to hold the match results.
224+
* @param <T> the type of RuleListReadHandle to return
224225
* @return The union of rules matched by the document provided.
225226
*/
226227
public <T extends RuleListReadHandle> T match(StructureWriteHandle document, T ruleListHandle);
@@ -229,6 +230,7 @@ public <T extends RuleListReadHandle> T matchAs(Object content, String[] candida
229230
* @param document A document payload to match against rules.
230231
* @param candidateRules An array of rule names to match. A zero-length array matches all rules.
231232
* @param ruleListHandle A handle to hold the match results
233+
* @param <T> the type of RuleListReadHandle to return
232234
* @return The union of rules in candidateRules matched by the document.
233235
*/
234236
public <T extends RuleListReadHandle> T match(StructureWriteHandle document,
@@ -240,6 +242,7 @@ public <T extends RuleListReadHandle> T match(StructureWriteHandle document,
240242
* @param candidateRules An array of rule names to match. A zero-length array matches all rules.
241243
* @param ruleListHandle A handle to hold the match results.
242244
* @param transform a server transform to modify the rule list payload.
245+
* @param <T> the type of RuleListReadHandle to return
243246
* @return The union of rules in candidateRules matched by the document.
244247
*/
245248
public <T extends RuleListReadHandle> T match(StructureWriteHandle document,

0 commit comments

Comments
 (0)