@Test public void testContains() { final ConstructiveIndividual instance = new ConstructiveIndividual(); assertFalse(instance.contains(new KnapsackComponent(5, 5))); instance.add(state, new KnapsackComponent(5, 5)); assertTrue(instance.contains(new KnapsackComponent(5, 5))); assertTrue(instance.repOK()); }
public boolean contains(final T component) { return componentsSet.contains(component); }
ConstructiveIndividual extends Individual implements Iterable<T> { public boolean contains(final T component) { return componentsSet.contains(component); } }
ConstructiveIndividual extends Individual implements Iterable<T> { public boolean contains(final T component) { return componentsSet.contains(component); }  }
ConstructiveIndividual extends Individual implements Iterable<T> { public boolean contains(final T component) { return componentsSet.contains(component); }  T get(final int i); @Override Parameter defaultBase(); @Override Object clone(); List<T> getComponents(); void setComponents(final EvolutionState state, final Collection<T> newComponents); void add(final EvolutionState state, final T component); boolean contains(final T component); @Override Iterator<T> iterator(); boolean isEmpty(); @Override long size(); @Override boolean equals(final Object ind); @Override int hashCode(); @Override String toString(); @Override void writeGenotype(final EvolutionState state, final DataOutput dataOutput); @Override void readGenotype(final EvolutionState state, final DataInput dataInput); boolean repOK(); }
ConstructiveIndividual extends Individual implements Iterable<T> { public boolean contains(final T component) { return componentsSet.contains(component); }  T get(final int i); @Override Parameter defaultBase(); @Override Object clone(); List<T> getComponents(); void setComponents(final EvolutionState state, final Collection<T> newComponents); void add(final EvolutionState state, final T component); boolean contains(final T component); @Override Iterator<T> iterator(); boolean isEmpty(); @Override long size(); @Override boolean equals(final Object ind); @Override int hashCode(); @Override String toString(); @Override void writeGenotype(final EvolutionState state, final DataOutput dataOutput); @Override void readGenotype(final EvolutionState state, final DataInput dataInput); boolean repOK(); static final String P_DEFAULTBASE; }