package basestation.bot.sensors;

import com.google.gson.JsonObject;

/**
 * Hosts methods to retrieve data from all applicable sensors
 * NOTE: This was not used when designed so it may need to be refactored in the future.
 */
public abstract class SensorCenter {
    /**
     * @return a JSON string with the data for all the sensors.
     */
    public abstract String getAllDataJson();

    public JsonObject getAllDataGson() {
        return null;
    }
}

package basestation.bot.sensors;

import com.google.gson.JsonObject;

/**
 * Hosts methods to retrieve data from all applicable sensors
 * NOTE: This was not used when designed so it may need to be refactored in the future.
 */
public abstract class SensorCenter {
    /**
     * @return a JSON string with the data for all the sensors.
     */
    public abstract String getAllDataJson();

    public JsonObject getAllDataGson() {
        //TODO: implement
        return null;
    }
}

Update SensorCenter.java