- All Implemented Interfaces:
ConstJoltPhysicsObject
,AutoCloseable
,Comparable<JoltPhysicsObject>
A variable-length list (array) of character contacts. (native type:
Array<Contact>
)-
Method Summary
Modifier and TypeMethodDescriptionint
capacity()
Count how many contacts the currently allocated storage can hold.void
erase
(int startIndex, int stopIndex) Remove all contacts in the specified range of indices.get
(int elementIndex) Access the contact at the specified index.void
resize
(int numContacts) Expand or truncate the list.void
Put the specified contact at the specified index.int
size()
Count how many contacts are in the list.Methods inherited from class com.github.stephengold.joltjni.template.Array
clear, empty, erase, pushBack, toList
Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
-
Method Details
-
capacity
public int capacity()Count how many contacts the currently allocated storage can hold. The list is unaffected. -
erase
public void erase(int startIndex, int stopIndex) Remove all contacts in the specified range of indices. -
get
Access the contact at the specified index. -
resize
public void resize(int numContacts) Expand or truncate the list. -
set
Put the specified contact at the specified index. -
size
public int size()Count how many contacts are in the list. The list is unaffected.
-