Package com.github.stephengold.joltjni
Class ShapeResult
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.ShapeResult
- All Implemented Interfaces:
ConstJoltPhysicsObject,AutoCloseable,Comparable<ConstJoltPhysicsObject>
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, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, startCleaner, 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, otherwise false
-
isValid
public boolean isValid()Test whether theShapeRefCis valid.- Returns:
- true if valid, otherwise false
-