Objectives implements Iterable<Entry<Objective, Value<?>>> { public Value<?> get(Objective objective) { return map.get(objective); }  @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();  }
@Test public void getTest() { Objectives objectives0 = new Objectives(); Objective obj = new Objective("a"); objectives0.add(obj, 0); objectives0.add(new Objective("b"), 1); Assert.assertEquals(obj, objectives0.get(new IntegerValue(0))); Assert.assertNull(objectives0.get(new IntegerValue(3))); }