if (o.getClass().equals(this.getClass())) {
if (o != null && o.getClass().equals(this.getClass())) {
        public boolean equals(Object o) {            if (o.getClass().equals(this.getClass())) {                StaticAndField s = (StaticAndField)o;                return theStatic.equals(s.theStatic)                     && theField.equals(s.theField);            } else return false;        }