java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.template.Result<PathConstraintPathRef>
com.github.stephengold.joltjni.PathResult
- All Implemented Interfaces:
- ConstJoltPhysicsObject,- AutoCloseable,- Comparable<JoltPhysicsObject>
Either an error or a 
PathConstraintPathRef. (native type:
 Result<Ref<PathConstraintPath>>)- 
Method SummaryModifier and TypeMethodDescriptionget()Return thePathConstraintPathRef.protected StringgetError(long resultVa) Return the error message.protected booleanhasError(long resultVa) Test whether an error occurred.protected booleanisValid(long resultVa) Test whether the value returned byget()is valid.Methods inherited from class com.github.stephengold.joltjni.template.ResultgetError, hasError, isValidMethods inherited from class com.github.stephengold.joltjni.JoltPhysicsObjectclose, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
- 
Method Details- 
getReturn thePathConstraintPathRef.- Specified by:
- getin class- Result<PathConstraintPathRef>
- Returns:
- a new JVM object with a new native reference assigned
 
- 
getErrorDescription copied from class:ResultReturn the error message.- Specified by:
- getErrorin class- Result<PathConstraintPathRef>
- Parameters:
- resultVa- the virtual address of the result (not zero)
- Returns:
- a string of text
 
- 
hasErrorprotected boolean hasError(long resultVa) Description copied from class:ResultTest whether an error occurred.- Specified by:
- hasErrorin class- Result<PathConstraintPathRef>
- Parameters:
- resultVa- the virtual address of the result (not zero)
- Returns:
- trueif error, otherwise- false
 
- 
isValidprotected boolean isValid(long resultVa) Description copied from class:ResultTest whether the value returned byget()is valid.- Specified by:
- isValidin class- Result<PathConstraintPathRef>
- Parameters:
- resultVa- the virtual address of the result (not zero)
- Returns:
- trueif valid, otherwise- false
 
 
-