Skip to content

Commit 7dcecc8

Browse files
docs: add definition for generic Type parameter in AnyContains Javadoc
1 parent 0b0b3da commit 7dcecc8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/ch/njol/skript/lang/util/common/AnyContains.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
* Anything implementing this (or convertible to this) can be used by the {@link ch.njol.skript.conditions.CondContains}
99
* conditions.
1010
*
11+
* @param <Type> the type of objects that this container can check for containment.
12+
* This represents the expected type of elements that the container
13+
* is designed to hold or work with.
14+
* When calling {@link #contains(Object)}, the parameter should be of this type,
15+
* or safely castable to it.
16+
* Implementations may use {@link #isSafeToCheck(Object)} to verify
17+
* that an object is a suitable candidate before performing a containment check.
18+
*
1119
* @see AnyProvider
1220
*/
1321
@FunctionalInterface

0 commit comments

Comments
 (0)