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