java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.ShapeResult
- All Implemented Interfaces:
ConstJoltPhysicsObject
,AutoCloseable
,Comparable<JoltPhysicsObject>
Either an error or a
ShapeRefC
. (native type:
Result<Ref<Shape>>
)-
Method Summary
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
.- Returns:
- a new JVM object with a new native object assigned
-
getError
Return the error string.- Returns:
- the string
-
hasError
public boolean hasError()Test whether there was an error.- Returns:
true
if error, otherwisefalse
-
isValid
public boolean isValid()Test whether theShapeRefC
is valid.- Returns:
true
if valid, otherwisefalse
-