@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("CollisionResults[");
        if (results != null) {
            for (CollisionResult result : results) {
                sb.append(result).append(", ");
            }
            if (results.size() > 0)
                sb.setLength(sb.length() - 2);
        }

        sb.append("]");
        return sb.toString();
    }
Internal use only.

@param index the zero-based index of the desired result
@return the pre-existing instance
jme3-core/src/main/java/com/jme3/collision/CollisionResults.java