org.bidib.wizard.dmx.client.model.TimeDataIndex Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bidibwizard-dmx-client Show documentation
Show all versions of bidibwizard-dmx-client Show documentation
jBiDiB BiDiB Wizard DMX client POM
The newest version!
package org.bidib.wizard.dmx.client.model;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
public class TimeDataIndex implements DmxDataIndex {
private final int positionIndex;
private final int timeValue;
private final LocalTime time;
private static final DateTimeFormatter FORMATTER = DateTimeFormatter.ofPattern("HH:mm");
public TimeDataIndex(int positionIndex, int timeValue, final LocalTime time) {
this.positionIndex = positionIndex;
this.timeValue = timeValue;
this.time = time;
}
@Override
public int getPositionIndex() {
return positionIndex;
}
public int getTimeValue() {
return timeValue;
}
@Override
public LocalTime getTime() {
return time;
}
@Override
public String toString() {
return FORMATTER.format(time);
}
}