Class SelectMapGenotype<K,V>

Type Parameters:
K - the type of keys
V - the type of elements
All Implemented Interfaces:
Serializable, Cloneable, Iterable<Integer>, Collection<Integer>, List<Integer>, RandomAccess, Genotype, ListGenotype<Integer>, MapGenotype<K,V>

public class SelectMapGenotype<K,V> extends IntegerGenotype implements MapGenotype<K,V>
The SelectGenotype selects for each key an element from a given list.
See Also:
  • Field Details

    • keys

      protected final List<K> keys
    • values

      protected final Map<K,List<V>> values
  • Constructor Details

    • SelectMapGenotype

      public SelectMapGenotype(List<K> keys, Map<K,List<V>> values)
      Constructs a SelectMapGenotype.
      Parameters:
      keys - the keys
      values - the values
    • SelectMapGenotype

      public SelectMapGenotype(List<K> keys, List<V> values)
      Constructs a SelectMapGenotype. Here, each key has the same target list of element values.
      Parameters:
      keys - the keys
      values - the values
  • Method Details