toString() für OderMenge implementieren

This commit is contained in:
JanUlrich 2015-05-20 15:20:25 +02:00
parent 035851ba79
commit fcac7fb04f
2 changed files with 10 additions and 6 deletions

View File

@ -19,12 +19,7 @@ public class ConstraintsSet extends UndMenge<Pair>{
public void add(KomplexeMenge<Pair> constraint){ public void add(KomplexeMenge<Pair> constraint){
this.addItems(constraint); this.addItems(constraint);
} }
public String toString(){
String ret = "";
return ret;
}
/* /*
private UndConstraint constraintsSet; private UndConstraint constraintsSet;

View File

@ -75,4 +75,13 @@ public class OderMenge<A> implements KomplexeMenge<A>{
} }
return ret; return ret;
} }
@Override
public String toString(){
String ret = "[";
for(KomplexeMenge<A> i : set){
ret += i.toString() + " |\n";
}
return ret + "]";
}
} }