java.lang.Object
java.lang.Enum<ValidateResult>
com.github.stephengold.joltjni.enumerate.ValidateResult
All Implemented Interfaces:
Serializable, Comparable<ValidateResult>, Constable

public enum ValidateResult extends Enum<ValidateResult>
Enumerate ways to process contacts between 2 bodies.
  • Enum Constant Details

    • AcceptAllContactsForThisBodyPair

      public static final ValidateResult AcceptAllContactsForThisBodyPair
      accept this and any future contact points for this pair
    • AcceptContact

      public static final ValidateResult AcceptContact
      accept this contact only
    • RejectContact

      public static final ValidateResult RejectContact
      reject this contact only
    • RejectAllContactsForThisBodyPair

      public static final ValidateResult RejectAllContactsForThisBodyPair
      reject this and any future contact points for this pair
  • Method Details

    • values

      public static ValidateResult[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ValidateResult valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null