Interface MapGenotype<K,V>

Type Parameters:
K - the type of keys
V - the type of values
All Known Implementing Classes:
BooleanMapGenotype, DoubleMapGenotype, IntegerMapGenotype, SelectMapGenotype

public interface MapGenotype<K,V>
The MapGenotype extends a Genotype with Map functionalities.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the key is contained.
    int
    Returns the index of the key.
    Return all keys.
    getValue(K key)
    Returns the value for the specified key.
    void
    setValue(K key, V value)
    Sets the value for the specified key.
  • Method Details

    • getKeys

      Collection<K> getKeys()
      Return all keys.
      Returns:
      all keys
    • getValue

      V getValue(K key)
      Returns the value for the specified key.
      Parameters:
      key - the key
      Returns:
      the value
      See Also:
    • setValue

      void setValue(K key, V value)
      Sets the value for the specified key.
      Parameters:
      key - the key
      value - the value
      See Also:
    • containsKey

      boolean containsKey(K key)
      Returns true if the key is contained.
      Parameters:
      key - the key
      Returns:
      true if the key is contained
    • getIndexOf

      int getIndexOf(K key)
      Returns the index of the key.
      Parameters:
      key - the key
      Returns:
      the index