Override Object.hashCode() and Object.equals().
[demoscenemusic.git] / src / main / java / net / pterodactylus / demoscenemusic / data / Base.java
index 9ac65ad..56559ce 100644 (file)
 package net.pterodactylus.demoscenemusic.data;
 
 /**
- * TODO
+ * Base class for all data interfaces and implementations.
  *
  * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
  */
-public class Base {
+public interface Base {
 
-       private final String id;
+       /**
+        * Returns the ID of the data container.
+        *
+        * @return The ID of the data container
+        */
+       public String getId();
 
-       protected Base(String id) {
-               this.id = id;
-       }
-
-       public String id() {
-               return id;
-       }
+       /**
+        * Returns the properties associated with this object.
+        *
+        * @return The properties of this object
+        */
+       public Properties getProperties();
 
 }