@@ -52,6 +52,10 @@ private Filters() {
5252 /**
5353 * Creates a filter that returns true for any value in the specified
5454 * list of values and false for all other cases.
55+ *
56+ * @param <T> the value type
57+ * @param values the accepted values
58+ * @return a membership filter for the provided values
5559 */
5660 @ SuppressWarnings ("unchecked" )
5761 public static <T > Filter <T > in ( T ... values )
@@ -62,6 +66,10 @@ public static <T> Filter<T> in( T... values )
6266 /**
6367 * Creates a filter that returns true for any value in the specified
6468 * collection and false for all other cases.
69+ *
70+ * @param <T> the value type
71+ * @param collection the accepted values
72+ * @return a membership filter for the provided collection
6573 */
6674 public static <T > Filter <T > in ( Collection <? extends T > collection )
6775 {
@@ -72,6 +80,10 @@ public static <T> Filter<T> in( Collection<? extends T> collection )
7280 * Creates a filter that returns true for any value NOT in the specified
7381 * list of values and false for all other cases. This is the equivalent
7482 * of calling not(in(values)).
83+ *
84+ * @param <T> the value type
85+ * @param values the rejected values
86+ * @return a negated membership filter for the provided values
7587 */
7688 @ SuppressWarnings ("unchecked" )
7789 public static <T > Filter <T > notIn ( T ... values )
@@ -83,6 +95,10 @@ public static <T> Filter<T> notIn( T... values )
8395 * Creates a filter that returns true for any value NOT in the specified
8496 * collection and false for all other cases. This is the equivalent
8597 * of calling not(in(collection)).
98+ *
99+ * @param <T> the value type
100+ * @param collection the rejected values
101+ * @return a negated membership filter for the provided collection
86102 */
87103 public static <T > Filter <T > notIn ( Collection <? extends T > collection )
88104 {
@@ -92,6 +108,10 @@ public static <T> Filter<T> notIn( Collection<? extends T> collection )
92108 /**
93109 * Creates a filter that returns true for inputs that are .equals()
94110 * equivalent to the specified value.
111+ *
112+ * @param <T> the value type
113+ * @param value the accepted value
114+ * @return an equality filter
95115 */
96116 public static <T > Filter <T > equalTo ( T value )
97117 {
@@ -102,6 +122,10 @@ public static <T> Filter<T> equalTo( T value )
102122 * Creates a filter that returns true for inputs that are NOT .equals()
103123 * equivalent to the specified value. This is the equivalent of calling
104124 * not(equalTo(value)).
125+ *
126+ * @param <T> the value type
127+ * @param value the rejected value
128+ * @return an inequality filter
105129 */
106130 public static <T > Filter <T > notEqualTo ( T value )
107131 {
@@ -111,6 +135,10 @@ public static <T> Filter<T> notEqualTo( T value )
111135 /**
112136 * Creates a filter that returns true when the specified delegate filter
113137 * returns false, and vice versa.
138+ *
139+ * @param <T> the value type
140+ * @param f the delegate filter
141+ * @return a negated filter
114142 */
115143 public static <T > Filter <T > not ( Filter <T > f )
116144 {
@@ -166,4 +194,3 @@ public boolean apply( T input )
166194 }
167195}
168196
169-
0 commit comments