1 19 20 package com.sslexplorer.boot; 21 22 public class AbstractPropertyKey { 23 24 protected String name; 25 protected String propertyClassName; 26 27 public AbstractPropertyKey(String name, String propertyClassName) { 28 this.name = name; 29 this.propertyClassName = propertyClassName; 30 } 31 32 public String getPropertyClassName() { 33 return propertyClassName; 34 } 35 36 public int hashCode() { 37 return getName().hashCode(); 38 } 39 40 public String getName() { 41 return name; 42 } 43 44 public String toString() { 45 return "[" + getName() + "]"; 46 } 47 48 public boolean equals(Object o) { 49 AbstractPropertyKey k = (AbstractPropertyKey)o; 50 return getName().equals(k.getName()) && getPropertyClassName().equals(k.getPropertyClassName()); 51 } 52 53 } 54 | Popular Tags |