1 19 20 package com.sslexplorer.properties.attributes; 21 22 import com.sslexplorer.boot.AbstractPropertyKey; 23 24 public abstract class AbstractAttributeKey extends AbstractPropertyKey { 25 26 public AbstractAttributeKey(String name, String propertyClassName) { 27 super(name, propertyClassName); 28 } 29 30 public abstract String getAttributeClassKey(); 31 32 public int hashCode() { 33 return getName().hashCode() + getAttributeClassKey().hashCode(); 34 } 35 36 public boolean equals(Object o) { 37 AbstractAttributeKey k = (AbstractAttributeKey)o; 38 return super.equals(o) && getAttributeClassKey().equals(k.getAttributeClassKey()); 39 } 40 41 } 42 | Popular Tags |