Skip to content

Commit

Permalink
Fixed getters/setters to use wrapper types
Browse files Browse the repository at this point in the history
  • Loading branch information
vsadokhin committed Oct 1, 2018
1 parent ba567a4 commit 35bb529
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions data/src/main/java/me/vsadokhin/iot/data/domain/Metric.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@ public void setType(String type) {
this.type = type;
}

public long getWhen() {
public Long getWhen() {
return when;
}

public void setWhen(long when) {
public void setWhen(Long when) {
this.when = when;
}

public float getValue() {
public Float getValue() {
return value;
}

public void setValue(float value) {
public void setValue(Float value) {
this.value = value;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ public MetricBuilder(String sensorId, String type) {
metric.setType(type);
}

public MetricBuilder setValue(float value) {
public MetricBuilder setValue(Float value) {
metric.setValue(value);
return this;
}

public MetricBuilder setWhen(long when) {
public MetricBuilder setWhen(Long when) {
metric.setWhen(when);
return this;
}
Expand Down

0 comments on commit 35bb529

Please sign in to comment.