public boolean addOut(DefaultConnection con) { EditableReader t = (EditableReader) con.getSecond(); if (out.contains(t)) return false; out.add(t); connections.add(con); return true; }
public boolean addIn(DefaultConnection con) { EditableWriter t = (EditableWriter) con.getFirst(); if (in.contains(t)) return false; in.add(t); connections.add(con); return true; }