Merge pull request #1229 from maggu2810/sonos-unused-imports

sonos: remove unused imports (+formatter)
This commit is contained in:
Kai Kreuzer 2016-03-22 10:39:31 +01:00
Родитель c6a409001a cfd805d4e9
Коммит 49a026ca30
1 изменённых файлов: 86 добавлений и 91 удалений

Просмотреть файл

@ -8,117 +8,112 @@
*/
package org.eclipse.smarthome.binding.sonos.internal;
import java.util.Calendar;
import java.util.Date;
/**
* The {@link SonosAlarm} is a datastructure to describe
* alarms in the Sonos ecosystem
*
*
* @author Karel Goderis - Initial contribution
*/
public class SonosAlarm implements Cloneable {
public Object clone() {
try
{
return super.clone();
}
catch(Exception e){ return null; }
}
public int getID() {
return ID;
}
@Override
public Object clone() {
try {
return super.clone();
} catch (Exception e) {
return null;
}
}
public String getStartTime() {
// public DateTime getStartTime() {
return startTime;
}
public int getID() {
return ID;
}
/**
* @param startTime the startTime to set
*/
public void setStartTime(String startTime) {
this.startTime = startTime;
}
public String getStartTime() {
// public DateTime getStartTime() {
return startTime;
}
/**
* @param startTime the startTime to set
*/
public void setStartTime(String startTime) {
this.startTime = startTime;
}
public String getDuration() {
return duration;
}
public String getDuration() {
return duration;
}
public String getRecurrence() {
return recurrence;
}
public String getRecurrence() {
return recurrence;
}
public boolean getEnabled() {
return enabled;
}
public boolean getEnabled() {
return enabled;
}
/**
* @param enabled the enabled to set
*/
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
/**
* @param enabled the enabled to set
*/
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
public String getRoomUUID() {
return roomUUID;
}
public String getRoomUUID() {
return roomUUID;
}
public String getProgramURI() {
return programURI;
}
public String getProgramURI() {
return programURI;
}
public String getProgramMetaData() {
return programMetaData;
}
public String getProgramMetaData() {
return programMetaData;
}
public String getPlayMode() {
return playMode;
}
public String getPlayMode() {
return playMode;
}
public int getVolume() {
return volume;
}
public int getVolume() {
return volume;
}
public boolean getIncludeLinkedZones() {
return includeLinkedZones;
}
public boolean getIncludeLinkedZones() {
return includeLinkedZones;
}
private final int ID;
private String startTime;
private final String duration;
private final String recurrence;
private boolean enabled;
private final String roomUUID;
private final String programURI;
private final String programMetaData;
private final String playMode;
private final int volume;
private final boolean includeLinkedZones;
private final int ID;
private String startTime;
private final String duration;
private final String recurrence;
private boolean enabled;
private final String roomUUID;
private final String programURI;
private final String programMetaData;
private final String playMode;
private final int volume;
private final boolean includeLinkedZones;
public SonosAlarm(int ID, String startTime, String duration, String recurrence,
boolean enabled, String roomUUID, String programURI, String
programMetaData, String playMode, int volume, boolean includeLinkedZones) {
this.ID = ID;
this.startTime = startTime;
this.duration = duration;
this.recurrence = recurrence;
this.enabled = enabled;
this.roomUUID = roomUUID;
this.programURI = programURI;
this.programMetaData = programMetaData;
this.playMode = playMode;
this.volume = volume;
this.includeLinkedZones = includeLinkedZones;
}
@Override
public String toString() {
return "SonosAlarm [ID=" + ID + ", start=" + startTime +", duration="+duration+", enabled="+enabled+", UUID="+roomUUID+"]";
}
public SonosAlarm(int ID, String startTime, String duration, String recurrence, boolean enabled, String roomUUID,
String programURI, String programMetaData, String playMode, int volume, boolean includeLinkedZones) {
this.ID = ID;
this.startTime = startTime;
this.duration = duration;
this.recurrence = recurrence;
this.enabled = enabled;
this.roomUUID = roomUUID;
this.programURI = programURI;
this.programMetaData = programMetaData;
this.playMode = playMode;
this.volume = volume;
this.includeLinkedZones = includeLinkedZones;
}
@Override
public String toString() {
return "SonosAlarm [ID=" + ID + ", start=" + startTime + ", duration=" + duration + ", enabled=" + enabled
+ ", UUID=" + roomUUID + "]";
}
}