get method

Optional<V> get(
  1. Object? key
)

Returns an Optional containing the value for the given key or Optional.empty if key is not in the map.

See lookup.

Implementation

Optional<V> get(Object? key) => lookup(key);