Hello,
my situation is this below; not sure about what override; I guess I must override 'Point'; In general, do I need to override Object1 as well?
Moreover: in my case two points are equal if and only if they have just the same 'name'; So I suppose that can I cut something of the stuff that Eclipse generates automatically; but do I still need to override hashCode? (even I just need to compare 'name')?
thanks,
my situation is this below; not sure about what override; I guess I must override 'Point'; In general, do I need to override Object1 as well?
Code:
class Figure { public Set<Point> points = new HashSet<Point>(); } class Point { String name; public List<Object1> coll = new ArrayList<Object1>(); } class Object1 { String type; String code; }
thanks,
Comment