Package xbot.common.logic
Class LogicUtils
java.lang.Object
xbot.common.logic.LogicUtils
Utility methods for working with logic.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
LogicUtils
public LogicUtils()
-
-
Method Details
-
anyOf
public static boolean anyOf(boolean... values) Returns true if any of the given values are true.- Parameters:
values
- The values to check. If no values are given, this method will return false.- Returns:
- True if any of the given values are true.
-
allOf
public static boolean allOf(boolean... values) Returns true if all the given values are true.- Parameters:
values
- The values to check. If no values are given, this method will return true.- Returns:
- True if all the given values are true.
-