Add lombok support.
This commit is contained in:
parent
67ea7abde4
commit
d0b38e9b59
2 changed files with 7 additions and 21 deletions
|
@ -60,5 +60,6 @@ dependencies {
|
|||
implementation 'io.grpc:grpc-protobuf-lite:1.33.1' // CURRENT_GRPC_VERSION
|
||||
implementation 'io.grpc:grpc-stub:1.33.1' // CURRENT_GRPC_VERSION
|
||||
compileOnly 'org.apache.tomcat:annotations-api:6.0.53' // necessary for Java 9+
|
||||
|
||||
compileOnly 'org.projectlombok:lombok:1.18.16'
|
||||
annotationProcessor 'org.projectlombok:lombok:1.18.16'
|
||||
}
|
|
@ -2,6 +2,7 @@ package dev.nuculabs.nucuhub.domain;
|
|||
|
||||
import NucuCarSensorsProto.NucuCarSensors;
|
||||
import android.util.Log;
|
||||
import lombok.Getter;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
||||
|
@ -10,10 +11,10 @@ import java.text.DecimalFormat;
|
|||
public class EnvironmentSensorData {
|
||||
@SuppressWarnings("FieldCanBeLocal")
|
||||
private final String TAG = EnvironmentSensorData.class.getName();
|
||||
private double temperature;
|
||||
private double humidity;
|
||||
private double pressure;
|
||||
private double volatileOrganicCompounds;
|
||||
@Getter private double temperature;
|
||||
@Getter private double humidity;
|
||||
@Getter private double pressure;
|
||||
@Getter private double volatileOrganicCompounds;
|
||||
private NucuCarSensors.SensorStateEnum sensorState;
|
||||
|
||||
public EnvironmentSensorData(String data, NucuCarSensors.SensorStateEnum state) {
|
||||
|
@ -65,22 +66,6 @@ public class EnvironmentSensorData {
|
|||
return airQualityScore;
|
||||
}
|
||||
|
||||
public double getTemperature() {
|
||||
return temperature;
|
||||
}
|
||||
|
||||
public double getHumidity() {
|
||||
return humidity;
|
||||
}
|
||||
|
||||
public double getPressure() {
|
||||
return pressure;
|
||||
}
|
||||
|
||||
public double getVolatileOrganicCompounds() {
|
||||
return volatileOrganicCompounds;
|
||||
}
|
||||
|
||||
@SuppressWarnings("NullableProblems")
|
||||
@Override
|
||||
public String toString() {
|
||||
|
|
Loading…
Reference in a new issue