Interface Lookup<K,​V>

Type Parameters:
K - the key type
V - the value type

public interface Lookup<K,​V>
A Lookup provides values which are uniquely mapped to a certain key.
Author:
Martin Siegemund
  • Method Summary

    Modifier and Type Method Description
    Optional<V> lookup​(K key)
    Query the value in regard to a given key.
  • Method Details

    • lookup

      Optional<V> lookup​(K key)
      Query the value in regard to a given key.
      Parameters:
      key - the key
      Returns:
      the associated value if present, otherwise Optional.empty()