1 25 package classycle.graph; 26 27 30 public abstract class NameAttributes implements Attributes 31 { 32 private final String _name; 33 34 public NameAttributes(String name) 35 { 36 _name = name; 37 } 38 39 40 public String getName() { 41 return _name; 42 } 43 44 public int compareTo(Object object) 45 { 46 int result = -1; 47 if (object instanceof NameAttributes && _name != null) 48 { 49 result = _name.compareTo(((NameAttributes) object).getName()); 50 } 51 return result; 52 } 53 54 public abstract int getSize(); 55 56 } 57 | Popular Tags |