Skip to contentMethod: equals(Object)
      1: package migration.difffile;
2: 
3: /**
4:  * Kennzeichnung einer Zeile.
5:  * 
6:  * @author Jan Schering
7:  *
8:  */
9: public abstract class LineState {
10: 
11:         @Override
12:         public String toString() {
13:                 return this.getClass().getSimpleName();
14:         }
15: 
16:         @Override
17:         public int hashCode() {
18:                 return super.getClass().hashCode();
19:         }
20: 
21:         @Override
22:         public boolean equals(final Object obj) {
23:•                if (this.getClass() == obj.getClass()) {
24:                         return true;
25:                 }
26:                 return false;
27: 
28:         }
29: }