Class ConstraintResult

All Implemented Interfaces:
ConstJoltPhysicsObject, AutoCloseable, Comparable<JoltPhysicsObject>

public class ConstraintResult extends Result<ConstraintSettingsRef>
Either an error or a ConstraintSettingsRef. (native type: Result<Ref<ConstraintSettings>>)
  • Method Details

    • get

      public ConstraintSettingsRef get()
      Return a reference to the settings object.
      Specified by:
      get in class Result<ConstraintSettingsRef>
      Returns:
      a new JVM object with a new native object assigned
    • getError

      protected final String getError(long resultVa)
      Description copied from class: Result
      Return the error message.
      Specified by:
      getError in class Result<ConstraintSettingsRef>
      Parameters:
      resultVa - the virtual address of the result (not zero)
      Returns:
      a string of text
    • hasError

      protected final boolean hasError(long resultVa)
      Description copied from class: Result
      Test whether an error occurred.
      Specified by:
      hasError in class Result<ConstraintSettingsRef>
      Parameters:
      resultVa - the virtual address of the result (not zero)
      Returns:
      true if error, otherwise false
    • isValid

      protected final boolean isValid(long resultVa)
      Description copied from class: Result
      Test whether the value returned by get() is valid.
      Specified by:
      isValid in class Result<ConstraintSettingsRef>
      Parameters:
      resultVa - the virtual address of the result (not zero)
      Returns:
      true if valid, otherwise false