Class LogicUtils

java.lang.Object
xbot.common.logic.LogicUtils

public final class LogicUtils extends Object
Utility methods for working with logic.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    allOf(boolean... values)
    Returns true if all the given values are true.
    static boolean
    anyOf(boolean... values)
    Returns true if any of the given values are true.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.