Interface Mapping<From,​To>

Type Parameters:
From - The type of the keys.
To - The type of the values.
All Superinterfaces:
ExtendedIterable<Pair<From,​To>>, Function<From,​To>, Function1<From,​To>, HasLengthAtLeast, Iterable<Pair<From,​To>>
All Known Implementing Classes:
ArrayMap, Mapping.EmptyMapping

public interface Mapping<From,​To>
extends Function1<From,​To>, ExtendedIterable<Pair<From,​To>>
A Mapping from keys to values. A Mapping is very much like Map, but it precludes mutable operations.

Every mapping is a function from keys to values that does know about the keys it maps. Hence a minimal complete definition of a Mapping consists of get(Object) and keys().