@Test public void toStringTest() { Objectives objectives0 = new Objectives(); objectives0.add("a", Sign.MIN, 3); Assert.assertEquals("a(MIN)=3 ", objectives0.toString()); }
@Override public String toString() { StringBuilder s = new StringBuilder(""); for (Entry<Objective, Value<?>> entry : map.entrySet()) { Objective o = entry.getKey(); Value<?> v = entry.getValue(); s.append(o).append("=").append(v).append(" "); } return s.toString(); }
Objectives implements Iterable<Entry<Objective, Value<?>>> { @Override public String toString() { StringBuilder s = new StringBuilder(""); for (Entry<Objective, Value<?>> entry : map.entrySet()) { Objective o = entry.getKey(); Value<?> v = entry.getValue(); s.append(o).append("=").append(v).append(" "); } return s.toString(); } }
Objectives implements Iterable<Entry<Objective, Value<?>>> { @Override public String toString() { StringBuilder s = new StringBuilder(""); for (Entry<Objective, Value<?>> entry : map.entrySet()) { Objective o = entry.getKey(); Value<?> v = entry.getValue(); s.append(o).append("=").append(v).append(" "); } return s.toString(); }  }
Objectives implements Iterable<Entry<Objective, Value<?>>> { @Override public String toString() { StringBuilder s = new StringBuilder(""); for (Entry<Objective, Value<?>> entry : map.entrySet()) { Objective o = entry.getKey(); Value<?> v = entry.getValue(); s.append(o).append("=").append(v).append(" "); } return s.toString(); }  @Override Iterator<Entry<Objective, Value<?>>> iterator(); double[] array(); int size(); Collection<Objective> getKeys(); Collection<Value<?>> getValues(); Value<?> get(Objective objective); Objective get(Value<?> value); void add(Objective objective, Value<?> value); void add(String name, Sign sign, Value<?> value); void add(Objective objective, double value); void add(String name, Sign sign, double value); void add(Objective objective, int value); void add(String name, Sign sign, int value); void addAll(Objectives objectives); boolean weaklyDominates(Objectives opponent); boolean dominates(Objectives opponent); boolean isEqual(Objectives opponent); double distance(Objectives other); @Override String toString(); }
Objectives implements Iterable<Entry<Objective, Value<?>>> { @Override public String toString() { StringBuilder s = new StringBuilder(""); for (Entry<Objective, Value<?>> entry : map.entrySet()) { Objective o = entry.getKey(); Value<?> v = entry.getValue(); s.append(o).append("=").append(v).append(" "); } return s.toString(); }  @Override Iterator<Entry<Objective, Value<?>>> iterator(); double[] array(); int size(); Collection<Objective> getKeys(); Collection<Value<?>> getValues(); Value<?> get(Objective objective); Objective get(Value<?> value); void add(Objective objective, Value<?> value); void add(String name, Sign sign, Value<?> value); void add(Objective objective, double value); void add(String name, Sign sign, double value); void add(Objective objective, int value); void add(String name, Sign sign, int value); void addAll(Objectives objectives); boolean weaklyDominates(Objectives opponent); boolean dominates(Objectives opponent); boolean isEqual(Objectives opponent); double distance(Objectives other); @Override String toString();  }