Skip to content

Commit 87d9763

Browse files
committed
Add syntactic sugar for not(INTERFACE) access matcher
1 parent fa4278f commit 87d9763

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

class-match/src/main/java/datadog/instrument/classmatch/StandardMatchers.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@ public final class StandardMatchers {
5252

5353
private StandardMatchers() {}
5454

55+
/**
56+
* Syntactic sugar around {@link IntPredicate#negate()}.
57+
*
58+
* @param predicate the predicate to negate
59+
* @return negated predicate
60+
*/
61+
public static IntPredicate not(IntPredicate predicate) {
62+
return predicate.negate();
63+
}
64+
5565
/**
5666
* Syntactic sugar around {@link Predicate#negate()}.
5767
*

0 commit comments

Comments
 (0)