public int size() {
        if (results == null) {
            return 0;
        }
        return results.size();
    }
Iterator for iterating over the collision results.

@return the iterator
jme3-core/src/main/java/com/jme3/collision/CollisionResults.java