Skip to content

Commit b1ebe30

Browse files
committed
GroupFilter: implement ConstGroupFilter
1 parent e158d6e commit b1ebe30

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/java/com/github/stephengold/joltjni/GroupFilter.java

+7-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ of this software and associated documentation files (the "Software"), to deal
2222
package com.github.stephengold.joltjni;
2323

2424
import com.github.stephengold.joltjni.readonly.ConstCollisionGroup;
25+
import com.github.stephengold.joltjni.readonly.ConstGroupFilter;
2526
import com.github.stephengold.joltjni.template.Ref;
2627
import com.github.stephengold.joltjni.template.RefTarget;
2728

@@ -30,7 +31,9 @@ of this software and associated documentation files (the "Software"), to deal
3031
*
3132
* @author Stephen Gold [email protected]
3233
*/
33-
public class GroupFilter extends SerializableObject implements RefTarget {
34+
public class GroupFilter
35+
extends SerializableObject
36+
implements ConstGroupFilter, RefTarget {
3437
// *************************************************************************
3538
// constructors
3639

@@ -50,6 +53,8 @@ public class GroupFilter extends SerializableObject implements RefTarget {
5053
GroupFilter(long filterVa) {
5154
super(filterVa);
5255
}
56+
// *************************************************************************
57+
// ConstGroupFilter methods
5358

5459
/**
5560
* Test whether the specified groups can collide. The filter is unaffected.
@@ -58,6 +63,7 @@ public class GroupFilter extends SerializableObject implements RefTarget {
5863
* @param group2 the 2nd group (not null, unaffected)
5964
* @return {@code true} if they can collide, otherwise {@code false}
6065
*/
66+
@Override
6167
public boolean canCollide(
6268
ConstCollisionGroup group1, ConstCollisionGroup group2) {
6369
long filterVa = va();

0 commit comments

Comments
 (0)