Difference between revisions of "Any and All Assignment"
Jump to navigation
Jump to search
(→All) |
(→Any) |
||
Line 10: | Line 10: | ||
{{JavaToImplement|Any|any<br/>any<br/>any|anyandall.group}} | {{JavaToImplement|Any|any<br/>any<br/>any|anyandall.group}} | ||
− | public static | + | public static boolean any(boolean... values) |
+ | |||
+ | public static boolean any(ImList<Boolean> values) | ||
+ | |||
+ | public static <T> boolean any(Predicate<T> predicate, ImList<T> values) | ||
==All== | ==All== |
Revision as of 08:58, 9 February 2022
Group Warmup
Background
Code To Implement
Any
class: | Any.java | |
methods: | any any any |
|
package: | anyandall.group | |
source folder: | src/main/java |
public static boolean any(boolean... values)
public static boolean any(ImList<Boolean> values)
public static <T> boolean any(Predicate<T> predicate, ImList<T> values)
All
class: | All.java | |
methods: | all all all |
|
package: | anyandall.group | |
source folder: | src/main/java |
public static boolean all(boolean... values)
public static boolean all(ImList<Boolean> values)
public static <T> boolean all(Predicate<T> predicate, ImList<T> values)
Test
Java
class: | AnyAndAllTestSuite.java | |
package: | anyandall.group | |
source folder: | src/test/java |