public CollisionResult getClosestCollision() {
        if (results == null || size() == 0)
            return null;

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

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

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