From 0c14c00bab23e52508e0d30ef5fdf82399096612 Mon Sep 17 00:00:00 2001
From: ulrich
Date: Fri, 23 Apr 2021 17:57:31 +0000
Subject: [PATCH] Ablageorte werden im laufenden Betrieb ein- und ausgeklinkt

---
 src/de/uhilger/mediaz/store/StorageFile.java |   34 +++++++++++++++++++++++++++++++++-
 1 files changed, 33 insertions(+), 1 deletions(-)

diff --git a/src/de/uhilger/mediaz/store/StorageFile.java b/src/de/uhilger/mediaz/store/StorageFile.java
index 8c183c5..3d92b12 100644
--- a/src/de/uhilger/mediaz/store/StorageFile.java
+++ b/src/de/uhilger/mediaz/store/StorageFile.java
@@ -17,6 +17,8 @@
  */
 package de.uhilger.mediaz.store;
 
+import java.util.Objects;
+
 /**
  *
  * @author ulrich
@@ -67,7 +69,7 @@
 
   public void setTitelAnzName(String tan) {
     if(tan != null) {
-    this.titelAnzName = tan;
+      this.titelAnzName = tan;
     }
   }
 
@@ -81,5 +83,35 @@
     }
   }
 
+  @Override
+  public String toString() {
+    return "StorageFile{" + "name=" + name + '}';
+  }
+
+  @Override
+  public int hashCode() {
+    int hash = 3;
+    return hash;
+  }
+
+  @Override
+  public boolean equals(Object obj) {
+    if (this == obj) {
+      return true;
+    }
+    if (obj == null) {
+      return false;
+    }
+    if (getClass() != obj.getClass()) {
+      return false;
+    }
+    final StorageFile other = (StorageFile) obj;
+    if (!Objects.equals(this.name, other.name)) {
+      return false;
+    }
+    return true;
+  }
+
+  
   
 }

--
Gitblit v1.9.3