java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.template.Result<ShapeRefC>
com.github.stephengold.joltjni.ShapeResult
- All Implemented Interfaces:
ConstJoltPhysicsObject
,AutoCloseable
,Comparable<JoltPhysicsObject>
Either an error or a
ShapeRefC
. (native type:
Result<RefConst<Shape>>
)-
Method Summary
Methods inherited from class com.github.stephengold.joltjni.template.Result
getError, hasError, isValid
Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
-
Method Details
-
get
Return theShapeRefC
. -
getError
Description copied from class:Result
Return the error message. -
hasError
protected boolean hasError(long resultVa) Description copied from class:Result
Test whether an error occurred. -
isValid
protected boolean isValid(long resultVa) Description copied from class:Result
Test whether the value returned byget()
is valid.
-