31 lines
647 B
Java
31 lines
647 B
Java
package de.ph87.homeautomation.schedule;
|
|
|
|
import lombok.Data;
|
|
import tuwien.auto.calimero.GroupAddress;
|
|
|
|
import java.util.Map;
|
|
|
|
@Data
|
|
public class PropertyEntry implements Map.Entry<String, String> {
|
|
|
|
private final String key;
|
|
|
|
private String value;
|
|
|
|
public PropertyEntry(final int rawGroupAddress, final String value) {
|
|
this.key = "knx.group." + new GroupAddress(rawGroupAddress);
|
|
this.value = value;
|
|
}
|
|
|
|
public PropertyEntry(final String propertyName, final String value) {
|
|
this.key = propertyName;
|
|
this.value = value;
|
|
}
|
|
|
|
public String setValue(final String value) {
|
|
this.value = value;
|
|
return value;
|
|
}
|
|
|
|
}
|