public List<String> getIndexNames() {
        List<String> indexNames = new ArrayList<String>(requests.size());
        for (IndexRequest request : requests) {
            if (request.getName() != null) {
                indexNames.add(request.getName());
            } else {
                indexNames.add(IndexHelper.generateIndexName(request.getKeys()));
            }
        }
        return indexNames;
    }
public List<String> getIndexNames() {
        List<String> indexNames = new ArrayList<String>(requests.size());
        for (IndexRequest request : requests) {
            if (request.getName() != null) {
                indexNames.add(request.getName());
            } else {
                indexNames.add(IndexHelper.generateIndexName(request.getKeys()));
            }
        }
        return indexNames;
    }
public List < String > getIndexNames ( ) { List < String > indexNames = new ArrayList < String > ( requests . size ( ) ) ; for ( IndexRequest request : requests ) { if ( request . getName ( ) != null ) { indexNames . add ( request . getName ( ) ) ; } else { indexNames . add ( IndexHelper . generateIndexName ( request . getKeys ( ) ) ) ; } } return indexNames ; }
Gets the index names.

@return a list of index names
Gets the index names .