|
@@ -1,109 +1,119 @@
|
|
-/*
|
|
|
|
- * Copyright (C) 2015 iZc
|
|
|
|
- *
|
|
|
|
- * This program is free software: you can redistribute it and/or modify
|
|
|
|
- * it under the terms of the GNU General Public License as published by
|
|
|
|
- * the Free Software Foundation, either version 3 of the License, or
|
|
|
|
- * (at your option) any later version.
|
|
|
|
- *
|
|
|
|
- * This program is distributed in the hope that it will be useful,
|
|
|
|
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
- * GNU General Public License for more details.
|
|
|
|
- *
|
|
|
|
- * You should have received a copy of the GNU General Public License
|
|
|
|
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
- */
|
|
|
|
-
|
|
|
|
-package de.nplusc.izc.iZpl.API.shared;
|
|
|
|
-
|
|
|
|
-import java.util.List;
|
|
|
|
-import java.util.Objects;
|
|
|
|
-
|
|
|
|
-/**
|
|
|
|
- *
|
|
|
|
- * @author iZc <nplusc.de>
|
|
|
|
- */
|
|
|
|
-public class PlayListFile
|
|
|
|
-{
|
|
|
|
- private List<SinglePlayListItem> entries;
|
|
|
|
-
|
|
|
|
- private int calculatedBasePriority=1;
|
|
|
|
-
|
|
|
|
- public int getCalculatedBasePriority()
|
|
|
|
- {
|
|
|
|
- return calculatedBasePriority;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setCalculatedBasePriority(int calculatedBasePriority)
|
|
|
|
- {
|
|
|
|
- this.calculatedBasePriority = calculatedBasePriority;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- public List<SinglePlayListItem> getEntries()
|
|
|
|
- {
|
|
|
|
- return entries;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setEntries(List<SinglePlayListItem> entries)
|
|
|
|
- {
|
|
|
|
- this.entries = entries;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public String getPath()
|
|
|
|
- {
|
|
|
|
- return path;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setPath(String path)
|
|
|
|
- {
|
|
|
|
- this.path = path;
|
|
|
|
- }
|
|
|
|
- private String path;
|
|
|
|
-
|
|
|
|
- @Override
|
|
|
|
- public int hashCode()
|
|
|
|
- {
|
|
|
|
- int hash = 3;
|
|
|
|
- //hash = 41 * hash + Objects.hashCode(this.entries);// fickdich, du funkst beim rumfuhrwerken an den daten beim edit rein
|
|
|
|
- hash = 41 * hash + Objects.hashCode(this.path);
|
|
|
|
- return hash;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @Override
|
|
|
|
- public boolean equals(Object obj)
|
|
|
|
- {
|
|
|
|
- if (obj == null)
|
|
|
|
- {
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
- if (getClass() != obj.getClass())
|
|
|
|
- {
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
- final PlayListFile other = (PlayListFile) obj;
|
|
|
|
- if (!Objects.equals(this.entries, other.entries))
|
|
|
|
- {
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
- if (!Objects.equals(this.path, other.path))
|
|
|
|
- {
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
- return true;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @Override
|
|
|
|
- public String toString()
|
|
|
|
- {
|
|
|
|
- return "PlayListFile{" + "calculatedBasePriority=" + calculatedBasePriority + ", path=" + path + '}';
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public String[] getSuffix()
|
|
|
|
- {
|
|
|
|
- return new String[]{};
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+/*
|
|
|
|
+ * Copyright (C) 2015 iZc
|
|
|
|
+ *
|
|
|
|
+ * This program is free software: you can redistribute it and/or modify
|
|
|
|
+ * it under the terms of the GNU General Public License as published by
|
|
|
|
+ * the Free Software Foundation, either version 3 of the License, or
|
|
|
|
+ * (at your option) any later version.
|
|
|
|
+ *
|
|
|
|
+ * This program is distributed in the hope that it will be useful,
|
|
|
|
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
+ * GNU General Public License for more details.
|
|
|
|
+ *
|
|
|
|
+ * You should have received a copy of the GNU General Public License
|
|
|
|
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
+ */
|
|
|
|
+
|
|
|
|
+package de.nplusc.izc.iZpl.API.shared;
|
|
|
|
+
|
|
|
|
+import java.util.List;
|
|
|
|
+import java.util.Objects;
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ *
|
|
|
|
+ * @author iZc <nplusc.de>
|
|
|
|
+ */
|
|
|
|
+public class PlayListFile
|
|
|
|
+{
|
|
|
|
+ private List<SinglePlayListItem> entries;
|
|
|
|
+
|
|
|
|
+ private int calculatedBasePriority=1;
|
|
|
|
+
|
|
|
|
+ public int getCalculatedBasePriority()
|
|
|
|
+ {
|
|
|
|
+ return calculatedBasePriority;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ private boolean synthetic = false;
|
|
|
|
+
|
|
|
|
+ public void setCalculatedBasePriority(int calculatedBasePriority)
|
|
|
|
+ {
|
|
|
|
+ this.calculatedBasePriority = calculatedBasePriority;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ public List<SinglePlayListItem> getEntries()
|
|
|
|
+ {
|
|
|
|
+ return entries;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setEntries(List<SinglePlayListItem> entries)
|
|
|
|
+ {
|
|
|
|
+ this.entries = entries;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getPath()
|
|
|
|
+ {
|
|
|
|
+ return path;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setPath(String path)
|
|
|
|
+ {
|
|
|
|
+ this.path = path;
|
|
|
|
+ }
|
|
|
|
+ private String path;
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public int hashCode()
|
|
|
|
+ {
|
|
|
|
+ int hash = 3;
|
|
|
|
+ //hash = 41 * hash + Objects.hashCode(this.entries);// fickdich, du funkst beim rumfuhrwerken an den daten beim edit rein
|
|
|
|
+ hash = 41 * hash + Objects.hashCode(this.path);
|
|
|
|
+ return hash;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public boolean equals(Object obj)
|
|
|
|
+ {
|
|
|
|
+ if (obj == null)
|
|
|
|
+ {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (getClass() != obj.getClass())
|
|
|
|
+ {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ final PlayListFile other = (PlayListFile) obj;
|
|
|
|
+ if (!Objects.equals(this.entries, other.entries))
|
|
|
|
+ {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (!Objects.equals(this.path, other.path))
|
|
|
|
+ {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public String toString()
|
|
|
|
+ {
|
|
|
|
+ return "PlayListFile{" + "calculatedBasePriority=" + calculatedBasePriority + ", path=" + path + '}';
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String[] getSuffix()
|
|
|
|
+ {
|
|
|
|
+ return new String[]{};
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public boolean isSynthetic() {
|
|
|
|
+ return synthetic;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setSynthetic(boolean synthetic) {
|
|
|
|
+ this.synthetic = synthetic;
|
|
|
|
+ }
|
|
}
|
|
}
|