1 19 20 package org.lucane.common.concepts; 21 22 import java.io.Serializable ; 23 24 public abstract class Concept implements Serializable 25 { 26 protected String name; 27 protected String description; 28 29 protected Concept(String name, String description) 30 { 31 this.name = name; 32 this.description = description; 33 } 34 35 public void setDescription(String description) 36 { 37 this.description = description; 38 } 39 40 public String getName() 41 { 42 return this.name; 43 } 44 45 public String getDescription() 46 { 47 return this.description; 48 } 49 50 public String toString() 51 { 52 return this.name; 53 } 54 55 public int hashCode() 56 { 57 return name.hashCode(); 58 } 59 } | Popular Tags |