@Override public boolean contains(Object o) { if (o instanceof Bracket) return contains(((Bracket) o).getContent()); if (o instanceof Cast) return contains(((Cast) o).getContent()); if (!(o instanceof KApp)) return false; KApp k = (KApp) o; return label.contains(k.label) && child.contains(k.child); }
@Override public boolean contains(Object o) { if (o instanceof Bracket) return contains(((Bracket) o).getContent()); if (o instanceof Cast) return contains(((Cast) o).getContent()); if (!(o instanceof Freezer)) return false; Freezer f = (Freezer) o; return term.contains(f.term); }
public static boolean contains(int id) { return Term.contains(id, list); }