All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.searchbox.core.CountResult Maven / Gradle / Ivy

There is a newer version: 6.3.1
Show newest version
package io.searchbox.core;

import com.google.gson.Gson;
import io.searchbox.client.JestResult;

import java.util.List;

/**
 * @author cihat.keser
 */
public class CountResult extends JestResult {

    public CountResult(CountResult countResult) {
        super(countResult);
    }

    public CountResult(Gson gson) {
        super(gson);
    }

    @Override
    @Deprecated
    public  T getSourceAsObject(Class clazz) {
        return super.getSourceAsObject(clazz);
    }

    @Override
    @Deprecated
    public  List getSourceAsObjectList(Class type) {
        return super.getSourceAsObjectList(type);
    }

    public Double getCount() {
        Double count = null;

        if (isSucceeded) {
            count = getSourceAsObject(Double.class);
        }

        return count;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy