public CollisionResult getCollision(int index) {
        if (results == null) {
            throw new IndexOutOfBoundsException("Index: " + index + ", Size: 0");
        }

        if (!sorted) {
            Collections.sort(results);
            sorted = true;
        }

        return results.get(index);
    }
Iterator for iterating over the collision results.

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