boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ClassPattern pattern1 = (ClassPattern)o; if (hierarchically != pattern1.hierarchically) return false; if (!pattern.equals(pattern1.pattern)) return false; if (!method.equals(pattern1.method)) return false; return true; }